Last active
April 10, 2022 09:16
-
-
Save myshov/156447407a3bc01645fd5bdae8ccc45e to your computer and use it in GitHub Desktop.
Start tmux session
This file contains hidden or 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
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