Skip to content

Instantly share code, notes, and snippets.

@joariasl
Last active January 11, 2021 06:24
Show Gist options
  • Save joariasl/6f1adcfd459288fa7e8c to your computer and use it in GitHub Desktop.
Save joariasl/6f1adcfd459288fa7e8c to your computer and use it in GitHub Desktop.
My ZSH Personal Theme mod (based on geoffgarside and robbyrussell)
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
PROMPT='${ret_status}%{$fg[cyan]%}%n%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%} %(!.#.$) '
RPROMPT='$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}git:("
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
@joariasl
Copy link
Author

To setup:

pushd ~/.oh-my-zsh/themes/; curl -OJ https://gist.githubusercontent.com/joariasl/6f1adcfd459288fa7e8c/raw/e133b04cd772e71536f0483345b342a4cb8b56bc/geoffgarside_mod.zsh-theme; popd

Set ZSH_THEME="geoffgarside_mod" in the ~/.zshrc file

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