From be223aedee772fc31e12ec8c5277f50aae25b0fe Mon Sep 17 00:00:00 2001 From: Matt Koscica Date: Mon, 9 Oct 2023 22:26:27 +0200 Subject: github #106: update tmux completion (20230919); tweak Util/check-tmux-state - update tmux completion functions - tweak check-tmux-state to take current file format into account --- Util/check-tmux-state | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Util') diff --git a/Util/check-tmux-state b/Util/check-tmux-state index d95e0c230..9772eefc1 100755 --- a/Util/check-tmux-state +++ b/Util/check-tmux-state @@ -59,7 +59,7 @@ __tmux-window-options # in the _tmux function definition file. typeset -a supported_commands supported_commands=( $( grep '^_tmux-[^(]*() *{$' $func | - sed -e 's,^.*\<_tmux-,,' -e 's,(.*$,,' ) ) + sed -e 's,^_tmux[-]\([a-z-]*\)[(].*,\1,' ) ) # Ask tmux for available commands: typeset -a available_commands -- cgit v1.2.3