Created
October 4, 2011 13:52
-
-
Save rossta/1261697 to your computer and use it in GitHub Desktop.
rossta zsh 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
| # CANDY Extension | |
| PROMPT_PREFIX="%{$fg[blue]%}[%{$reset_color%}" | |
| PROMPT_SUFFIX="$fg[blue]%}]%{$reset_color%}" | |
| HOST_PROMPT="%{$fg_bold[green]%}%n@%m" | |
| DATE_PROMPT="$PROMPT_PREFIX%{$fg[red]%}%D{%I:%M:%S}$PROMPT_SUFFIX" | |
| PWD_PROMPT="$PROMPT_PREFIX%{$fg[white]%}%~$PROMPT_SUFFIX" | |
| LEADER_PROMPT="%{$fg_bold[blue]%}\$%{$reset_color%}" | |
| # Get the current ruby version in use with RVM: | |
| if [ -e ~/.rvm/bin/rvm-prompt ]; then | |
| RUBY_PROMPT="$PROMPT_PREFIX%{$fg[green]%}rvm:%{$fg[red]%}$(~/.rvm/bin/rvm-prompt s i v g)$PROMPT_SUFFIX" | |
| fi | |
| PROMPT=$'$HOST_PROMPT $DATE_PROMPT$PWD_PROMPT$RUBY_PROMPT$(git_prompt_info)\ | |
| $LEADER_PROMPT ' | |
| ZSH_THEME_GIT_PROMPT_PREFIX="$PROMPT_PREFIX$fg[green]%}" | |
| ZSH_THEME_GIT_PROMPT_SUFFIX="$PROMPT_SUFFIX" | |
| ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[blue]%}" | |
| ZSH_THEME_GIT_PROMPT_CLEAN="" | |
| # Robby Russell extension | |
| # Based on robbyrussell's theme, with host and rvm indicators. Example: | |
| # @host ➜ currentdir rvm:(rubyversion@gemset) git:(branchname) | |
| # Get the current ruby version in use with RVM: | |
| # if [ -e ~/.rvm/bin/rvm-prompt ]; then | |
| # RUBY_PROMPT_="%{$fg_bold[blue]%}[%{$fg_bold[red]%}rvm:%{$fg[green]%}\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg_bold[blue]%}%{$fg_bold[blue]%}]%{$reset_color%}" | |
| # fi | |
| # | |
| # DATE_PROMPT_="%{$fg_bold[blue]%}[%{$fg_bold[red]%}$(date +%H:%M)%{$fg_bold[cyan]%}%{$fg_bold[blue]%}]" | |
| # | |
| # # Get the host name (first y chars) | |
| # HOST_PROMPT_="%{$fg_bold[blue]%}[%{$fg_bold[red]%}$HOST[0,6]:%{$fg_bold[cyan]%}%c%{$fg_bold[blue]%}]" | |
| # | |
| # GIT_PROMPT_="%{$fg_bold[blue]%}[%{$fg_bold[blue]%}\$(git_prompt_info)%{$fg_bold[blue]%}]%{$fg_bold[green]%}" | |
| # | |
| # START_PROMPT=" \$ %{$reset_color%}" | |
| # | |
| # PROMPT="$DATE_PROMPT_$HOST_PROMPT_$RUBY_PROMPT_$GIT_PROMPT_$START_PROMPT" | |
| # | |
| # ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" | |
| # ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
| # ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" | |
| # ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment