-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Generated completions for Fish shell don't work for Spago
To Reproduce
> spago --fish-completion-script (which spago) > ~/.config/fish/completions/spago.fish
> source ~/.config/fish/config.fish
# and just in case
> source ~/.config/fish/completions/spago.fishExpected behavior
Shell completions appear upon pressing tab etc.
Additional context
Fish 3.6.1
Spago v0.93.18
Generated script:
function _bundle.js
set -l cl (commandline --tokenize --current-process)
# Hack around fish issue #3934
set -l cn (commandline --tokenize --cut-at-cursor --current-process)
set -l cn (count $cn)
set -l tmpline --bash-completion-enriched --bash-completion-index $cn
for arg in $cl
set tmpline $tmpline --bash-completion-word $arg
end
for opt in (/home/me/.asdf/shims/spago $tmpline)
if test -d $opt
echo -E "$opt/"
else
echo -E "$opt"
end
end
end
complete --no-files --command bundle.js --arguments '(_bundle.js)'⏎ Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working