Skip to content

Commit ced59c3

Browse files
authored
Merge pull request #1534 from jessedhillon/feat/tmux-session-completion
feat(tmux): complete target-session arguments
2 parents 6f1eba6 + 18b6da4 commit ced59c3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

completions-core/tmux.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ _comp_cmd_tmux__value()
111111
file | *-file | path | *-path)
112112
_comp_compgen_filedir
113113
;;
114+
target-session)
115+
_comp_compgen_split -l -- "$(_comp_cmd_tmux__run \
116+
list-sessions -F '#{session_name}')"
117+
;;
114118
esac
115119
}
116120

0 commit comments

Comments
 (0)