Skip to content

Instantly share code, notes, and snippets.

@simbafs
Created November 14, 2019 15:34
Show Gist options
  • Save simbafs/d02c23ba1c16bafa5a9fc93915e106f8 to your computer and use it in GitHub Desktop.
Save simbafs/d02c23ba1c16bafa5a9fc93915e106f8 to your computer and use it in GitHub Desktop.
#!/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