[zsh/screen/tmux] force zsh to use emacs bindings for home/end/... keys

This commit is contained in:
Mathieu Maret 2010-04-22 16:26:09 +02:00
parent ed03a861df
commit 48fadbacfa
2 changed files with 9 additions and 2 deletions

View File

@ -12,8 +12,8 @@ PROMPT_COMMAND='history -a'
setopt append_history autocd extendedglob nomatch setopt append_history autocd extendedglob nomatch
unsetopt beep unsetopt beep
#binding vim #force emacs binding for tmux && screen
#bindkey -v bindkey -e
# End of lines configured by zsh-newuser-install # End of lines configured by zsh-newuser-install
# The following lines were added by compinstall # The following lines were added by compinstall
zstyle :compinstall filename '/home/mathieu/.zshrc' zstyle :compinstall filename '/home/mathieu/.zshrc'

View File

@ -14,3 +14,10 @@ function preexec {
} }
fi fi
# Titre de la fenêtre d'un xterm
case $TERM in
xterm*)
precmd () {print -Pn "\e]0;%n@%m: %~\a"}
;;
esac