Skip to content
Snippets Groups Projects
Verified Commit 45a93103 authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Rework tmux dev setup spawning

Remove the unrequired -2 option when attaching a tmux session. Get rid
of the warning when selecting the window by providing the missing + and
remove the unrequired split-window.
parent c10d62d8
No related branches found
No related tags found
No related merge requests found
Pipeline #3171 passed
......@@ -8,19 +8,17 @@ tmux new-session -d -s ${SESSION}
# Setup panes
tmux new-window -t ${SESSION}:0 -n "${SESSION}"
tmux split-window -v
tmux select-pane -t 0
tmux send-keys "make js-watcher" C-m
tmux split-window -v
tmux select-pane -t 1
tmux send-keys "make sass-watcher" C-m
tmux split-window -v
tmux select-pane -t 2
tmux send-keys "caddy" C-m
# Set default window
tmux select-window -t $SESSION:1
tmux select-window -t $SESSION:+1
# Attach to session
tmux -2 attach-session -t $SESSION
tmux attach-session -t $SESSION
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment