From c332dfb7dd61f4f6a4840dbbd1b8a1862db63073 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 16 Mar 2024 08:08:04 -0400 Subject: .bashrc: Add /etc/debian_chroot to PS1 --- (limited to '.bashrc') 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}" -- cgit v0.9.1