Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
e3-require
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESS EPICS Environment
wrappers
e3-require
Commits
36130da0
Commit
36130da0
authored
3 years ago
by
Juntong Liu
Browse files
Options
Downloads
Patches
Plain Diff
Add
parent
f9623e0b
No related branches found
No related tags found
1 merge request
!40
E3-341: Improve the shell prompt to display e3 info
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
require-ess/tools/setE3Env.bash
+20
-0
20 additions, 0 deletions
require-ess/tools/setE3Env.bash
with
20 additions
and
0 deletions
require-ess/tools/setE3Env.bash
+
20
−
0
View file @
36130da0
...
...
@@ -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
=
"
\[\0
33[33m
\]\u\[\0
33[m
\]
@ Base:
$BASE_version
Req:
$E3_REQUIRE_VERSION
\[\0
33[33;1m
\]
\w\[\0
33[m
\]\$
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment