mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-20 23:32:38 +08:00
Tmuxinator completions
This commit is contained in:
parent
d300bd4b62
commit
04651105a8
16
share/completions/tmuxinator.fish
Normal file
16
share/completions/tmuxinator.fish
Normal file
@ -0,0 +1,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)'
|
Loading…
x
Reference in New Issue
Block a user