From d0429dc0bb21fbe63728673b03ad70bb23b7f9d9 Mon Sep 17 00:00:00 2001 From: Eric Nielsen Date: Thu, 21 Sep 2017 19:23:14 -0500 Subject: [PATCH] [environment] Remove path separator from WORDCHARS So individual path elements can be edited with backward-kill-word and backward-word/forward-word keys. Fixes #206. --- modules/environment/init.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/environment/init.zsh b/modules/environment/init.zsh index 4016bef..32e037e 100644 --- a/modules/environment/init.zsh +++ b/modules/environment/init.zsh @@ -31,6 +31,9 @@ unsetopt HUP # NO_CHECK_JOBS is best used only in combination with NO_HUP, else such jobs will be killed automatically. unsetopt CHECK_JOBS +# Remove path separtor from WORDCHARS. +WORDCHARS=${WORDCHARS//[\/]} + # Set less or more as the default pager. if (( ! ${+PAGER} )); then if (( ${+commands[less]} )); then