Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94d8557

Browse files
committed
feat: add log
1 parent 446ed0f commit 94d8557

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
. "$x_cmd_root/X";
149149
elif [ "${-#*i}" != "$-" ]; then
150150
___x_cmd_get_log "x-cmd detected in current shell env. Opening a new shell to avoid collision.";
151+
___x_cmd_get_log "If the new shell environment hasn’t loaded x-cmd, run: \`. ~/.x-cmd.root/X\`";
151152
___X_CMD_ROOT_MOD= ___X_CMD_ROOT_CODE= ___X_CMD_VERSION="$x_cmd_version" "${SHELL:-/bin/sh}";
152153
fi;
153154
};

pre-get

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ ___x_cmd_get_start(){
148148
. "$x_cmd_root/X";
149149
elif [ "${-#*i}" != "$-" ]; then
150150
___x_cmd_get_log "x-cmd detected in current shell env. Opening a new shell to avoid collision.";
151+
___x_cmd_get_log "If the new shell environment hasn’t loaded x-cmd, run: \`. ~/.x-cmd.root/X\`";
151152
___X_CMD_ROOT_MOD= ___X_CMD_ROOT_CODE= ___X_CMD_VERSION="$x_cmd_version" "${SHELL:-/bin/sh}";
152153
fi;
153154
};

xx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ ___x_cmd_get_setupscript(){
5656
. "$___X_CMD_ROOT/v/$___X_CMD_VERSION/X";
5757
elif [ "${-#*i}" != "$-" ]; then
5858
printf "%s\n" "- I|x: x-cmd detected in current shell env. Opening a new shell to avoid collision." >&2;
59+
printf "%s\n" "- I|x: If the new shell environment hasn’t loaded x-cmd, run: \`. ~/.x-cmd.root/X\`" >&2;
5960
___X_CMD_ROOT_CODE= ___X_CMD_ROOT="$___X_CMD_ROOT" ___X_CMD_VERSION="$___X_CMD_VERSION" "${SHELL:-/bin/sh}";
6061
fi;
6162
};

0 commit comments

Comments
 (0)