X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=dd4b14dad60550971c44944b569b721247ba4400;hb=d3a3ea5b0622f2ff6e01cd73a760bc4f29b83c3c;hp=b48a9b9e010442e4dcd2b2917fcac22c10a8add8;hpb=e193e4ae069b867a66038c1e576ec3433e735e8a;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index b48a9b9..dd4b14d 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -64,20 +64,24 @@ fi #WORDCHARS='*?_[]~=&;!#$%^(){}' #WORDCHARS='${WORDCHARS:s@/@}' -# just type 'cd ...' to get 'cd ../..' +# just type '...' to get '../..' #rationalise-dot() { -# if [[ $LBUFFER == *.. ]] ; then -# LBUFFER+=/.. -# else -# LBUFFER+=. -# fi +#local MATCH +#if [[ $LBUFFER =~ '(^|/| | |'$'\n''|\||;|&)\.\.$' ]]; then +# LBUFFER+=/ +# zle self-insert +# zle self-insert +#else +# zle self-insert +#fi #} #zle -N rationalise-dot #bindkey . rationalise-dot +## without this, typing a . aborts incremental history search +#bindkey -M isearch . self-insert #bindkey '\eq' push-line-or-edit - ## some popular options ## ## add `|' to output redirections in the history