X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fskel%2F.zshrc;h=dd4b14dad60550971c44944b569b721247ba4400;hb=e92dd973c951d7f5066c650d0487808d3857b70b;hp=0ccf8efb4f473c6a23479b0cb09a751b1aa68ff0;hpb=fab8bcc2d42a8202856a8ff1e1b5b21c596c51f8;p=grml-etc-core.git diff --git a/etc/skel/.zshrc b/etc/skel/.zshrc index 0ccf8ef..dd4b14d 100644 --- a/etc/skel/.zshrc +++ b/etc/skel/.zshrc @@ -64,6 +64,23 @@ fi #WORDCHARS='*?_[]~=&;!#$%^(){}' #WORDCHARS='${WORDCHARS:s@/@}' +# just type '...' to get '../..' +#rationalise-dot() { +#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 ##