]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl check-plugins: Set AXZSH_PLUGIN_CHECK=1 for the whole shell
authorAlexander Barton <alex@barton.de>
Fri, 17 Mar 2017 22:10:20 +0000 (23:10 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 17 Mar 2017 22:10:20 +0000 (23:10 +0100)
bin/axzshctl

index 8298743a5a13bce228e173dccc16f34fb30c7443..ed5b637c7cd6a611ebe146f72d7bbaee02766c0e 100755 (executable)
@@ -249,7 +249,7 @@ function CheckPlugins {
                new_plugin=""
                for script ($AXZSH/plugins/$plugin/$plugin.{zshrc,zprofile}); do
                        [[ -r "$script" ]] || continue
-                       zsh -i -c "AXZSH_PLUGIN_CHECK=1 source $script"; r=$?
+                       AXZSH_PLUGIN_CHECK=1 zsh -i -c "source $script"; r=$?
                        if [[ $r -eq 0 ]]; then
                                new_plugin=$plugin
                                break