diff --git a/.zsh/00_basic.zsh b/.zsh/00_basic.zsh index e2fd30e..3b4bc5e 100644 --- a/.zsh/00_basic.zsh +++ b/.zsh/00_basic.zsh @@ -12,8 +12,8 @@ PROMPT_COMMAND='history -a' setopt append_history autocd extendedglob nomatch unsetopt beep -#binding vim -#bindkey -v +#force emacs binding for tmux && screen +bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename '/home/mathieu/.zshrc' diff --git a/.zsh/20_fancy.zsh b/.zsh/20_fancy.zsh index 82490e3..437af6b 100644 --- a/.zsh/20_fancy.zsh +++ b/.zsh/20_fancy.zsh @@ -14,3 +14,10 @@ function preexec { } fi + +# Titre de la fenĂȘtre d'un xterm +case $TERM in + xterm*) + precmd () {print -Pn "\e]0;%n@%m: %~\a"} + ;; +esac