You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
Hi Han,
if you add the below two lines on setE3Env.sh the prompt will show the EPICS version if it sourced. This is useful when you have multiple shell windows open to be sure that actually you are running in the correct environment.
Good idea! However, we cannot change the user shell prompt. I will add them into the different name shell. In case, people would like to use the changed prompt shell, one can use the upcoming one.
@rizzoa It turns out there is no generic way at this moment, I can apply it. Each people has their own prompt. For example, the way you propose is to override more rich functionalities (git, path, or more) of my own prompt. However, I will propose one later with the difference name.
Hi Han,
If I undersand your concern, I think that it could be done something similar to the following
IFS='-' read -ra base <<< "$EPICS_BASE"
PS1=(EPICS-${base[1]})$PS1
Then your prompt is not overridden , it has more just the info about the epics version.
Hi Han,
if you add the below two lines on setE3Env.sh the prompt will show the EPICS version if it sourced. This is useful when you have multiple shell windows open to be sure that actually you are running in the correct environment.
.................
IFS='-' read -ra base <<< "$EPICS_BASE"
PS1="[\d \t] $(tput setaf 4)\u@centos7VM:\w $ [$(tput sgr0)](EPICS-${base[1]})> "
The text was updated successfully, but these errors were encountered: