1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 13:58:00 +00:00

Checking if .zshrc is a file or a symlink.

This commit is contained in:
Robby Russell 2009-08-30 18:44:14 -07:00
parent 43fd24e81f
commit 3ec52a1353

View File

@ -8,7 +8,7 @@ else
fi fi
echo "Looking for an existing zsh config..." echo "Looking for an existing zsh config..."
if [ -f ~/.zshrc ] if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]
then then
echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh"; echo "Found ~/.zshrc. Backing up to ~/.zshrc.pre-oh-my-zsh";
cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh; cp ~/.zshrc ~/.zshrc.pre-oh-my-zsh;
@ -22,3 +22,4 @@ echo "Time to change your default shell to zsh!"
chsh -s /bin/zsh chsh -s /bin/zsh
echo "Hooray! Oh My Zsh has been installed." echo "Hooray! Oh My Zsh has been installed."
/bin/zsh