57 lines
2.1 KiB
Plaintext
57 lines
2.1 KiB
Plaintext
# X-Files bash-git-prompt theme.
|
||
# This theme is using symbols from the font:
|
||
# DejaVuSansMono Nerd Font included in the repositoty
|
||
#
|
||
# Font Test:
|
||
# ❮ ❯
|
||
|
||
override_git_prompt_colors() {
|
||
|
||
local black_fg_blue_bg=$(echo -e "\e[7;49;34m")
|
||
local black_fg_white_bg=$(echo -e "\e[7;49;39m")
|
||
local blue_fg_red_bg=$(echo -e "\e[7;44;31m")
|
||
local blue_fg_white_bg=$(echo -e "\e[7;44;37m")
|
||
local blue_fg_yellow_bg=$(echo -e "\e[7;44;33m")
|
||
local light_blue=$(echo -e "\001\e[38;2;140;206;250m\002")
|
||
local red_fg_black_bg=$(echo -e "\e[7;41;30m")
|
||
local white_fg_black_bg=$(echo -e "\e[7;107;30m")
|
||
local white_fg_blue_bg=$(echo -e "\e[7;107;34m")
|
||
local white_fg_red_bg=$(echo -e "\e[7;107;31m")
|
||
local white_fg_yellow_bg=$(echo -e "\e[7;107;33m")
|
||
local yellow_fg_black_bg=$(echo -e "\e[7;43;30m")
|
||
|
||
Time12a="\$(date +%H:%M)"
|
||
|
||
GIT_PROMPT_THEME_NAME="x-files-fancy-yellow"
|
||
GIT_PROMPT_ONLY_IN_REPO=1
|
||
GIT_PROMPT_LEADING_SPACE=0
|
||
GIT_PROMPT_REMOTE=""
|
||
|
||
GIT_PROMPT_BRANCH="${white_fg_blue_bg} "
|
||
|
||
GIT_PROMPT_PREFIX=""
|
||
GIT_PROMPT_SUFFIX=""
|
||
GIT_PROMPT_SEPARATOR=""
|
||
GIT_PROMPT_STAGED="${white_fg_blue_bg} ●"
|
||
GIT_PROMPT_CONFLICTS=" ${Red}✗ "
|
||
GIT_PROMPT_CHANGED="${white_fg_blue_bg} +"
|
||
GIT_PROMPT_UNTRACKED="${white_fg_blue_bg} …"
|
||
GIT_PROMPT_STASHED="${white_fg_blue_bg} "
|
||
GIT_PROMPT_CLEAN="${white_fg_blue_bg} ✔"
|
||
GIT_PROMPT_SYMBOLS_NO_REMOTE_TRACKING="${white_fg_blue_bg} "
|
||
|
||
GIT_PROMPT_COMMAND_OK="${Green}✔ "
|
||
GIT_PROMPT_COMMAND_FAIL="${Red}✗ "
|
||
|
||
GIT_PROMPT_START_USER="${black_fg_blue_bg}${ResetColor}"
|
||
GIT_PROMPT_START_ROOT="${black_fg_blue_bg}${ResetColor}"
|
||
GIT_PROMPT_END_USER="${blue_fg_yellow_bg}${white_fg_yellow_bg}${PathShort}${yellow_fg_black_bg}${ResetColor} "
|
||
GIT_PROMPT_END_ROOT="${blue_fg_red_bg}${white_fg_red_bg}${PathShort}${red_fg_black_bg}${ResetColor} "
|
||
|
||
GIT_PROMPT_SYMBOLS_AHEAD="${white_fg_blue_bg} "
|
||
GIT_PROMPT_SYMBOLS_BEHIND="${white_fg_blue_bg} "
|
||
|
||
}
|
||
|
||
reload_git_prompt_colors "x-files-fancy-yellow"
|