File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
1
3
# Author arthurkiller
2
4
# email arthur-lee@qq.com
3
5
# data 2017-1-4
4
6
# this shell is used for initialize the tmux-config
5
7
6
- #! /bin/bash
7
-
8
8
trap exit ERR
9
- if [ -d $HOME /.tmux ]
9
+ if [ -d ~ /.tmux ]
10
10
then
11
11
echo .tmux already exist
12
- mv $HOME /.tmux $HOME /.tmux.bak
12
+ mv ~ /.tmux ~ /.tmux.bak
13
13
fi
14
14
15
- if [ -e $HOME /.tmux.conf ]
15
+ if [ -e ~ /.tmux.conf ]
16
16
then
17
17
echo .tmux.conf already exist
18
- mv $HOME /.tmux.conf $HOME /.tmux.conf.bak
18
+ mv ~ /.tmux.conf ~ /.tmux.conf.bak
19
19
fi
20
20
21
- cp -r $HOME /tmux-config $HOME /.tmux
22
- ln -s $HOME /.tmux/.tmux.conf $HOME /.tmux.conf
21
+ cp -r . ~ /.tmux
22
+ ln -s ~ /.tmux/.tmux.conf ~ /.tmux.conf
23
23
24
- cd ~ /.tmux && git submodule init && git submodule update
24
+ pushd ~ /.tmux && git submodule init && git submodule update
25
25
26
26
cd ~ /.tmux/vendor/tmux-mem-cpu-load && cmake . && make && sudo make install
27
27
28
28
tmux source-file ~ /.tmux.conf
29
+
30
+ popd
You can’t perform that action at this time.
0 commit comments