2023-12-19 15:56:06 +00:00
|
|
|
command -v git &>/dev/null
|
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
GIT_FUNCTIONS=true
|
|
|
|
fi
|
2021-01-11 14:25:38 +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})"
|
|
|
|
# another version I really like
|
|
|
|
PS1="${PURPLE}\# ${LIGHTBLUE}{${LIGHTGREEN}\u${BROWN}@${LIGHTGREEN}\$(hostname --fqdn)${LIGHTBLUE}} ${LIGHTPURPLE}[${CYAN}\w${LIGHTPURPLE}] "
|
|
|
|
|
2023-12-19 15:56:06 +00:00
|
|
|
if [ $GIT_FUNCTIONS = "true" ]; then
|
2021-01-11 14:25:38 +00:00
|
|
|
#PS1="$PS1${LIGHTPURPLE}[${LIGHTCYAN}$(__git_prompt)${LIGHTPURPLE}]"
|
|
|
|
PS1="$PS1${LIGHTBROWN}(${LIGHTCYAN}\$(__git_prompt)${LIGHTBROWN}) "
|
|
|
|
fi
|
|
|
|
|
|
|
|
#PS1="$PS1${RED}#${FORMAT_RESET}"
|
2022-04-02 14:00:37 +00:00
|
|
|
PS1="$PS1${RED}\$${FORMAT_RESET}"
|