X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=62b4a58fe1a66d73b56c63480660ef58fb4ecaf5;hb=2f0e82c8076be08e8305d85737e8974c8af478e9;hp=4712a055f6a7c863c3c4b44e6fd9f94ec2412a07;hpb=fb5e7e65c22c75803e98616425306a2a29c2c46e;p=config%2Fdotfiles.git 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'