Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env bash
SCM_THEME_PROMPT_PREFIX=" ${yellow}"
SCM_THEME_PROMPT_SUFFIX="${reset_color}"
VIRTUALENV_THEME_PROMPT_PREFIX=" ${cyan}"
VIRTUALENV_THEME_PROMPT_SUFFIX="${reset_color}"
bold="\[\e[1m\]"
if [ ${UID} -eq 0 ]; then
user_host="${bold_red}\u${normal}${reset_color}"
else
user_host="${bold_green}\u${normal}${reset_color}"
fi
function prompt_command() {
local current_dir=" ${bold_blue}\w${normal}${reset_color}"
PS1="┌━ ${user_host} in${current_dir}$(virtualenv_prompt)$(scm_prompt_info)\n└> "
}
safe_append_prompt_command prompt_command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment