Skip to content

Fix tmux DEL, HOME and END keybindings under zsh in WSL2

I found it was necessary to enable two custom keybindings to make these keys work under Arch linux using zsh in WSL2:

# Fix HOME, END, and DEL keys for zsh
bindkey  "^[[H"   beginning-of-line
bindkey  "^[[F"   end-of-line
bindkey  "^[[3~"  delete-char

# Fix HOME and END for tmux
bindkey "\E[1~" beginning-of-line
bindkey "\E[4~" end-of-line
Published inDevelopment

Be First to Comment

Leave a Reply