Created
November 23, 2020 13:51
-
-
Save sroccaserra/dd418f7e0f55f24c7ccbc204e3866d26 to your computer and use it in GitHub Desktop.
Créer une session Tmux spécifique à un projet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
session=pix | |
tmux start-server | |
tmux new-session -d -s $session -n edit | |
tmux select-pane -t 1 | |
tmux send-keys "cd api;vim" C-m | |
tmux split-window -h -p 25 | |
tmux select-pane -t 2 | |
tmux send-keys "cd api;npm run test:api:unit -- --watch" C-m | |
tmux new-window -t $session:2 -n run | |
tmux select-pane -t 1 | |
tmux send-keys "cd api" C-m | |
tmux splitw -h | |
tmux select-pane -t 2 | |
tmux send-keys "cd certif" C-m | |
tmux select-window -t 1 | |
tmux select-pane -t 1 | |
tmux attach -t $session |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment