diff options
author | P. 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) |
commit | c332dfb7dd61f4f6a4840dbbd1b8a1862db63073 (patch) | |
tree | 61a8d18cda9730a62946542bbab3f49d0e41839f | |
parent | d401597c48129c3981a19fbe985e6cb3b01b40bb (diff) | |
download | bash-c332dfb7dd61f4f6a4840dbbd1b8a1862db63073.zip bash-c332dfb7dd61f4f6a4840dbbd1b8a1862db63073.tar.gz bash-c332dfb7dd61f4f6a4840dbbd1b8a1862db63073.tar.bz2 |
.bashrc: Add /etc/debian_chroot to PS1
-rw-r--r-- | .bashrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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}" |