From e7a3c318b08b49226645028285f1a245484b319a Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 7 Jun 2009 19:44:38 +0200 Subject: [PATCH] zsh: clear sets window title to ".zsh". --- zsh/rc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.44.2