This commit is contained in:
Dict Xiong 2022-08-28 15:50:36 +08:00
parent 90242e6252
commit d6779d639a
2 changed files with 8 additions and 4 deletions

View File

@ -11,7 +11,6 @@ jobs:
run: | run: |
sudo apt update sudo apt update
sudo apt install -y git python3 python3-pip zsh curl inetutils-ping sudo apt install -y git python3 python3-pip zsh curl inetutils-ping
sudo apt remove -y vim tmux
sudo pip3 install requests sudo pip3 install requests
- name: checkout repo - name: checkout repo
@ -21,6 +20,7 @@ jobs:
run: | run: |
rev=`git rev-parse HEAD` rev=`git rev-parse HEAD`
pwd pwd
export DFS_NO_COMPILE=1
./install.sh ./install.sh
git checkout $rev git checkout $rev
@ -42,7 +42,6 @@ jobs:
run: | run: |
brew update brew update
brew install git python3 zsh curl brew install git python3 zsh curl
sudo rm /usr/bin/vim
sudo pip3 install requests sudo pip3 install requests
- name: checkout repo - name: checkout repo
@ -52,6 +51,7 @@ jobs:
run: | run: |
rev=`git rev-parse HEAD` rev=`git rev-parse HEAD`
pwd pwd
export DFS_NO_COMPILE=1
./install.sh ./install.sh
git checkout $rev git checkout $rev

View File

@ -93,7 +93,9 @@ install_tmux_tpm(){
git clone https://gitee.com/dictxiong/tpm "$TMUX_TPM" git clone https://gitee.com/dictxiong/tpm "$TMUX_TPM"
if [[ -x $(command -v g++) && -x $(command -v cmake) && -x $(command -v make) ]]; then if [[ -x $(command -v g++) && -x $(command -v cmake) && -x $(command -v make) ]]; then
fmt_note "initializing tmux plugins ..." fmt_note "initializing tmux plugins ..."
if [[ -z "$DFS_NO_COMPILE" ]]; then
~/.tmux/plugins/tpm/bin/install_plugins ~/.tmux/plugins/tpm/bin/install_plugins
fi
else else
fmt_warning "pls install g++,cmake,make and then init tmux plugins by <prefix + I> or ~/.tmux/plugins/tpm/bin/install_plugins" fmt_warning "pls install g++,cmake,make and then init tmux plugins by <prefix + I> or ~/.tmux/plugins/tpm/bin/install_plugins"
fi fi
@ -106,8 +108,10 @@ install_vim_vundle(){
fmt_note "installing vim vundle ..." fmt_note "installing vim vundle ..."
git clone https://gitee.com/dictxiong/Vundle.vim "$VIM_VUNDLE" git clone https://gitee.com/dictxiong/Vundle.vim "$VIM_VUNDLE"
fmt_note "initializing vim plugins ..." fmt_note "initializing vim plugins ..."
if [[ -z "$DFS_NO_COMPLIE" ]]; then
vim +PluginInstall +qall vim +PluginInstall +qall
fi fi
fi
} }
install_update(){ install_update(){