]> arthur.barton.de Git - ax-zsh.git/blobdiff - plugins/powerline-shell/powerline-shell.zshrc
New "colormake" plugin
[ax-zsh.git] / plugins / powerline-shell / powerline-shell.zshrc
index 36f6a6f66b03d170b5a591b6d0ec8f1ae484b4f8..7a4873f77589c3a91dfb8d0d984a5f6cf70185af 100644 (file)
@@ -1,7 +1,7 @@
 # AX-ZSH: Alex' Modular ZSH Configuration
 # powerline-shell.zshrc: "powerline-shell" integration.
 
-[[ "$TERM" = "linux" ]] && return
+[[ "$TERM" = "linux" ]] && return 911
 
 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="$(