]> arthur.barton.de Git - ax-zsh.git/commitdiff
Fix return codes of "zsh-navigation-tools" & "zsh-syntax-highlighting"
authorAlexander Barton <alex@barton.de>
Wed, 11 May 2016 09:51:46 +0000 (11:51 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 11 May 2016 09:51:54 +0000 (11:51 +0200)
plugins/zsh-navigation-tools/zsh-navigation-tools.zprofile
plugins/zsh-navigation-tools/zsh-navigation-tools.zshrc
plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zshrc

index 144ecf8729636e145a1e9d9bbe5dc9ce31c2fef6..210eb8b2c6f4213b87e4f5ccfff703f22a8304fc 100644 (file)
@@ -8,7 +8,8 @@ for dir (
        if [[ -d "$dir" ]]; then
                fpath+=($dir)
                unset dir
-               return
+               return 0
        fi
 done
 unset dir
+return 1
index b481ec4e9f48958fa5f7b85f82c7fbe335ae1b23..31d2f87827439f46c0419bde25c6fc0d3cfdf4bb 100644 (file)
@@ -8,7 +8,8 @@ for script (
        if [[ -r "$script" ]]; then
                source "$script"
                unset script
-               return
+               return 0
        fi
 done
 unset script
+return 1
index c663b9e36febd55dc6d306868fcd98df83a0391f..b1902abd62ab6dd10f784dde21b1f0b0e6e00bb0 100644 (file)
@@ -10,7 +10,8 @@ for script (
                        && ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
                source "$script"
                unset script
-               return
+               return 0
        fi
 done
 unset script
+return 1