Added a couple more themes and put colors into its own file
This commit is contained in:
@@ -1,35 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Normal Colors
|
||||
GREEN=$'\e[0;32m'
|
||||
RED=$'\e[0;31m'
|
||||
BLUE=$'\e[0;34m'
|
||||
WHITE=$'\e[1;37m'
|
||||
BLACK=$'\e[0;30m'
|
||||
YELLOW=$'\e[0;33m'
|
||||
PURPLE=$'\e[0;35m'
|
||||
CYAN=$'\e[0;36m'
|
||||
GRAY=$'\e[1;30m'
|
||||
PINK=$'\e[37;1;35m'
|
||||
ORANGE=$'\e[33;40m'
|
||||
|
||||
# Revert color back to the normal color
|
||||
NORMAL=$'\e[00m'
|
||||
|
||||
# LIGHT COLORS
|
||||
LIGHT_GREEN=$'\e[1;32m'
|
||||
LIGHT_RED=$'\e[1;31m'
|
||||
LIGHT_BLUE=$'\e[1;34m'
|
||||
LIGHT_YELLOW=$'\e[1;33m'
|
||||
LIGHT_PURPLE=$'\e[1;35m'
|
||||
LIGHT_CYAN=$'\e[1;36m'
|
||||
LIGHT_GRAY=$'\e[0;37m'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Stolen from Steve Losh
|
||||
function prompt_char {
|
||||
git branch >/dev/null 2>/dev/null && echo '±' && return
|
||||
@@ -45,7 +15,7 @@ function parse_git_dirty {
|
||||
fi
|
||||
}
|
||||
|
||||
function parse_git_branch {
|
||||
function git_prompt_info() {
|
||||
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
|
||||
echo "$GIT_THEME_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$GIT_THEME_PROMPT_SUFFIX"
|
||||
}
|
||||
Reference in New Issue
Block a user