tmux: make session auto-completion user friendly

make it more user friendly by matching the output of:
  tmux list-sessions

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
This commit is contained in:
Greg Dietsche 2013-04-05 01:16:01 -05:00 committed by ridiculousfish
parent c78c1427be
commit 6de30028a8

View file

@ -1,5 +1,5 @@
function __fish_tmux_sessions --description 'available sessions'
tmux list-sessions -F "#S #{session_windows} windows Created: #{session_created_string} [#{session_width}x#{session_height}] Attached=#{session_attached}" ^/dev/null
tmux list-sessions -F "#S #{session_windows} windows created: #{session_created_string} [#{session_width}x#{session_height}]#{session_attached}" | sed 's/0$//;s/1$/ (attached)/' ^/dev/null
end
function __fish_tmux_clients --description 'connected clients'