2014-12-24 15:22:41 +08:00
|
|
|
function __fish_tmuxinator_using_command
|
2020-05-15 13:56:06 +08:00
|
|
|
set -l cmd (commandline -opc)
|
2021-11-23 21:45:28 +08:00
|
|
|
if test (count $cmd) -gt 1
|
|
|
|
if test $argv[1] = $cmd[2]
|
2019-05-05 18:53:09 +08:00
|
|
|
return 0
|
|
|
|
end
|
2014-12-24 15:22:41 +08:00
|
|
|
end
|
2019-05-05 18:53:09 +08:00
|
|
|
return 1
|
2014-12-24 15:22:41 +08:00
|
|
|
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)'
|