Skip to content

Instantly share code, notes, and snippets.

@hiro08gh
Last active June 8, 2020 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiro08gh/7e9562469059f4073f8974ce5157f3d1 to your computer and use it in GitHub Desktop.
Save hiro08gh/7e9562469059f4073f8974ce5157f3d1 to your computer and use it in GitHub Desktop.
#!/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