-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakeTmuxSession.sh
More file actions
executable file
·32 lines (28 loc) · 1.44 KB
/
Copy pathmakeTmuxSession.sh
File metadata and controls
executable file
·32 lines (28 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
<<<<<<< HEAD
if [ -z "$1" ]
then
=======
if [ "$#" == "0" ]; then
>>>>>>> 040723b3aa705da76f93e76ad875e7308a79f04c
SESSIONNAME="reports"
else
SESSIONNAME="$1"
fi
tmux has-session -t $SESSIONNAME &> /dev/null
if [ $? != 0 ]
then
tmux new-session -s $SESSIONNAME -n server -d 'cd ~/enthenergy/source/etireports/etirweb; bash -i'
tmux new-window -n dev -d 'cd ~/enthenergy/source/etireports/etirweb; workon pyramid; bash -i'
tmux split-window -t server -h
tmux new-window -n init -d 'cd ~/enthenergy/source/etireports/etirweb; bash -i'
tmux new-window -n bash -d 'cd ~/enthenergy/source/etireports/etirweb/etirweb/static; bash -i'
tmux new-window -n view1 -d 'cd ~/enthenergy/source/etireports/etirweb/etirweb/views; bash -i'
tmux new-window -n view2 -d 'cd ~/enthenergy/source/etireports/etirweb/etirweb/views; bash -i'
tmux new-window -n templ1 -d 'cd ~/enthenergy/source/etireports/etirweb/etirweb/templates; bash -i'
tmux new-window -n templ2 -d 'cd ~/enthenergy/source/etireports/etirweb/etirweb/templates; bash -i'
tmux new-window -n dbCons -d 'cd ~/enthenergy/source/etireports/etirweb; bash -i'
tmux new-window -n ipython -d 'cd ~/enthenergy/source/etireports/etirweb; workon pyramid; ipython; bash -i'
#tmux send-keys -t $SESSIONNAME "~/enthenergy/etireports/etirweb" C-m
fi
tmux attach -t $SESSIONNAME