]>
git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/contexts/fretlink/files/scripts/fl_tmux_dev
ca89e27cea3aace87f9d01d8dece165436095489
4 if [ -n "$TMUX" ]; then
11 "bash") start_dir
="$HOME";;
12 "remote") start_dir
="$HOME";;
13 "puppet") start_dir
="/etc/puppetlabs/code"
16 if tmux has
-session -t "$type" 2>/dev
/null
; then
19 if [ "$type" = "remote" ]; then
20 tmux new
-session -d -c $start_dir -s "$type" mosh immae.eu \
; \
22 elif [ -n "$start_dir" ]; then
23 tmux new
-session -d -c $start_dir -s "$type" \
; \
25 new
-window -c $start_dir
26 elif [ -d "$HOME/workdir/$type" ]; then
27 tmux new
-session -d -c "$HOME/workdir/$type" -s "$type" \
; \
29 send
-keys "../start" C
-m \
; \
30 rename
-window "running" \
; \
31 new
-window -c "$HOME/workdir/$type"
33 echo "Unknown session" >&2