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:
@@ -210,6 +210,14 @@ function go-shcwd {
|
|||||||
zle -N go-shcwd
|
zle -N go-shcwd
|
||||||
bindkey '^G' 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
|
## History
|
||||||
# Ctrl-Up
|
# Ctrl-Up
|
||||||
bindkey '^[[1;5A' fzf-history-widget
|
bindkey '^[[1;5A' fzf-history-widget
|
||||||
|
|||||||
Reference in New Issue
Block a user