From: Simon Ruderich Date: Sun, 7 Jun 2009 17:44:38 +0000 (+0200) Subject: zsh: clear sets window title to ".zsh". X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=e7a3c318b08b49226645028285f1a245484b319a;p=config%2Fdotfiles.git zsh: clear sets window title to ".zsh". --- diff --git a/zsh/rc b/zsh/rc index d101a3c..3e3be66 100644 --- a/zsh/rc +++ b/zsh/rc @@ -270,6 +270,15 @@ if [[ $TERM == screen* || $TERM == xterm* ]]; then add-zsh-hook precmd window_precmd fi +# If the window naming feature is used (see above) then use ".zsh" (leading +# dot) as title name after running clear so it's clear to me that the window +# is empty. I open so much windows that I don't know in which I have something +# important. This helps me to remember which windows are empty (I run clear +# after I finished my work in a window). +if [[ -n $window_reset ]]; then + alias clear='clear; window_title .zsh' +fi + # COMPLETION SETTINGS