I am using the word split style shell (select-word-style shell). I like it in general but would like to split at forward slashes also, so that when I go forward/backward a word, if the word doesn't contain any /s, it completely skips over the word but if it does contain one or more slashes, it stops at the first slash.
Any ideas?
WORDCHARS=${WORDCHARS//[\/]}
. – James O'Gorman Sep 19 '12 at 14:24WORDCHARS=${WORDCHARS/\/}
– Nahuel Fouilleul Sep 19 '12 at 14:44WORDCHARS=$WORDCHARS:s:/:
– Stéphane Chazelas Nov 17 '12 at 21:39;
isn't needed ? I would add'"'
and"'"
(single and double quotes) and~
– elig Mar 29 '20 at 07:51select-word-style shell
, and that ignores$WORDCHARS
. – Gilles 'SO- stop being evil' Aug 20 '21 at 21:28