Do not repeat `$$$$`, instead display `$4`.
;;
esac
- OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\h \W "
+ OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\h \W \\$"
. "$ENV"
else
# Stop if non-interactive shell
[ -z "$PS1" ] && return
+PS1="$OPS1$SHLVL "
+
if test -n "$BASH_VERSION"; then
# append to the history file, don't overwrite it
shopt -s histappend
esac
-# Remove trainling \$s
-OPS1="`echo $OPS1 | sed 's/[ \\$]\+$//'`"
-# Add a trainling space
-OPS1="$OPS1 "
-# Re-add trainling \$
-for ((i=0; i<$SHLVL; i++)); do OPS1="$OPS1\\$"; done
-
-PS1="$OPS1 "
-
-
if test -n "$BASH_VERSION"; then
[ "`type -t ls`" = alias ] && unalias ls
[ "`type -t ll`" = alias ] && unalias ll
mc() {
if test -n "$BASH_VERSION"; then
MC_SAVE_OPS1="$OPS1"
- OPS1="\u@\h \W "
+ OPS1="\u@\h \W \\$"
fi
if [ -n "$SLOWTERM" ]; then