diff options
author | Dennis Eriksen <d@ennis.no> | 2019-03-08 10:47:16 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2019-03-08 10:47:16 +0100 |
commit | a42c6db3e37a81b898bb92cdbf0be69a945c7591 (patch) | |
tree | 3a5f3807a7c427ae295291461a92acd05ed54c21 | |
parent | some comments (diff) | |
download | idgatt-a42c6db3e37a81b898bb92cdbf0be69a945c7591.tar.gz |
fixing bug where shell return 1 on startup
-rw-r--r-- | zsh/.zsh/.zshrc | 9 |
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 |