Fixed a bug where the new links were inside the conditional for backing up an existing .zshrc

This commit is contained in:
ShadowEO
2020-09-08 03:13:26 -04:00
parent b2381b2e9a
commit f3c1aba150

View File

@@ -41,10 +41,11 @@ pkg.install() {
# We found one, let's back it up and then move it to the shell configuration folder!
cp $HOME/.zshrc $HOME/.zshrc.beforeInstall
mv $HOME/.zshrc $HOME/.shell/login.d/01originalRC.zsh
fs.link_rfile $PKG_PATH/01shell-framework.zsh $HOME/.shell/login.d/01shell-framework.zsh
fs.link_rfule $PKG_PATH/03shell-apply.zsh $HOME/.shell/login.d/03shell-apply.zsh
echo "Your previous .zshrc has been moved to $HOME/.shell/login.d/01originalRC.zsh and will continue to be executed on startup."
fi
fs.link_rfile $PKG_PATH/01shell-framework.zsh $HOME/.shell/login.d/01shell-framework.zsh
fs.link_rfule $PKG_PATH/03shell-apply.zsh $HOME/.shell/login.d/03shell-apply.zsh
}
pkg.uninstall() {