base: set the title of the terminal when connecting to a server

This commit is contained in:
Jérémy Dubois 2022-02-07 11:05:36 +01:00
parent a34f3d606b
commit 576e13db78
2 changed files with 11 additions and 0 deletions

View file

@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- base: set the title of the terminal when connecting to a server
### Changed
- accounts: use "evobsd_internal_group" for SSH authentication

View file

@ -6,6 +6,15 @@ alias history="fc -l 0"
# Caracterisation du shell
##
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
bind -m '^L'='^U 'clear'^M^Y'
bind '^[[4~'=end-of-line
bind '^[[1~'=beginning-of-line