zsh:keys: Bind ^U to cd ..

I do not use readline/emacs(?) mapping to clear the line with ^U anyways
as I have my beloved vim bindings.
This commit is contained in:
2023-02-23 14:39:54 +01:00
parent a85d6c53c4
commit 8e183a37bf

View File

@@ -210,6 +210,14 @@ function go-shcwd {
zle -N go-shcwd
bindkey '^G' go-shcwd
# move one directory up on ^U (mnemonic: 'Up')
function cd-up {
pushd -q ..
redraw-prompt
}
zle -N cd-up
bindkey '^U' cd-up
## History
# Ctrl-Up
bindkey '^[[1;5A' fzf-history-widget