Add zsh binds for MacOSX HOME/END/DEL
This commit is contained in:
parent
fe2ebf9148
commit
098d12d332
1 changed files with 5 additions and 0 deletions
5
.zshrc
5
.zshrc
|
@ -15,6 +15,11 @@ fi
|
|||
|
||||
source ~/.p10k/powerlevel10k.zsh-theme
|
||||
|
||||
# Make extra keys in MacOSX behave like expected
|
||||
bindkey "^[[H" beginning-of-line # HOME
|
||||
bindkey "^[[F" end-of-line # END
|
||||
bindkey "^[[3~" delete-char # DEL
|
||||
|
||||
# Print user@host into title so terminal tabs are correct
|
||||
# Despite being called precmd() this executes after process exits, before prompt
|
||||
precmd() { echo -ne "\033]0;${USER}@${HOST}\007" }
|
||||
|
|
Loading…
Add table
Reference in a new issue