mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-24 11:53:09 +00:00
completions/tmux: complete commands inside tmux lscm
Make `tmux lscm <tab>` work.
This commit is contained in:
parent
5cdc7ae61f
commit
b93287385c
1 changed files with 4 additions and 0 deletions
|
@ -64,6 +64,10 @@ end
|
|||
__fish_tmux_parse_lscm_usage
|
||||
functions -e __fish_tmux_parse_lscm_usage
|
||||
|
||||
# Completions for `tmux list-commands` itself
|
||||
set -l all_commands (tmux list-commands -F "#{command_list_name} #{command_list_alias}" 2>/dev/null)
|
||||
and complete -c tmux -n "__fish_seen_subcommand_from list-commands lscm" -x -a "$all_commands"
|
||||
|
||||
############### End: Dynamic Completions Using `tmux list-commands` ###############
|
||||
|
||||
############### Begin: Front Flags ###############
|
||||
|
|
Loading…
Reference in a new issue