diff options
Diffstat (limited to 'scripts/scripts/tmux-fzf.sh')
-rwxr-xr-x | scripts/scripts/tmux-fzf.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/scripts/tmux-fzf.sh b/scripts/scripts/tmux-fzf.sh index 9caa7ea..cda0ec5 100755 --- a/scripts/scripts/tmux-fzf.sh +++ b/scripts/scripts/tmux-fzf.sh | |||
@@ -5,11 +5,11 @@ function __fzf() { | |||
5 | } | 5 | } |
6 | 6 | ||
7 | function __list_to_fzf() { | 7 | function __list_to_fzf() { |
8 | tmux ls -F "#{session_name}" | __fzf | 8 | tmux ls -F "#{session_name}" | fzf |
9 | } | 9 | } |
10 | 10 | ||
11 | if [ -n "$TMUX" ]; then | 11 | if [ -n "$TMUX" ]; then |
12 | tmux switch-client -t "$(__list_to_fzf)" | 12 | tmux switch-client -t "$(__list_to_fzf)" |
13 | else | 13 | else |
14 | tmux a -dt "$(tmux ls -F "#{session_name}" | __fzf)" | 14 | tmux a -dt "$(tmux ls -F "#{session_name}" | fzf)" |
15 | fi | 15 | fi |