fi
if test -n "$BASH_VERSION"; then
- . "$ENV"
-
if [ -r "$HOME"/admin/prog/bash_prompt ]; then
. "$HOME"/admin/prog/bash_prompt
set_prompts
OPS1="${debian_chroot:+($debian_chroot)}\u@\h:\W \\$"
fi
+ . "$ENV"
+
else
OPS1="${debian_chroot:+($debian_chroot)}`/usr/bin/whoami`@`/bin/hostname -s` >"
fi
- export OPS1
-
### biff controls new mail notification
#biff n
### mesg controls messages (write/talk) from other users
;;
esac
-PS1="$OPS1$SHLVL "
-
if test -n "$BASH_VERSION"; then
[ "`type -t ls`" = alias ] && unalias ls
[ "`type -t ll`" = alias ] && unalias ll
. "$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"
j() { jobs; }
fi
+PS1="$OPS1"
# clear screen and history, logout
chlo() { clear; cd; >$HISTFILE; unset HISTFILE; history -c; logout || exit; }
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 \\$"
fi