From 48fadbacfa462024e394f40e647d685378796242 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 22 Apr 2010 16:26:09 +0200 Subject: [PATCH] [zsh/screen/tmux] force zsh to use emacs bindings for home/end/... keys --- .zsh/00_basic.zsh | 4 ++-- .zsh/20_fancy.zsh | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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