]>
git.immae.eu Git - perso/Immae/Config/Ansible.git/blob - roles/contexts/fretlink/files/scripts/fl_tmux_dev
4 tmux
-f $XDG_CONFIG_HOME/tmux
/tmux.conf
"$@"
8 if [ -n "$TMUX" ]; then
15 "bash") start_dir
="$HOME";;
16 "remote") start_dir
="$HOME";;
17 "puppet") start_dir
="/etc/puppetlabs/code"
20 if tmux has
-session -t "$type" 2>/dev
/null
; then
23 if [ "$type" = "remote" ]; then
24 tmux_conf new
-session -d -c $start_dir -s "$type" mosh immae.eu \
; \
26 elif [ -n "$start_dir" ]; then
27 tmux_conf new
-session -d -c $start_dir -s "$type" \
; \
29 new
-window -c $start_dir
30 elif [ -d "$HOME/workdir/$type" ]; then
31 tmux_conf new
-session -d -c "$HOME/workdir/$type" -s "$type" \
; \
33 send
-keys "../start" C
-m \
; \
34 rename
-window "running" \
; \
35 new
-window -c "$HOME/workdir/$type"
37 echo "Unknown session" >&2