Created
May 15, 2015 17:25
-
-
Save workmad3/7c3b0420bac48ae19981 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rationalise-dot() { | |
if [[ $LBUFFER = *.. ]]; then | |
LBUFFER+=/.. | |
else | |
LBUFFER+=. | |
fi | |
} | |
zle -N rationalise-dot | |
bindkey . rationalise-dot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment