From d6779d639acea5882f01fa53ae543a52eaca7d40 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sun, 28 Aug 2022 15:50:36 +0800 Subject: [PATCH] debug --- .github/workflows/test.yml | 4 ++-- install.sh | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bed8707..226835b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,6 @@ jobs: run: | sudo apt update sudo apt install -y git python3 python3-pip zsh curl inetutils-ping - sudo apt remove -y vim tmux sudo pip3 install requests - name: checkout repo @@ -21,6 +20,7 @@ jobs: run: | rev=`git rev-parse HEAD` pwd + export DFS_NO_COMPILE=1 ./install.sh git checkout $rev @@ -42,7 +42,6 @@ jobs: run: | brew update brew install git python3 zsh curl - sudo rm /usr/bin/vim sudo pip3 install requests - name: checkout repo @@ -52,6 +51,7 @@ jobs: run: | rev=`git rev-parse HEAD` pwd + export DFS_NO_COMPILE=1 ./install.sh git checkout $rev diff --git a/install.sh b/install.sh index 993c622..76a8ca0 100755 --- a/install.sh +++ b/install.sh @@ -93,7 +93,9 @@ install_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 fmt_note "initializing tmux plugins ..." - ~/.tmux/plugins/tpm/bin/install_plugins + if [[ -z "$DFS_NO_COMPILE" ]]; then + ~/.tmux/plugins/tpm/bin/install_plugins + fi else fmt_warning "pls install g++,cmake,make and then init tmux plugins by or ~/.tmux/plugins/tpm/bin/install_plugins" fi @@ -106,7 +108,9 @@ install_vim_vundle(){ fmt_note "installing vim vundle ..." git clone https://gitee.com/dictxiong/Vundle.vim "$VIM_VUNDLE" fmt_note "initializing vim plugins ..." - vim +PluginInstall +qall + if [[ -z "$DFS_NO_COMPLIE" ]]; then + vim +PluginInstall +qall + fi fi }