diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tmux_start.sh | 4 | ||||
-rwxr-xr-x | scripts/tmux_window_renum.sh | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/tmux_start.sh b/scripts/tmux_start.sh index bbf33c5..924cf78 100755 --- a/scripts/tmux_start.sh +++ b/scripts/tmux_start.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash #from http://www.huyng.com/posts/productivity-boost-with-tmux-iterm2-workspaces/ export PATH=$PATH:/usr/local/bin @@ -31,7 +31,7 @@ do break ;; *) - tmux attach-session -t $opt + tmux attach-session -t "$opt" break ;; esac diff --git a/scripts/tmux_window_renum.sh b/scripts/tmux_window_renum.sh index 6a63814..ed33584 100755 --- a/scripts/tmux_window_renum.sh +++ b/scripts/tmux_window_renum.sh @@ -1,4 +1,4 @@ -for session in $(tmux ls | awk -F: '{print $1}') ;do +for session in $(tmux ls | awk -F: '{print $1}') ; do active_window=$(tmux lsw -t ${session} | awk -F: '/\(active\)$/ {print $1}') inum=0 for window in $(tmux lsw -t ${session} | awk -F: '{print $1}') ;do |