Created
February 10, 2011 14:33
-
-
Save desandro/820599 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
prompt_setter() { | |
# Save history | |
history -a | |
history -c | |
history -r | |
# has user and server | |
# PS1="$(scm_char) [\[$black\]\u\[$reset_color\]@\[$blue\]\h\[$reset_color\]] \[$red\]\w\[$green\]$(scm_prompt_info)$(rvm_version_prompt) \[$yellow\]$\[$reset_color\] " | |
# no user and seruver | |
PS1="\[$red\]$(scm_char) \[$blue\]\w\[$yellow\]$(scm_prompt_info)$(rvm_version_prompt) \[$black\]$\[$reset_color\] " | |
PS2='> ' | |
PS4='+ ' | |
} | |
PROMPT_COMMAND=prompt_setter | |
SCM_THEME_PROMPT_DIRTY=" ✗" | |
SCM_THEME_PROMPT_CLEAN=" ✓" | |
SCM_THEME_PROMPT_PREFIX=" (" | |
SCM_THEME_PROMPT_SUFFIX=")" | |
RVM_THEME_PROMPT_PREFIX=" (" | |
RVM_THEME_PROMPT_SUFFIX=")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment