Skip to content
Snippets Groups Projects
Commit 9f7367f4 authored by Juntong Liu's avatar Juntong Liu
Browse files

Remove the reminding print-out.

parent 082cce94
No related branches found
No related tags found
1 merge request!40E3-341: Improve the shell prompt to display e3 info
......@@ -346,15 +346,8 @@ source "${SRC_PATH}"/iocsh_complete.bash
print_env "$1"
echo
echo "##############################################"
echo "You are now using:"
echo "$E3_REQUIRE_LOCATION" | awk -F '=' '{print $1}'
echo "##############################################"
echo
BASE_version=$(echo "${EPICS_BASE##*/}" | awk -F '-' '{print $2}')
E3_ENV_INFO="{B:$BASE_version R:$E3_REQUIRE_VERSION}/"
E3_ENV_INFO="{B:$BASE_version R:$E3_REQUIRE_VERSION}"
NEW_E3_PS="${E3_ENV_INFO}\[\033[33m\]\u\[\033[m\]@\[\033[33;1m\]\w\[\033[m\]\$ "
if [ -z "$E3_ENV_ON" ]; then
......@@ -366,6 +359,6 @@ if [ -z "$E3_ENV_ON" ]; then
export PS1="${E3_ENV_INFO}${PS1}"
fi
else
PS_TMP=${PS1#*/}
PS_TMP=${PS1#*\}}
export PS1="${E3_ENV_INFO}${PS_TMP}"
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment