]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc
Correctly test XDG_CACHE_HOME for writability for "stamp files"
[ax-zsh.git] / plugins / zsh-syntax-highlighting / zsh-syntax-highlighting.zshrc
index 6913cb62c3f228809ae04aec3e35a63e0850f7c0..6bf09533a80c266ef17c9d4ad9aa231aca683c11 100644 (file)
@@ -1,13 +1,19 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # zsh-syntax-highlighting.zshrc: Initialize "ZSH Syntax Highlighting"
 
+axzsh_is_modern_terminal || return 91
+
 for script (
+       "/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
        "/usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
 ); do
        if [[ -r "$script" ]]; then
                [[ -n "$ZSH_HIGHLIGHT_HIGHLIGHTERS" ]] \
                        && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
                source "$script"
-               return
+               unset script
+               return 0
        fi
 done
+unset script
+return 1