Fix completion for OSX/Fish

OSX `sed` is not GNU `sed`, and doesn't support the `\s` whitespace character sequence. This results in autocompletion suggestions including leading spaces, e.g.,
```
$ asdf local python \ \ 3.8.0
```

Using the POSIX compliant `[[:space:]]` sequence is more compatible, and removes the unnecessary spaces on OSX.
This commit is contained in:
James Roeder 2019-11-13 12:22:08 -05:00 committed by GitHub
parent c3ad7e0357
commit ac0cd0f4d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ function __fish_asdf_arg_at -a number
end
function __fish_asdf_list_versions -a plugin
asdf list $plugin 2> /dev/null | sed -e 's/^\s*//'
asdf list $plugin 2> /dev/null | sed -e 's/^[[:space:]]*//'
end
function __fish_asdf_list_all -a plugin