Commit 3ec52a13 authored by Robby Russell's avatar Robby Russell
Browse files

Checking if .zshrc is a file or a symlink.

parent 43fd24e8
...@@ -8,7 +8,7 @@ else ...@@ -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!" ...@@ -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
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment