Detect lxc containers
This commit is contained in:
parent
fda37efc28
commit
ddae640f77
2 changed files with 10 additions and 6 deletions
2
.bashrc
2
.bashrc
|
|
@ -50,7 +50,7 @@ fi
|
|||
|
||||
# Show different prompts for vm users or "normal" users
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
if [ $VM = true ]; then
|
||||
if [ "$CONTAINER_OR_VM" = true ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1="\[\033[1;33m\]\u\[\033[1;34m\]@\[\033[1;32m\]\h \[\033[1;34m\]\w\\[\033[0;37m\]$ "
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue