Skip to content

Instantly share code, notes, and snippets.

@aslilac
Last active April 7, 2020 00:33
Show Gist options
  • Save aslilac/895df7afd0657c6b522c078335637d50 to your computer and use it in GitHub Desktop.
Save aslilac/895df7afd0657c6b522c078335637d50 to your computer and use it in GitHub Desktop.
Better oh-my-zsh default theme
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[magenta]%}➜ )"
PROMPT='${ret_status} %{$fg[cyan]%}%~%{$reset_color%}$(git_prompt_info) '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
ZSH_THEME_GIT_PROMPT_DIRTY="$ZSH_THEME_GIT_PROMPT_CLEAN %{$fg[magenta]%}✗"
@aslilac
Copy link
Author

aslilac commented Aug 5, 2018

Prints the full directory path rather than just the name. Other than that small change, it's an exact copy of the default 'robbyrussell' theme.

Edit: The git display is different now as well

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