From: Simon Ruderich Date: Mon, 3 Aug 2009 11:20:00 +0000 (+0200) Subject: zsh: Move window naming alias to alias section. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=9710452540eb70702890d200077e2a6f60e7a0b2;p=config%2Fdotfiles.git zsh: Move window naming alias to alias section. --- 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'