summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2024-03-16 08:25:51 (EDT)
committer P. J. McDermott <pj@pehjota.net>2024-03-16 08:25:51 (EDT)
commitcbd83152c91dc10492a979e2640e4416d2b39849 (patch)
tree9677f3d5ff667402ef85a76e36911c08bb4906ce /.bashrc
parentc332dfb7dd61f4f6a4840dbbd1b8a1862db63073 (diff)
downloadbash-cbd83152c91dc10492a979e2640e4416d2b39849.zip
bash-cbd83152c91dc10492a979e2640e4416d2b39849.tar.gz
bash-cbd83152c91dc10492a979e2640e4416d2b39849.tar.bz2
.bashrc: Color chroot name in PS1
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index fbf4714..d53755a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -18,7 +18,7 @@ set +H
# Prompt
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
if [ -r /etc/debian_chroot ]; then
- PS1="($(cat /etc/debian_chroot))${PS1}"
+ PS1="(\[\033[01;35m\]$(cat /etc/debian_chroot)\[\033[00m\])${PS1}"
fi
# Terminal window title
case "${TERM}" in xterm*|rxvt*)