-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathide.sh
More file actions
executable file
·40 lines (38 loc) · 724 Bytes
/
ide.sh
File metadata and controls
executable file
·40 lines (38 loc) · 724 Bytes
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
33
34
35
36
37
38
39
40
#!/bin/bash
# set tmux panes for ide
if [ "$#" -eq 0 ]; then
tmux split-window -v
tmux split-window -h
tmux resize-pane -D 15
tmux select-pane -t 1
else
case $1 in
1)
tmux split-window -v
tmux resize-pane -D 15
tmux select-pane -D
clear
;;
2)
tmux split-window -h
tmux split-window -v
tmux resize-pane -D 15
tmux select-pane -t 1
tmux split-window -v
tmux select-pane -t 1
clear
;;
py)
cd ~/Desktop/python
tmux split-window -v
tmux split-window -h
tmux resize-pane -D 15
tmux select-pane -t 1
vi .
clear
;;
*)
echo [ERROR] "$1" is not available
;;
esac
fi