summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2024-03-16 08:08:04 (EDT)
committer P. J. McDermott <pj@pehjota.net>2024-03-16 08:08:04 (EDT)
commitc332dfb7dd61f4f6a4840dbbd1b8a1862db63073 (patch)
tree61a8d18cda9730a62946542bbab3f49d0e41839f
parentd401597c48129c3981a19fbe985e6cb3b01b40bb (diff)
downloadbash-c332dfb7dd61f4f6a4840dbbd1b8a1862db63073.zip
bash-c332dfb7dd61f4f6a4840dbbd1b8a1862db63073.tar.gz
bash-c332dfb7dd61f4f6a4840dbbd1b8a1862db63073.tar.bz2
.bashrc: Add /etc/debian_chroot to PS1
-rw-r--r--.bashrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 4446325..fbf4714 100644
--- a/.bashrc
+++ b/.bashrc
@@ -17,6 +17,9 @@ 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}"
+fi
# Terminal window title
case "${TERM}" in xterm*|rxvt*)
PS1="\[\e]0;\u@\h:\w\a\]${PS1}"