opt-env-conf-test-0.0.0.4: test_resources/completion/fish-completion-script.fish
function _opt_env_conf_completion_example_executable
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 --query-opt-env-conf-completion --completion-enriched --completion-index $cn
for arg in $cl
set tmpline $tmpline --completion-word $arg
end
for opt in (/usr/bin/example-executable $tmpline)
set -l val (string split \t -- $opt)[1]
if test -d $val
echo -E "$val/"
else
echo -E "$val"
end
end
end
complete --no-files --command /usr/bin/example-executable --arguments '(_opt_env_conf_completion_example_executable)'