summaryrefslogtreecommitdiff
path: root/roles/shell/bash/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/shell/bash/templates')
-rw-r--r--roles/shell/bash/templates/bashrc.j25
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/shell/bash/templates/bashrc.j2 b/roles/shell/bash/templates/bashrc.j2
index 91311e5..bf5acfa 100644
--- a/roles/shell/bash/templates/bashrc.j2
+++ b/roles/shell/bash/templates/bashrc.j2
@@ -74,12 +74,15 @@ function tmux_dev() {
74 tmux new-session -d -c $start_dir -s "$type" \; \ 74 tmux new-session -d -c $start_dir -s "$type" \; \
75 $m -t "$type" \; \ 75 $m -t "$type" \; \
76 new-window -c $start_dir 76 new-window -c $start_dir
77 else 77 elif [ -d "$HOME/workdir/$type" ]; then
78 tmux new-session -d -c "$HOME/workdir/$type" -s "$type" \; \ 78 tmux new-session -d -c "$HOME/workdir/$type" -s "$type" \; \
79 $m -t "$type" \; \ 79 $m -t "$type" \; \
80 send-keys "../start" C-m \; \ 80 send-keys "../start" C-m \; \
81 rename-window "running" \; \ 81 rename-window "running" \; \
82 new-window -c "$HOME/workdir/$type" 82 new-window -c "$HOME/workdir/$type"
83 else
84 echo "Unknown session" >&2
85 false
83 fi 86 fi
84 fi 87 fi
85} 88}