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

Change to use (7.0.5-3.4.1) like format

parent 9f7367f4
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@
if [[ "$0" == "${BASH_SOURCE[0]}" ]]; then
echo
echo "##############################################################################################"
echo "##################################################"
echo "$0 is NOT properly sourced !"
echo "##############################################################################################"
echo "##################################################"
echo
exit 1
fi
......@@ -347,7 +347,7 @@ source "${SRC_PATH}"/iocsh_complete.bash
print_env "$1"
BASE_version=$(echo "${EPICS_BASE##*/}" | awk -F '-' '{print $2}')
E3_ENV_INFO="{B:$BASE_version R:$E3_REQUIRE_VERSION}"
E3_ENV_INFO="(${BASE_version}-${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
......@@ -359,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