Skip to content
Snippets Groups Projects
Commit ea4f4c63 authored by Sven Mäder's avatar Sven Mäder :speech_balloon:
Browse files

Remove profile ataraxia

parent 88484ce0
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
source_if_exists "${ENVRCD_PATH}/profile/_assets/functions/truncate_pwd"
source_if_exists "${ENVRCD_PATH}/profile/_assets/functions/git_status"
function envrcd_prompt_ataraxia {
# Truncate the directory path if it exceeds a certain length. arguments: spacefree pwdminlen
envrcd_function_truncate_pwd 80 25
# display git branch and dirty status. arguments: clean, dirty, delimiter
envrcd_function_git_status "✓" "±" " "
# Define colors
local WHITE="\[\e[1;37m\]"
local GREEN="\[\e[0;32m\]"
local CYAN="\[\e[0;36m\]"
local GRAY="\[\e[0;37m\]"
local BLUE="\[\e[0;34m\]"
local MAGENTA="\[\e[0;35m\]"
local RED="\[\e[0;31m\]"
local YELLOW="\[\e[0;33m\]"
# Check for python virtualenv
local VENV="${VIRTUAL_ENV##*/}"
VENV="${VENV:+(${VENV})}"
# Define root prompt
export SUDO_PS1="${RED}\u@\h:${MAGENTA}\w/ ${GRAY}"
if [ -z "${ENVRCD_UID_NUM}" ]; then
export PS1="${RED}\u@\h:${MAGENTA}${TRUNCPWD}/${YELLOW}${GITSTAT}${VENV} ${GRAY}"
else
export PS1="${GREEN}\h:${MAGENTA}${TRUNCPWD}/${YELLOW}${GITSTAT}${VENV} ${GRAY}"
fi
}
PROMPT_COMMAND=envrcd_prompt_ataraxia
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment