Last active
June 8, 2020 00:43
-
-
Save hiro08gh/7e9562469059f4073f8974ce5157f3d1 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/bash | |
if [ "$#" -eq 0 ]; then | |
tmux new-session -d -s 'ide' | |
tmux attach -t ide | |
tmux split-window -v -p 30 | |
tmux split-window -h -p 66 | |
tmux split-window -h -p 50 | |
tmux select-pane -t 1 | |
else | |
case $1 in | |
"infra") | |
tmux new-session -d -s 'infra' | |
tmux attach -t server | |
tmux split-window -h -p 66 | |
tmux split-window -h -p 50 | |
tmux select-pane -t 1 | |
clear | |
;; | |
"kill") | |
tmux kill-server | |
clear | |
;; | |
*) | |
echo [ERROR] "$1"が見つかりません。 | |
esac | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment