Skip to content

Instantly share code, notes, and snippets.

@alexandreprates
Created January 18, 2016 13:01
Show Gist options
  • Select an option

  • Save alexandreprates/acbaa96288d1e93f21f2 to your computer and use it in GitHub Desktop.

Select an option

Save alexandreprates/acbaa96288d1e93f21f2 to your computer and use it in GitHub Desktop.
OhMyZsh lost theme
# Theme by ajfprates at gmail dot com
local current_dir='${PWD/#$HOME/~}'
local git_info='$(git_prompt_info)'
local ruby_env=' $(ruby -v | cut -d " " -f 2)'
PROMPT="%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(hostname)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}with ruby%{$fg[red]%}${ruby_env}%{$reset_color%}
>: "
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[202]%} (dirty)"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$FG[040]%} (clean)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment