Skip to content

Instantly share code, notes, and snippets.

@myshov
Last active April 10, 2022 09:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myshov/156447407a3bc01645fd5bdae8ccc45e to your computer and use it in GitHub Desktop.
Save myshov/156447407a3bc01645fd5bdae8ccc45e to your computer and use it in GitHub Desktop.
Start tmux session
tmuxSessionWork="work"
tmux start-server
tmux new-session -d -s $tmuxSessionWork -n vim
tmux new-window -t $tmuxSessionWork:2 -n ssh
tmux selectp -t 1
tmux send-keys "cd projects" C-m
tmux splitw -h -p 50
tmux new-window -t $tmuxSessionWork:3 -n bash
tmux select-window -t $tmuxSessionWork:1
tmux attach-session -t $tmuxSessionWork
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment