Fix HOME and END key bindings in zle

This commit is contained in:
Kenneth Benzie 2019-05-22 10:51:54 +01:00
parent 4b2b0d38c7
commit 0da54801e4

4
zshrc
View File

@ -129,6 +129,10 @@ autoload -U edit-command-line
zle -N edit-command-line zle -N edit-command-line
bindkey -M vicmd '^V' edit-command-line bindkey -M vicmd '^V' edit-command-line
# Enable HOME and END keys
bindkey $key[Home] beginning-of-line
bindkey $key[End] end-of-line
# Get the shells parent process name. # Get the shells parent process name.
ppid_name() { echo $(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=) } ppid_name() { echo $(ps -p $(ps -p $(echo $$) -o ppid=) -o comm=) }