diff --git a/install.sh b/install.sh index 970e4b8..5c25d7c 100755 --- a/install.sh +++ b/install.sh @@ -1,28 +1,30 @@ +#!/bin/bash + # Author arthurkiller # email arthur-lee@qq.com # data 2017-1-4 # this shell is used for initialize the tmux-config -#!/bin/bash - trap exit ERR -if [ -d $HOME/.tmux ] +if [ -d ~/.tmux ] then echo .tmux already exist - mv $HOME/.tmux $HOME/.tmux.bak + mv ~/.tmux ~/.tmux.bak fi -if [ -e $HOME/.tmux.conf ] +if [ -e ~/.tmux.conf ] then echo .tmux.conf already exist - mv $HOME/.tmux.conf $HOME/.tmux.conf.bak + mv ~/.tmux.conf ~/.tmux.conf.bak fi -cp -r $HOME/tmux-config $HOME/.tmux -ln -s $HOME/.tmux/.tmux.conf $HOME/.tmux.conf +cp -r . ~/.tmux +ln -s ~/.tmux/.tmux.conf ~/.tmux.conf -cd ~/.tmux && git submodule init && git submodule update +pushd ~/.tmux && git submodule init && git submodule update cd ~/.tmux/vendor/tmux-mem-cpu-load && cmake . && make && sudo make install tmux source-file ~/.tmux.conf + +popd