]> arthur.barton.de Git - ax-zsh.git/commitdiff
axzshctl: Show hint how to restart the shell when enabling AX-ZSH
authorAlexander Barton <alex@barton.de>
Tue, 28 Dec 2021 14:00:17 +0000 (15:00 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 28 Dec 2021 14:00:17 +0000 (15:00 +0100)
bin/axzshctl

index 34e22d2d02f8e039d703816110b806f4c342b253..2ff71fae6c622a7a84efecc4ff6ccae27eee4bae 100755 (executable)
@@ -104,6 +104,10 @@ function EnableAXZSH {
                ln -s "$AXZSH/ax.zsh" "$f" \
                        || ax_error "Failed to create symbolic link for \"$f\"!"
        done
+       if [[ -z "$AXZSH_FPATH" ]]; then
+               echo "AX-ZSH was enabled. Now you should restart your shell, for example like this:"
+               echo "$ exec -l \"\$SHELL\""
+       fi
 }
 
 function DisableAXZSH {