diff options
| -rw-r--r-- | xmake/scripts/profile-unix.sh | 4 |
1 files 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 |
