Clean bira

pull/1790/head
BarbUk 2021-01-16 09:12:42 +01:00
parent cfb9a22e70
commit 8691894175
No known key found for this signature in database
GPG Key ID: DB301C759539E9FE
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash # shellcheck shell=bash
SCM_THEME_PROMPT_PREFIX=" ${yellow}" SCM_THEME_PROMPT_PREFIX=" ${yellow}"
SCM_THEME_PROMPT_SUFFIX="${reset_color}" SCM_THEME_PROMPT_SUFFIX="${reset_color}"
@ -9,14 +9,14 @@ VIRTUALENV_THEME_PROMPT_SUFFIX="${reset_color}"
bold="\[\e[1m\]" bold="\[\e[1m\]"
if [ ${UID} -eq 0 ]; then if [ ${UID} -eq 0 ]; then
user_host="${bold_red}\u@\h${normal}${reset_color}" user_host="${bold_red}\u@\h${normal}${reset_color}"
else else
user_host="${bold_green}\u@\h${normal}${reset_color}" user_host="${bold_green}\u@\h${normal}${reset_color}"
fi fi
function prompt_command() { function prompt_command() {
local current_dir=" ${bold_blue}\w${normal}${reset_color}" local current_dir=" ${bold_blue}\w${normal}${reset_color}"
PS1="╭─${user_host}${current_dir}$(virtualenv_prompt)$(scm_prompt_info)\n╰─${bold}\\$ ${normal}" PS1="╭─${user_host}${current_dir}$(virtualenv_prompt)$(scm_prompt_info)\n╰─${bold}\\$ ${normal}"
} }
safe_append_prompt_command prompt_command safe_append_prompt_command prompt_command