[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:
Eric Nielsen 2017-09-21 19:23:14 -05:00
parent d40b6cf928
commit d0429dc0bb
1 changed files with 3 additions and 0 deletions

View File

@ -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.
# Set less or more as the default pager.
if (( ! ${+PAGER} )); then
if (( ${+commands[less]} )); then