1
0
Fork 0
mirror of synced 2024-11-22 15:25:34 -05:00

[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

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