mirror of
https://github.com/tmuxinator/tmuxinator.git
synced 2026-07-17 21:52:30 -05:00
Enhance tmuxinator command completions by adding support for the 'stop' command in both Fish and Zsh completion scripts, improving user experience and command discoverability.
19 lines
1.2 KiB
Fish
19 lines
1.2 KiB
Fish
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 --no-files --command tmuxinator --condition __fish_use_subcommand --exclusive --argument "(tmuxinator commands)"
|
|
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command start' --argument "(tmuxinator completions start)"
|
|
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command open' --argument "(tmuxinator completions open)"
|
|
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command stop' --argument "(tmuxinator completions stop)"
|
|
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command edit' --argument "(tmuxinator completions open)"
|
|
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command copy' --argument "(tmuxinator completions copy)"
|
|
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command delete' --argument "(tmuxinator completions delete)"
|
|
complete --no-files --command tmuxinator --condition '__fish_tmuxinator_using_command debug' --argument "(tmuxinator completions start)"
|