Created
June 26, 2013 01:58
-
-
Save sauron/5864172 to your computer and use it in GitHub Desktop.
Basic zsh theme configuration.
Showing the current path, git branch, rvm info
Based on robbyrussell ohmyzsh theme
This file contains hidden or 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
function is_rvm() { | |
if [[ "$(rvm-prompt)" != "" ]]; then | |
echo "[%{$fg[red]%}$(rvm-prompt)%{$fg_bold[white]%}]" | |
fi | |
} | |
PROMPT='%{$fg_bold[cyan]%}%c %{$fg_bold[white]%}$(git_prompt_info)%{$fg_bold[white]%}$(is_rvm) %{$fg_bold[cyan]%}• %{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}*%{$fg[white]%}]%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[white]%}]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment