]> arthur.barton.de Git - ax-zsh.git/commitdiff
powerline-shell: Fail silently
authorAlexander Barton <alex@barton.de>
Wed, 11 May 2016 08:55:30 +0000 (10:55 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 11 May 2016 08:55:30 +0000 (10:55 +0200)
plugins/powerline-shell/powerline-shell.zshrc

index 36f6a6f66b03d170b5a591b6d0ec8f1ae484b4f8..a5c9d8fd9da27eb339c3aef9436785a5e999d638 100644 (file)
@@ -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
 
 function powerline_precmd() {
        PS1="$(