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

Add

parent f9623e0b
No related branches found
No related tags found
1 merge request!40E3-341: Improve the shell prompt to display e3 info
......@@ -24,6 +24,15 @@
# version : 0.8.1
#
#
if [[ "$0" == "${BASH_SOURCE[0]}" ]]
then
echo
echo "##############################################################################################"
echo "$0 is NOT properly sourced !"
echo "##############################################################################################"
echo
exit 1
fi
# the following function drop_from_path was copied from
# the ROOT build system in ${ROOTSYS}/bin/, and modified
......@@ -336,3 +345,14 @@ export LD_LIBRARY_PATH
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 $3}' | awk -F '-' '{print $2}')
export PS1="\[\033[33m\]\u\[\033[m\] @ Base:$BASE_version Req:$E3_REQUIRE_VERSION \[\033[33;1m\] \w\[\033[m\]\$ "
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