fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMerge branch 'completions-to-use-expanded-tokens'a9618477e

master
733 B16 linesraw
1function __fish_tmuxinator_using_command
2    set -l cmd (commandline -xpc)
3    if test (count $cmd) -gt 1
4        if test $argv[1] = $cmd[2]
5            return 0
6        end
7    end
8    return 1
9end
10
11complete -f -c tmuxinator -a '(tmuxinator completions start)'
12complete -f -c tmuxinator -a '(tmuxinator commands)'
13complete -f -c tmuxinator -n '__fish_tmuxinator_using_command start' -a '(tmuxinator completions start)'
14complete -f -c tmuxinator -n '__fish_tmuxinator_using_command open' -a '(tmuxinator completions open)'
15complete -f -c tmuxinator -n '__fish_tmuxinator_using_command copy' -a '(tmuxinator completions copy)'
16complete -f -c tmuxinator -n '__fish_tmuxinator_using_command delete' -a '(tmuxinator completions delete)'