Created
November 22, 2011 22:30
-
-
Save jfsiii/1387251 to your computer and use it in GitHub Desktop.
My current BASH_IT theme
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
#!/bin/bash | |
function prompt_command() | |
{ | |
scm_prompt_vars | |
if [[ $SCM != $SCM_NONE ]] | |
then | |
local scm_info=" $blue[$SCM_BRANCH @ ${SCM_CHANGE:0:7}] $SCM_STATE"; | |
fi | |
local dir="${underline_yellow}\w$normal" | |
local end="${green}→ " | |
## something like ~/.bash_it [master @ b59ee65] ✗ → | |
PS1="$dir$scm_info $end$reset_color" | |
} | |
SCM_THEME_PROMPT_DIRTY="${red}✗" | |
SCM_THEME_PROMPT_CLEAN="${green}✓" | |
PROMPT_COMMAND=prompt_command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment