From ac16778c7dc1f1bf1da4ea8afc7407a9b1b191b3 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 28 Dec 2021 15:00:17 +0100 Subject: [PATCH] axzshctl: Show hint how to restart the shell when enabling AX-ZSH --- bin/axzshctl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/axzshctl b/bin/axzshctl index 34e22d2..2ff71fa 100755 --- a/bin/axzshctl +++ b/bin/axzshctl @@ -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 { -- 2.39.2