We frequently sg to switch to a "shared" effective group. I want a visible reminder that we are not using our default group. Was thinking of having the bash prompt change color or display the effective group.
Any ideas how I should do this?
|
We frequently Any ideas how I should do this?
| |||
|
feedback
|
|
Add | |||||||||
feedback
|
|
Blatantly copying embobo's answer, you need to set up your $PROMPT_COMMAND bash variable, such as : fran@orion ~ # export PROMPT_COMMAND='export PS1="[\u@\h $(id -gn) \W]\$ "' fran@orion (20111209231004) ~ # fran@orion (20111209231005) ~ # fran@orion (20111209231006) ~ # HTH | ||||
feedback
|