X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.shellrc;h=a68887656de63857c2555f706cf45bd7462ce040;hp=fd73f152065c9795cfab10fdfef5686b62d76f2d;hb=b05903c300ce217bc225fc2938e6d07290617d76;hpb=d992db58d6cb4f4a2bb2218e3299511ebc629b6b diff --git a/.shellrc b/.shellrc index fd73f15..a688876 100644 --- a/.shellrc +++ b/.shellrc @@ -15,6 +15,8 @@ esac # 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 @@ -58,10 +60,6 @@ case "$HOME" in esac -OPS1="$OPS1\\$" -PS1="$OPS1 " - - if test -n "$BASH_VERSION"; then [ "`type -t ls`" = alias ] && unalias ls [ "`type -t ll`" = alias ] && unalias ll @@ -338,7 +336,7 @@ include() { mc() { if test -n "$BASH_VERSION"; then MC_SAVE_OPS1="$OPS1" - OPS1="\u@\h " + OPS1="\u@\h \W \\$" fi if [ -n "$SLOWTERM" ]; then