[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.
This commit is contained in:
parent
d40b6cf928
commit
d0429dc0bb
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue