summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-11-20 03:39:47 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-11-20 03:39:52 +0000
commitc563f1ba83c40aab632ac958a1d3a57277ca22cc (patch)
treedbee5e637e69721b11bdbdab4e05b83399003b59
parentd554f31bcbe1264f69e22e990d356ab7ee6e87a8 (diff)
downloadzsh-c563f1ba83c40aab632ac958a1d3a57277ca22cc.tar.gz
zsh-c563f1ba83c40aab632ac958a1d3a57277ca22cc.tar.xz
zsh-c563f1ba83c40aab632ac958a1d3a57277ca22cc.zip
37164: _tmux: Complete external commands
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Command/_tmux12
2 files changed, 9 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ab68f7a1..252f2fc5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-11-20  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 37164: Completion/Unix/Command/_tmux: _tmux: Complete external
+	commands
+
 	* 37149: Completion/Unix/Command/_git: _git: Complete
 	'bisect/bad' ref
 
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 6f2cac790..d218cc3f3 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -640,7 +640,7 @@ function _tmux-new-session() {
         '-t[specify target session]:sessions:__tmux-sessions'
         '-x[specify width]:width:_guard "[0-9]#" "numeric value"'
         '-y[specify height]:height:_guard "[0-9]#" "numeric value"'
-        '*:: :_command'
+        '*:: :_cmdstring'
     )
     _arguments -s ${args}
 }
@@ -657,7 +657,7 @@ function _tmux-new-window() {
         '-n[specify a window name]:window name:'
         '-P[print information about new window after it is created]'
         '-t[specify target window]:windows:__tmux-windows'
-        '*:: :_command'
+        '*:: :_cmdstring'
     )
     _arguments ${args}
 }
@@ -776,7 +776,7 @@ function _tmux-respawn-pane() {
     args=(
         '-k[kill window if it is in use]'
         '-t[choose target pane]:window:__tmux-pane'
-        '*::command:_command'
+        '*::command:_cmdstring'
     )
     _arguments ${args}
 }
@@ -787,7 +787,7 @@ function _tmux-respawn-window() {
     args=(
         '-k[kill window if it is in use]'
         '-t[choose target window]:window:__tmux-windows'
-        '*::command:_command'
+        '*::command:_cmdstring'
     )
     _arguments ${args}
 }
@@ -809,7 +809,7 @@ function _tmux-run-shell() {
     args=(
         '-b[run shell command in background]'
         '-t[choose target pane]:pane:__tmux-panes'
-        '*::command:_command'
+        '*::command:_cmdstring'
     )
     _arguments ${args}
 }
@@ -1042,7 +1042,7 @@ function _tmux-split-window() {
         # changing the command's name might annoy users. So it stays like
         # this.
         '-t[choose target pane]:window:__tmux-panes'
-        '*:: :_command'
+        '*:: :_cmdstring'
     )
     _arguments ${args} && return
 }