Skip to content

Instantly share code, notes, and snippets.

@jfsiii
Created November 22, 2011 22:30
Show Gist options
  • Save jfsiii/1387251 to your computer and use it in GitHub Desktop.
Save jfsiii/1387251 to your computer and use it in GitHub Desktop.
My current BASH_IT theme
#!/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