aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/tmuxinator.fish
blob: 4005bf07705f5850a9786623c233c2ae431b2d38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function __fish_tmuxinator_using_command
  set cmd (commandline -opc)
  if [ (count $cmd) -gt 1  ]
    if [ $argv[1] = $cmd[2]  ]
      return 0
    end
  end
  return 1
end

complete -f -c tmuxinator -a '(tmuxinator completions start)'
complete -f -c tmuxinator -a '(tmuxinator commands)'
complete -f -c tmuxinator -n '__fish_tmuxinator_using_command start' -a '(tmuxinator completions start)'
complete -f -c tmuxinator -n '__fish_tmuxinator_using_command open' -a '(tmuxinator completions open)'
complete -f -c tmuxinator -n '__fish_tmuxinator_using_command copy' -a '(tmuxinator completions copy)'
complete -f -c tmuxinator -n '__fish_tmuxinator_using_command delete' -a '(tmuxinator completions delete)'