mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
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:
parent
c3ad7e0357
commit
ac0cd0f4d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user