]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/powerline-shell/powerline-shell.zshrc
buku: Don't set "--tacit" in "b" alias
[ax-zsh.git] / plugins / powerline-shell / powerline-shell.zshrc
index 36f6a6f66b03d170b5a591b6d0ec8f1ae484b4f8..b57c467e5b1a4df11637ef587f9dfc412939c9d0 100644 (file)
@@ -1,7 +1,7 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # powerline-shell.zshrc: "powerline-shell" integration.
 
-[[ "$TERM" = "linux" ]] && return
+axzsh_is_modern_terminal || return 91
 
 if [[ -z "$POWERLINE_SHELL" ]]; then
        for p (
@@ -14,10 +14,8 @@ if [[ -z "$POWERLINE_SHELL" ]]; then
        done
        unset p
 fi
-if [[ ! -r "$POWERLINE_SHELL" ]]; then
-       echo "Powerline shell extension not found/readable!"
-       return
-fi
+
+[[ -r "$POWERLINE_SHELL" ]] || return 1
 
 function powerline_precmd() {
        PS1="$(