2023-12-19 15:56:06 +00:00
|
|
|
command -v git &>/dev/null
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
GIT_FUNCTIONS=true
|
|
|
|
fi
|
2021-06-03 15:39:45 +00:00
|
|
|
|
|
|
|
# Spaced
|
|
|
|
#PS1="${LIGHTBLUE}[ ${LIGHTRED}\u ${LIGHTBLUE}@ ${LIGHTBROWN}$(hostname --fqdn) ${LIGHTBLUE}] ${LIGHTPURPLE}( ${GREEN}\w ${LIGHTPURPLE}) "
|
|
|
|
# Not spaced
|
|
|
|
PS1="${LIGHTBLUE}[${LIGHTRED}\u${LIGHTBLUE}@${LIGHTBROWN}$(hostname --fqdn)${LIGHTBLUE}]${LIGHTPURPLE}(${GREEN}\w${LIGHTPURPLE})"
|
|
|
|
|
2023-12-19 15:56:06 +00:00
|
|
|
if [ $GIT_FUNCTIONS = "true" ]; then
|
2021-06-03 15:39:45 +00:00
|
|
|
#PS1="$PS1${LIGHTPURPLE}[${LIGHTCYAN}$(__git_prompt)${LIGHTPURPLE}]"
|
|
|
|
PS1="$PS1${LIGHTBROWN}(${LIGHTCYAN}\$(__git_prompt)${LIGHTBROWN}) "
|
|
|
|
fi
|
|
|
|
|
|
|
|
PS1="$PS1${RED}#${FORMAT_RESET}"
|