ci: better structure (#13)

* struct ci; staged

* seems good

* ci try macos

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug

* debug
This commit is contained in:
2022-08-28 20:51:44 +08:00
committed by GitHub
parent fa737d482f
commit 18dfca5f39
4 changed files with 74 additions and 40 deletions

View File

@@ -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 <prefix + I> 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_COMPILE" ]]; then
vim +PluginInstall +qall
fi
fi
}
@@ -114,8 +118,10 @@ install_update(){
fmt_note "installing update.sh ..."
cp "${DOTFILES}/.update.sh" "${DOTFILES}/update.sh"
chmod +x "${DOTFILES}/update.sh"
fmt_note "running update.sh ..."
${DOTFILES}/update.sh
if [[ -z "$DFS_NO_UPDATE" ]]; then
fmt_note "running update.sh ..."
${DOTFILES}/update.sh
fi
}
uninstall_update(){