X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/a44bc338a8950ef75edd702e5902357a513ca783..c2fc1c7c9dc991f9e71b1074a5556572f7e0a368:/.zsh/zshrc/00_TODO?ds=sidebyside diff --git a/.zsh/zshrc/00_TODO b/.zsh/zshrc/00_TODO index 1fb9583..32e197d 100644 --- a/.zsh/zshrc/00_TODO +++ b/.zsh/zshrc/00_TODO @@ -34,6 +34,17 @@ REPORTTIME=5 MAILCHECK=0 +# http://grml.org/zsh/zsh-lovers.html +rationalise-dot() { + if [[ $LBUFFER = *.. ]]; then + LBUFFER+=/.. + else + LBUFFER+=. + fi +} +zle -N rationalise-dot +bindkey . rationalise-dot + : # vim:ft=zsh