tide/completions/tide.fish
2020-05-24 15:37:09 -07:00

7 lines
295 B
Fish

set -l subcommands (printf '%s ' (basename -a -s '.fish' $_tide_dir/functions/*))
# Disable file completions for the entire command
complete -c tide -f
# Offer subcommands if no subcommand has been given so far
complete -c tide -n "not __fish_seen_subcommand_from $subcommands" -a $subcommands