From a1a1f4e47f35c63b3f4098222820c1140748eb48 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 28 Jul 2023 00:19:09 +0800 Subject: improve os.shell --- xmake/scripts/profile-unix.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmake/scripts/profile-unix.sh b/xmake/scripts/profile-unix.sh index 4741dfdce..1695b2331 100644 --- a/xmake/scripts/profile-unix.sh +++ b/xmake/scripts/profile-unix.sh @@ -20,8 +20,10 @@ # register completions if [[ -n "$ZSH_VERSION" ]]; then + export XMAKE_SHELL=zsh . "$XMAKE_PROGRAM_DIR/scripts/completions/register-completions.zsh" elif [[ -n "$BASH_VERSION" ]]; then + export XMAKE_SHELL=bash . "$XMAKE_PROGRAM_DIR/scripts/completions/register-completions.bash" fi -- cgit v1.3.1