commit 949fb358437e5e55f7d3842429ff02cfb9cbca70 Author: Tomasz Pala <go...@pld-linux.org> Date: Sun Oct 8 11:43:20 2017 +0200
set window title under GNU/screen zshrc | 4 ++++ 1 file changed, 4 insertions(+) --- diff --git a/zshrc b/zshrc index a709d6d..0eb27b6 100644 --- 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 ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/zsh.git/commitdiff/69754942d3867f689add3a6ccf7dc4f33be37942 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit