summaryrefslogtreecommitdiff
path: root/dot_config/private_fish/completions/f.fish
blob: 99796c6f64a232c8d6e7791531913725db90540d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# f wraps fossil by default
complete -c f -w fossil

# additional subcommands
set -l dcommands (fossil help -a)
set -l paths $PATH/fossil-*
set -l commands (string replace -r '.*fossil-' '' $paths)

if set -q commands[1]
  complete -c fossil -n "not __fish_seen_subcommand_from $dcommands" \
    -a "$commands"
end