mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 04:46:41 +00:00
fix(shell/vscode): make alt+left/right work in VSCode terminal
This commit is contained in:
11
zsh/vscode.zsh
Normal file
11
zsh/vscode.zsh
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# VSCode environment setup.
|
||||
#
|
||||
|
||||
if [[ $TERM_PROGRAM == "vscode" ]]; then
|
||||
bindkey -e
|
||||
|
||||
# Fix alt+left/right inserting `;3D` and `;3C` instead of word navigation.
|
||||
bindkey '\e[1;3D' backward-word # Alt+Left
|
||||
bindkey '\e[1;3C' forward-word # Alt+Right
|
||||
fi
|
||||
Reference in New Issue
Block a user