X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=zsh%2Frc;h=0724afcc5c94de5c1ea3f7816aa80b86a2f131f3;hb=d94a9346215294a2f5258a110fb1c2c6443530f2;hp=e49885e600f1522bb10a360ef08e4026ea49eba5;hpb=9675a9f5b894ba739e1223b892bc44bf4a835d39;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index e49885e..0724afc 100644 --- a/zsh/rc +++ b/zsh/rc @@ -265,8 +265,9 @@ alias m='mutt' alias v='vim' alias vi='vim' -# Exit binding like in Vim; I sometimes confuse editor and shell. -alias :q='exit' +# I sometimes confuse editor and shell, print a warning to prevent I exit the +# shell. +alias :q='echo "This is not Vim!" >&2' # Edit the mercurial patch queue series file for the current mercurial # repository in Vim. Also change Vim's pwd to the patches directory so other