aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2019-03-08 10:47:16 +0100
committerDennis Eriksen <d@ennis.no>2019-03-08 10:47:16 +0100
commita42c6db3e37a81b898bb92cdbf0be69a945c7591 (patch)
tree3a5f3807a7c427ae295291461a92acd05ed54c21
parentsome comments (diff)
downloadidgatt-a42c6db3e37a81b898bb92cdbf0be69a945c7591.tar.gz
fixing bug where shell return 1 on startup
-rw-r--r--zsh/.zsh/.zshrc9
1 files changed, 5 insertions, 4 deletions
diff --git a/zsh/.zsh/.zshrc b/zsh/.zsh/.zshrc
index 43ca707..976a017 100644
--- a/zsh/.zsh/.zshrc
+++ b/zsh/.zsh/.zshrc
@@ -489,9 +489,10 @@ include "${ZDOTDIR:-${HOME}}/.zshrc.local"
# Also, we do zsh-syntax-highlighting here, because it needs to be at the end.
# First we check for the package in idgatt, then in /usr/share, and lastly in /usr/local/share
-include "${ZDOTDIR:-${HOME}}/lib/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" || \
- include "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" || \
- include "/usr/share/local/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
+if include "${ZDOTDIR:-${HOME}}/lib/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"; then return 0
+elif include "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"; then return 0
+elif include "/usr/share/local/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"; then return 0
+fi
-## END OF FILE #################################################################
+# END OF FILE #################################################################
# vim:syntax=zsh filetype=zsh