Skip to content

Commit

Permalink
Make zsh delete words with Ctrl-W
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
  • Loading branch information
jviotti committed Sep 21, 2020
1 parent 1d4e77d commit 3c29ed2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ setopt pushdminus
# They will be gracefully ignored
setopt interactive_comments

# Delete words with Ctrl-W
# See https://unix.stackexchange.com/a/392199
autoload -U select-word-style
select-word-style bash
export WORDCHARS='.-'

##################################################
# PATH
##################################################
Expand Down

0 comments on commit 3c29ed2

Please sign in to comment.