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+
13# Author arthurkiller
2435# data 2017-1-4
46# this shell is used for initialize the tmux-config
57
6- #! /bin/bash
7-
88trap exit ERR
9- if [ -d $HOME /.tmux ]
9+ if [ -d ~ /.tmux ]
1010then
1111 echo .tmux already exist
12- mv $HOME /.tmux $HOME /.tmux.bak
12+ mv ~ /.tmux ~ /.tmux.bak
1313fi
1414
15- if [ -e $HOME /.tmux.conf ]
15+ if [ -e ~ /.tmux.conf ]
1616then
1717 echo .tmux.conf already exist
18- mv $HOME /.tmux.conf $HOME /.tmux.conf.bak
18+ mv ~ /.tmux.conf ~ /.tmux.conf.bak
1919fi
2020
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
2323
24- cd ~ /.tmux && git submodule init && git submodule update
24+ pushd ~ /.tmux && git submodule init && git submodule update
2525
2626cd ~ /.tmux/vendor/tmux-mem-cpu-load && cmake . && make && sudo make install
2727
2828tmux source-file ~ /.tmux.conf
29+
30+ popd
You can’t perform that action at this time.
0 commit comments