mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-11-23 20:38:16 +08:00
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:
14
install.sh
14
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 <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(){
|
||||
|
||||
Reference in New Issue
Block a user