Created
February 15, 2019 12:45
-
-
Save maacpiash/cbc9d27389a410e571abae1f39b5fcca to your computer and use it in GitHub Desktop.
Bash-It Themes Customized
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SCM_THEME_PROMPT_DIRTY=" ${red}✗" | |
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" | |
SCM_THEME_PROMPT_PREFIX=" |" | |
SCM_THEME_PROMPT_SUFFIX="${green}|" | |
GIT_THEME_PROMPT_DIRTY=" ${red}✗" | |
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" | |
GIT_THEME_PROMPT_PREFIX=" ${green}|" | |
GIT_THEME_PROMPT_SUFFIX="${green}|" | |
# Nicely formatted terminal prompt | |
function prompt_command(){ | |
export PS1="${bold_black}[${blue}\@${bold_black}]-${bold_black}[${green}\u${yellow}@${green}\h${bold_black}]-${bold_black}[${purple}\w${bold_black}]-$(scm_prompt_info)\n${reset_color}\$ " | |
} | |
safe_append_prompt_command prompt_command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SCM_THEME_PROMPT_PREFIX="" | |
SCM_THEME_PROMPT_SUFFIX="" | |
SCM_THEME_PROMPT_DIRTY=" ${bold_red}✗${normal}" | |
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓${normal}" | |
SCM_GIT_CHAR="${bold_green}±${normal}" | |
SCM_SVN_CHAR="${bold_cyan}⑆${normal}" | |
SCM_HG_CHAR="${bold_red}☿${normal}" | |
is_vim_shell() { | |
if [ ! -z "$VIMRUNTIME" ] | |
then | |
echo "[${cyan}vim shell${normal}]" | |
fi | |
} | |
scm_prompt() { | |
CHAR=$(scm_char) | |
if [ $CHAR = $SCM_NONE_CHAR ] | |
then | |
return | |
else | |
echo " $(scm_char) (${white}$(scm_prompt_info)${normal})" | |
fi | |
} | |
prompt() { | |
PS1="${white}${background_blue} \u${normal}${background_blue}@${red}${background_blue}\h $(clock_prompt) ${reset_color}${normal} $(battery_charge) ${bold_black}${background_white} \w ${normal}$(scm_prompt)$(is_vim_shell)\n${white}>${normal} " | |
} | |
THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$blue$background_white"} | |
THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-" %H:%M:%S"} | |
safe_append_prompt_command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SCM_THEME_PROMPT_DIRTY=" ${red}✗" | |
SCM_THEME_PROMPT_CLEAN=" ${bold_green}✓" | |
SCM_THEME_PROMPT_PREFIX=" |" | |
SCM_THEME_PROMPT_SUFFIX="${green}|" | |
GIT_THEME_PROMPT_DIRTY=" ${red}✗" | |
GIT_THEME_PROMPT_CLEAN=" ${bold_green}✓" | |
GIT_THEME_PROMPT_PREFIX=" ${green}|" | |
GIT_THEME_PROMPT_SUFFIX="${green}|" | |
RVM_THEME_PROMPT_PREFIX="|" | |
RVM_THEME_PROMPT_SUFFIX="|" | |
__emperor_clock() { | |
THEME_CLOCK_COLOR=$red | |
clock_prompt | |
} | |
function prompt_command() { | |
PS1="\n$(__emperor_clock)${purple}\h ${reset_color}in ${prompt_color}\w\n${bold_cyan}$(scm_char)${green}$(scm_prompt_info) ${green}→${reset_color} " | |
} | |
THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-"%r "} | |
safe_append_prompt_command prompt_command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------# | |
# FILE: mbriggs.zsh-theme # | |
# BY: Matt Briggs ([email protected]) # | |
# BASED ON: smt by Stephen Tudor ([email protected]) # | |
# ------------------------------------------------------------------# | |
SCM_THEME_PROMPT_DIRTY="${red}⚡${reset_color}" | |
SCM_THEME_PROMPT_AHEAD="${red}!${reset_color}" | |
SCM_THEME_PROMPT_CLEAN="${green}✓${reset_color}" | |
SCM_THEME_PROMPT_PREFIX=" " | |
SCM_THEME_PROMPT_SUFFIX="" | |
GIT_SHA_PREFIX=" ${yellow}" | |
GIT_SHA_SUFFIX="${reset_color}" | |
function git_short_sha() { | |
SHA=$(git rev-parse --short HEAD 2> /dev/null) && echo "$GIT_SHA_PREFIX$SHA$GIT_SHA_SUFFIX" | |
} | |
function prompt() { | |
local return_status="" | |
local ruby="${red}$(ruby_version_prompt)${reset_color}" | |
local user_host="${green}\h${reset_color}" | |
local current_path="\w" | |
local n_commands="\!" | |
local git_branch="$(git_short_sha)$(scm_prompt_info)" | |
local prompt_symbol='λ' | |
local open='(' | |
local close=')' | |
local prompt_char='$ ' | |
PS1="$(clock_prompt) ${user_host} ${prompt_symbol} ${ruby} ${open}${current_path}${git_branch}${close}${return_status}\n${prompt_char}" | |
} | |
THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-" %H:%M:%S"} | |
safe_append_prompt_command prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment