Skip to content

Instantly share code, notes, and snippets.

@kvn1234
Created August 16, 2017 21:45
Show Gist options
  • Save kvn1234/e6a17e880394f6554c4f7c44cd35ad45 to your computer and use it in GitHub Desktop.
Save kvn1234/e6a17e880394f6554c4f7c44cd35ad45 to your computer and use it in GitHub Desktop.
custom oh-my-zsh theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )"
PROMPT='%{$fg_bold[blue]%}$USER@%M %{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@kvn1234
Copy link
Author

kvn1234 commented Aug 16, 2017

create themename.zsh-theme in ~/.oh-my-zsh/$ZSH_CUSTOM/themes/
vi .zshrc
Change the theme line to "themename" (no need to specify the CUSTOM folder or the extension)
:wq to save & exit
run source .zshrc to reload the shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment