function directory_up { pushd -1 zle reset-prompt } zle -N directory-up directory_up bindkey "\e[5~" directory-up