X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.shellrc;h=6973d7ab0a04a70423b66f9290b2eb96a8a18ccb;hp=56051caf9037a6da929c2c19f94619e117e0aeee;hb=c954ff3610e4bfb71e0c5bc2fb3ebca5938fdc44;hpb=bbaf1218569bfccc59bece1d5735f91efa6a2e8c diff --git a/.shellrc b/.shellrc index 56051ca..6973d7a 100644 --- a/.shellrc +++ b/.shellrc @@ -57,6 +57,7 @@ case "$HOME" in ;; esac +PS1="$OPS1$SHLVL " if test -n "$BASH_VERSION"; then [ "`type -t ls`" = alias ] && unalias ls @@ -342,9 +343,9 @@ mc() { if test -n "$BASH_VERSION"; then MC_SAVE_OPS1="$OPS1" if [ "`type -t short_curdir`" = function ]; then - OPS1="\u@\${HOSTNAME::5} \`short_curdir\` \\$" + OPS1="\u@\${HOSTNAME::5}:\`short_curdir\` \\$" else - OPS1="\u@\h \W \\$" + OPS1="\u@\h:\W \\$" fi fi