From 9710452540eb70702890d200077e2a6f60e7a0b2 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 3 Aug 2009 13:20:00 +0200 Subject: [PATCH] zsh: Move window naming alias to alias section. --- zsh/rc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/zsh/rc b/zsh/rc index 4712a05..62b4a58 100644 --- a/zsh/rc +++ b/zsh/rc @@ -270,15 +270,6 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; 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 @@ -401,6 +392,15 @@ function ll() { la -l $* } +# 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 + # I sometimes confuse editor and shell, print a warning to prevent I exit the # shell. alias :q='echo "This is not Vim!" >&2' -- 2.45.2