;;
esac
- if [ -r "$HOME"/admin/prog/short_curdir ]; then
- . "$HOME"/admin/prog/short_curdir
+ if [ -r "$HOME"/admin/prog/bash_prompt ]; then
+ . "$HOME"/admin/prog/bash_prompt
OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\${HOSTNAME::5} \`short_curdir\` \\$"
else
OPS1=${OPS1}"${debian_chroot:+($debian_chroot)}\u@\h \W \\$"
# 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
complete -W "`echo $BROWSER | sed 's/:/ /g'`" start-browser
if [ "`type -t short_curdir`" != function -a \
- -r "$HOME"/admin/prog/short_curdir ]; then
- . "$HOME"/admin/prog/short_curdir
+ -r "$HOME"/admin/prog/bash_prompt ]; 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"