######################################################################
# added by Miniconda3 installer
-export PATH="/home/fleuret/conda/bin:$PATH"
+export PATH="${HOME}/conda/bin:$PATH"
[ ${TERM} == "dumb" ] || [[ ! -t 0 ]] && return
return 1
fi
- echo "Attemptin to rip from ${DVD_DEVICE}."
+ echo "Attempting to rip from ${DVD_DEVICE}."
mkdir -p ${HOME}/dvds
fi
}
+
+######################################################################
+# git prompt
+
+if which > /dev/null git
+then
+
+ parse_git_branch() {
+ git 2>/dev/null rev-parse --abbrev-ref HEAD | sed -e 's/^\(.*\)$/(\1) /'
+ }
+
+ export PS_GIT="${VT_GREEN_FG}\$(parse_git_branch)"
+fi
+
######################################################################
# The complex prompt policy
[[ "${IDENT}" ]] && IDENT="${IDENT}:"
+ # IDENT="${PS_GIT}${VT_BLACK_FG}${IDENT}"
+
if [[ ${USER} == "root" ]]
then
# If we are root, show that in red
fi
-PS1="${PSCUE}${PS1}"
+#PS1="${PSCUE}${PS1}"
######################################################################
# This implements a local history. If we are in a directory containing