summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2024-03-16 08:30:03 (EDT)
committer P. J. McDermott <pj@pehjota.net>2024-03-16 08:30:03 (EDT)
commit3beece8a11f772c4143045d79c0783e00861d90f (patch)
treeeab6f7e007b85b415bfcac6e160064e4f652e693
parent00d86529d44b1b9c7992a99cde4154d69254735c (diff)
downloadbash-master.zip
bash-master.tar.gz
bash-master.tar.bz2
.bashrc: Move chroot name in PS1HEADmaster
-rw-r--r--.bashrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index f378a33..0305d28 100644
--- a/.bashrc
+++ b/.bashrc
@@ -16,10 +16,11 @@ shopt -s histappend
set +H
# Prompt
-PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
+PS1='\[\033[01;32m\]\u@\h\[\033[00m\]'
if [ -r /etc/debian_chroot ]; then
- PS1="(\[\033[01;35m\]$(cat /etc/debian_chroot)\[\033[00m\])${PS1}"
+ PS1="${PS1}(\[\033[01;35m\]$(cat /etc/debian_chroot)\[\033[00m\])"
fi
+PS1="${PS1}"':\[\033[01;34m\]\w\[\033[00m\]\$ '
# Terminal window title
case "${TERM}" in xterm*|rxvt*)
PS1="\[\e]0;\u@\h:\w\a\]${PS1}"