Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created May 15, 2015 17:25
Show Gist options
  • Save workmad3/7c3b0420bac48ae19981 to your computer and use it in GitHub Desktop.
Save workmad3/7c3b0420bac48ae19981 to your computer and use it in GitHub Desktop.
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