X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=d5d7ca3fa267aa03ce67e6690df5549a3c2225d2;hb=cdb7a7633b38a549767d05e8715324cbec694056;hp=62da7b79080928d80ddefddea6636d4f8b243fb4;hpb=5707e1f6cc2429fd5ff77cc8a05dd66981bcb29b;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 62da7b7..d5d7ca3 100644 --- a/.shellrc +++ b/.shellrc @@ -47,15 +47,13 @@ fi if test -n "$BASH_VERSION"; then if [ -r "$HOME"/admin/prog/bash_prompt ]; then . "$HOME"/admin/prog/bash_prompt - set_prompts - unset set_prompts + set_prompt + unset set_prompt else - OPS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \$SHLVL\\$ " + PS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \$SHLVL\\$ " fi fi -PS1="$OPS1" - # clear screen and history, logout chlo() { clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit; } @@ -75,6 +73,7 @@ include() { } +[ "`type -t mc`" = alias ] && unalias mc mc() { if [ -n "$SLOWTERM" ]; then MC_SLOW="--slow"