diff --git a/configure_priv.sh b/configure_priv.sh index 4c08392..c8006ac 100755 --- a/configure_priv.sh +++ b/configure_priv.sh @@ -161,7 +161,9 @@ configure_zsh() { if confirm_action "要配置 zsh 吗?" "Y"; then pkg_install zsh - rm ~/.oh-my-zsh -r + if [ -d ~/.oh-my-zsh ]; then + rm -r ~/.oh-my-zsh + fi git_clone ohmyzsh/ohmyzsh ~/.oh-my-zsh RUNZSH=no ZSH=~/.oh-my-zsh $scriptdir/files/install-ohmyzsh.sh @@ -217,7 +219,9 @@ configure_tmux() { if confirm_action "要配置 tmux 吗?" "Y"; then pkg_install tmux || return $? - rm ~/.tmux -r + if [ -d ~/.tmux ]; then + rm -r ~/.tmux + fi git_clone tmux-plugins/tpm ~/.tmux/plugins/tpm --norecursive git_clone tmux-plugins/tmux-sensible ~/.tmux/plugins/tmux-sensible git_clone tmux-plugins/tmux-yank ~/.tmux/plugins/tmux-yank