Created
November 14, 2019 15:34
-
-
Save simbafs/d02c23ba1c16bafa5a9fc93915e106f8 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
tmux new-session -d -s ckcsc | |
tmux new-window -t ckcsc:0 -n 'ckcsc' 'cd ~/git/ckcsc; npm start' | |
# split npm start | |
tmux select-pane -t ckcsc:0.0 | |
tmux split-pane -p 1 | |
tmux send-keys 'cd ~/git/ckcsc; npm start<enter>' | |
# split ternimal | |
tmux select-pane -t ckcsc:0.1 | |
tmux split-pane -h | |
tmux send-keys 'cd ~/git/ckcsc; clear<enter>' | |
# run vi | |
tmux select-pane -t ckcsc:0.0 | |
tmux send-keys 'cd ~/git/ckcsc; vi -s ~/.vim/script/nerdtree app.js<enter>' | |
# tmux split -p 20 'cd git/ckcsc; npm start' | |
# tmux select-pane -t ckcsc:0.0 | |
# tmux split -l 3 'cd git/ckcsc' | |
tmux select-window -t ckcsc:0.0 | |
tmux -2 attach-session -t ckcsc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment