]> git.pld-linux.org Git - packages/zsh.git/commitdiff
- set xterm title to 'user@hostname: directory'
authorwolf <wolf@pld-linux.org>
Sat, 13 Sep 2003 21:19:10 +0000 (21:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    zsh.spec -> 1.83

zsh.spec

index e45f9c72f5619442b1f96efc6dcfe0d093427f21..de3a8d1ef2f541963df212773cac5a9412eb0507 100644 (file)
--- a/zsh.spec
+++ b/zsh.spec
@@ -189,6 +189,12 @@ bindkey \`tput kpp\` up-history >/dev/null 2>&1
 bindkey \`tput knp\` end-of-history >/dev/null 2>&1
 bindkey \`tput kcuu1\` history-beginning-search-backward >/dev/null 2>&1
 bindkey \`tput kcud1\` history-beginning-search-forward >/dev/null 2>&1
+
+case $TERM in
+       xterm*)
+               precmd () {print -Pn "\e]0;%n@%m: %~\a"}
+               ;;
+esac
 EOF
 
 rm -f Etc/Makefile*
This page took 0.073569 seconds and 4 git commands to generate.