also; fixed indentation and added .zshrc as possible profile
@ -31,12 +31,12 @@ echo "Downloaded"
echo
# Detect profile file, .bash_profile has precedence over .profile
# Detect profile file if not specified as environment variable (eg: PROFILE=~/.myprofile).
if [ ! -z "$1" ]; then
if [ -z "$PROFILE" ]; then
PROFILE="$1"
else
if [ -f "$HOME/.bash_profile" ]; then
PROFILE="$HOME/.bash_profile"
elif [ -f "$HOME/.zshrc" ]; then
PROFILE="$HOME/.zshrc"
elif [ -f "$HOME/.profile" ]; then
PROFILE="$HOME/.profile"
fi
@ -28,10 +28,8 @@ fi
if [ ! "$PROFILE" ]; then