Created
October 14, 2012 13:59
-
-
Save danielbayerlein/3888663 to your computer and use it in GitHub Desktop.
A simple theme for oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh/). Inspired by PeepCode (http://peepcode.com/blog/2012/my-command-line-prompt).
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
# Created by Daniel Bayerlein https://github.com/danielbayerlein | |
# Inspired by http://peepcode.com/blog/2012/my-command-line-prompt | |
local smiley="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})" | |
local user="%{$fg[cyan]%}%n%{$reset_color%}" | |
local host="%{$fg[cyan]%}@%m%{$reset_color%}" | |
local pwd="%{$fg[yellow]%}%~%{$reset_color%}" | |
PROMPT='${user}${host} ${pwd} | |
${smiley} ' | |
RPROMPT='$(rvm-prompt || rbenv version) %{$fg[white]%}$(git_prompt_info)%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} ✗%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔%{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment