aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2015-11-21 23:29:20 +0300
committerDominik Ritter <dritter03@googlemail.com>2015-11-21 23:29:20 +0300
commit727b3e501b9f534871ed3ec0d5d6dbca1344a5c5 (patch)
tree860c306016964b48e9a6b5b9f530139468b2c38e /powerlevel9k.zsh-theme
parenta0323b7e8075a8b59d671a48484117e5152bebf9 (diff)
Now the script just returns instead of exiting with an errorcode. The reason for this is that users can't log in anymore if the specified a wrong path in POWERLEVEL9K_INSTALLATION_PATH and the script `exit`s. With `return` not the whole shell is terminated, so users get an ugly prompt, but are still able to modify .zshrc.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 29f9804c..f0cbd9f2 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -41,7 +41,7 @@ elif [[ -f $0 ]]; then
filename="$0"
else
print -P "%F{red}Script location could not be found!%f"
- exit 1
+ return 1
fi
script_location="$(dirname $filename)"