aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/tmux-fzf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scripts/tmux-fzf.sh')
-rwxr-xr-xscripts/scripts/tmux-fzf.sh4
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
7function __list_to_fzf() { 7function __list_to_fzf() {
8 tmux ls -F "#{session_name}" | __fzf 8 tmux ls -F "#{session_name}" | fzf
9} 9}
10 10
11if [ -n "$TMUX" ]; then 11if [ -n "$TMUX" ]; then
12 tmux switch-client -t "$(__list_to_fzf)" 12 tmux switch-client -t "$(__list_to_fzf)"
13else 13else
14 tmux a -dt "$(tmux ls -F "#{session_name}" | __fzf)" 14 tmux a -dt "$(tmux ls -F "#{session_name}" | fzf)"
15fi 15fi