Skip to content

Commit

Permalink
Properly filter when there are multiple sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
cwacek committed Nov 19, 2013
1 parent 668cc2a commit 6f45771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmux-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ _tmux()

case $prev in
-t)
local sessions=$(tmux list-sessions 2>/dev/null | awk '{printf("%s ", $1)}')
local sessions=$(tmux list-sessions 2>/dev/null | awk -F ':' '{printf("%s ", $1)}')
if [[ -z $sessions ]]; then
COMPREPLY=()
else
Expand Down

0 comments on commit 6f45771

Please sign in to comment.