mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 18:51:15 -03:00
completions/tmux: complete commands inside tmux lscm
Make `tmux lscm <tab>` work.
(cherry picked from commit 77406ddd11)
This commit is contained in:
committed by
David Adam
parent
323bddcce6
commit
9385a25c22
@@ -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 ###############
|
||||
|
||||
Reference in New Issue
Block a user