Skip to content

Instantly share code, notes, and snippets.

@sroccaserra
Created November 23, 2020 13:51
Show Gist options
  • Save sroccaserra/dd418f7e0f55f24c7ccbc204e3866d26 to your computer and use it in GitHub Desktop.
Save sroccaserra/dd418f7e0f55f24c7ccbc204e3866d26 to your computer and use it in GitHub Desktop.
Créer une session Tmux spécifique à un projet
#!/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