]> git.pld-linux.org Git - packages/zsh.git/commitdiff
set window title under GNU/screen
authorTomasz Pala <gotar@pld-linux.org>
Sun, 8 Oct 2017 09:43:20 +0000 (11:43 +0200)
committerTomasz Pala <gotar@pld-linux.org>
Sun, 8 Oct 2017 09:43:20 +0000 (11:43 +0200)
zshrc

diff --git a/zshrc b/zshrc
index a709d6d5d9941ed614bab7bf03779a8ff00d2452..0eb27b60ac5a941478be0ba4e384064aad1a8554 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -46,3 +46,7 @@ case "$TERM" in
                bindkey '^[[B' history-beginning-search-forward >/dev/null 2>&1
                ;;
 esac
+if [ "$TERM" = 'screen' ]; then
+               screen_title () { print -Pn "\ek%n@%m: %~\e\\" }
+               precmd_functions=(screen_title)
+fi
This page took 0.022581 seconds and 4 git commands to generate.