diff options
author | 2016-02-04 13:53:55 +0100 | |
---|---|---|
committer | 2016-02-04 13:53:55 +0100 | |
commit | b908d0b89bd595f5bcbbf8ec9e153b037ba1a2f3 (patch) | |
tree | ca350cf1fa423116c7e2257750ca4e8595b512e6 /share | |
parent | cadb5d51ea4d623818209c6400bfcef501e1ebce (diff) |
Another stringification (__fish_complete_command)
Diffstat (limited to 'share')
-rw-r--r-- | share/functions/__fish_complete_command.fish | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/share/functions/__fish_complete_command.fish b/share/functions/__fish_complete_command.fish index 983366db..35f5e29b 100644 --- a/share/functions/__fish_complete_command.fish +++ b/share/functions/__fish_complete_command.fish @@ -2,11 +2,7 @@ function __fish_complete_command --description 'Complete using all available com set -l ctoken (commandline -ct) switch $ctoken case '*=*' - # Some seds (e.g. on Mac OS X), don't support \n in the RHS - # Use a literal newline instead - # http://sed.sourceforge.net/sedfaq4.html#s4.1 - set ctoken (echo $ctoken | sed 's/=/\\ -/') + set ctoken (string split "=" -- $ctoken) printf '%s\n' $ctoken[1]=(complete -C$ctoken[2]) case '*' complete -C$ctoken |