Last active
January 15, 2017 01:58
-
-
Save kottenator/acb2ef43ad73b45545db45d9aa7d48f3 to your computer and use it in GitHub Desktop.
Custom theme for bash-it
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
# Custom theme for https://github.com/bash-it/bash-it | |
# Place it into ~/.bash_it/custom/themes/kott/kott.theme.bash | |
# Enable it in your ~/.bashrc: export BASH_IT_THEME='kott' | |
SCM_THEME_PROMPT_DIRTY="✗ " | |
SCM_THEME_PROMPT_CLEAN="✓ " | |
SCM_THEME_PROMPT_PREFIX=" (" | |
SCM_THEME_PROMPT_SUFFIX=")" | |
function scm_prompt_info { | |
scm_prompt_vars | |
[ "$SCM_DIRTY" == "0" ] && SCM_COLOR="$bold_green" || SCM_COLOR="$bold_yellow"; | |
echo -e "$SCM_COLOR$SCM_PREFIX$SCM_STATE$SCM_BRANCH$SCM_SUFFIX$reset_color" | |
} | |
function prompt_command() { | |
PS1="$bold_green» $bold_blue\W/$(scm_prompt_info) $normal$ " | |
} | |
safe_append_prompt_command prompt_command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment