Provide bash file to custom PS1.
systemd-detect-virt is required to get virtual environment
- Get the file
.bash_customize_ps1on your host and source it in your bashrc file:
source $HOME/.bash_customize_ps1- Call the function
custom_ps1with corresponding colors
USER_COLOR=blue
MACHINE_COLOR=blue
WORKSPACE_COLOR=green
TIME_COLOR=yellow
SEPARATOR_COLOR=white
custom_ps1 $PRIMARY_COLOR $WORKSPACE_COLOR $TIME_COLOR $SEPARATOR_COLOR| display | Xterm Number | Name |
|---|---|---|
| 237 | black | |
| 1 | red | |
| 65 | green | |
| 142 | yellow | |
| 24 | blue | |
| 97 | magenta | |
| 110 | cyan | |
| 251 | white | |
| 212 | pink | |
| 209 | orange | |
| 137 | brown | |
| 246 | grey |

