X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=bc164f1a305a08561600ff07a98d2340e8a79da8;hb=0addb50cbc67c7f01d0c34cd77eef7f135ff9c68;hp=56051caf9037a6da929c2c19f94619e117e0aeee;hpb=bbaf1218569bfccc59bece1d5735f91efa6a2e8c;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 56051ca..bc164f1 100644 --- a/.shellrc +++ b/.shellrc @@ -57,7 +57,6 @@ case "$HOME" in ;; esac - if test -n "$BASH_VERSION"; then [ "`type -t ls`" = alias ] && unalias ls [ "`type -t ll`" = alias ] && unalias ll @@ -155,8 +154,6 @@ if test -n "$BASH_VERSION"; then . "$HOME"/admin/prog/bash_prompt fi - PS1="\`cgmem_which_prompt\`$OPS1$SHLVL " - #if type -p pip >/dev/null 2>&1; then # eval "`pip completion --bash`" # rm -rf /tmp/pip_build_"$USER" @@ -183,6 +180,7 @@ elif test -n "$KSH_VERSION" -o -n "$FCEDIT"; then j() { jobs; } fi +PS1="$OPS1" # clear screen and history, logout chlo() { clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit; } @@ -342,9 +340,10 @@ 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="\`cgmem_which_prompt\`\u@\${HOSTNAME::5}:\`short_curdir\` " + OPS1+="\$(prompt_git)\\$\$SHLVL " else - OPS1="\u@\h \W \\$" + OPS1="\u@\h:\W \\$" fi fi