From 98f21908584df4ff5ef4f42beadc3cae1a0d5f63 Mon Sep 17 00:00:00 2001 From: vic1707 Date: Mon, 3 Jul 2023 19:40:27 +0200 Subject: change `$SHELL` with `$_VERSION` --- xmake/scripts/profile-unix.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/scripts/profile-unix.sh b/xmake/scripts/profile-unix.sh index c3e62a734..4741dfdce 100644 --- a/xmake/scripts/profile-unix.sh +++ b/xmake/scripts/profile-unix.sh @@ -19,9 +19,9 @@ # # register completions -if [[ "$SHELL" = */zsh ]]; then +if [[ -n "$ZSH_VERSION" ]]; then . "$XMAKE_PROGRAM_DIR/scripts/completions/register-completions.zsh" -elif [[ "$SHELL" = */bash ]]; then +elif [[ -n "$BASH_VERSION" ]]; then . "$XMAKE_PROGRAM_DIR/scripts/completions/register-completions.bash" fi -- cgit v1.3.1