File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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};
Original file line number Diff line number Diff 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};
Original file line number Diff line number Diff 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};
You can’t perform that action at this time.
0 commit comments