about summary refs log tree commit diff
path: root/Util
diff options
context:
space:
mode:
authorMatt Koscica <matt.koscica@gmail.com>2023-10-09 22:26:27 +0200
committerOliver Kiddle <opk@zsh.org>2023-11-14 21:39:30 +0100
commitbe223aedee772fc31e12ec8c5277f50aae25b0fe (patch)
tree495117a530fe2f6b69cbdf5be76a2d5998ef1aba /Util
parent5c7a97ff7d8f80a2ac823c47aaca26738e16f960 (diff)
downloadzsh-be223aedee772fc31e12ec8c5277f50aae25b0fe.tar.gz
zsh-be223aedee772fc31e12ec8c5277f50aae25b0fe.tar.xz
zsh-be223aedee772fc31e12ec8c5277f50aae25b0fe.zip
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
Diffstat (limited to 'Util')
-rwxr-xr-xUtil/check-tmux-state2
1 files changed, 1 insertions, 1 deletions
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