Skip to content

Instantly share code, notes, and snippets.

@mooz
Created October 3, 2010 03:55
Show Gist options
  • Save mooz/608246 to your computer and use it in GitHub Desktop.
Save mooz/608246 to your computer and use it in GitHub Desktop.
function cdup() {
echo
cd ..
echo "=> $PWD"
zle reset-prompt
}
function cdprev() {
echo
popd
zle reset-prompt
}
zle -N cdup
zle -N cdprev
bindkey '^u' cdup
bindkey '^j' cdprev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment