Add theme Easy
This commit is contained in:
committed by
Noah Gorny
parent
4860fb8c60
commit
6866648ac6
19
themes/easy/easy.theme.bash
Normal file
19
themes/easy/easy.theme.bash
Normal file
@@ -0,0 +1,19 @@
|
||||
# shellcheck shell=bash
|
||||
|
||||
SCM_THEME_PROMPT_PREFIX="${bold_green}[ ${normal}"
|
||||
SCM_THEME_PROMPT_SUFFIX="${bold_green} ] "
|
||||
SCM_THEME_PROMPT_DIRTY=" ${red}✗"
|
||||
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓"
|
||||
|
||||
prompt_command() {
|
||||
if [ "$(whoami)" = root ]; then
|
||||
cursor_color="${bold_red}"
|
||||
user_color="${green}"
|
||||
else
|
||||
cursor_color="${bold_green}"
|
||||
user_color="${white}"
|
||||
fi
|
||||
PS1="${user_color}\u${normal}@${white}\h ${bold_black}\w\n${reset_color}$(scm_prompt_info)${cursor_color}❯ ${normal}"
|
||||
}
|
||||
|
||||
safe_append_prompt_command prompt_command
|
||||
Reference in New Issue
Block a user