about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorKeerthan jai.c <jckeerthan@gmail.com>2014-07-20 20:52:32 -0400
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-07-23 21:13:49 +0100
commit341d4434146d2216d4cdf4f0fffd060670d4c5c6 (patch)
tree682cd3540f698baa75d960632d1e78102797718b /Completion
parentf33270e8797c258caec81dfd94dfaff99acda29b (diff)
downloadzsh-341d4434146d2216d4cdf4f0fffd060670d4c5c6.tar.gz
zsh-341d4434146d2216d4cdf4f0fffd060670d4c5c6.tar.xz
zsh-341d4434146d2216d4cdf4f0fffd060670d4c5c6.zip
users/18981: improved tmux function completion
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_tmux5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index a8f133295..5a4a2d71f 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -573,12 +573,13 @@ function _tmux-new-session() {
     local -a args
     args=(
         '-d[do not attach new session to current terminal]'
+        '-A[attach to existing session if it already exists]'
         '-n[name the initial window]:window name'
-        '-s[name the session]:session name'
+        '-s[name the session]:session name:__tmux-sessions'
         '-t[specify target session]:sessions:__tmux-sessions'
         '*:: :_command'
     )
-    _arguments ${args}
+    _arguments -s ${args}
 }
 
 function _tmux-new-window() {