Skip to content

Instantly share code, notes, and snippets.

@mcwindy
Last active April 12, 2024 01:29
Show Gist options
  • Save mcwindy/7449b952a5e462785dd4e508f418b5f5 to your computer and use it in GitHub Desktop.
Save mcwindy/7449b952a5e462785dd4e508f418b5f5 to your computer and use it in GitHub Desktop.
my zsh theme robbyrussell
# modded from ~/.oh-my-zsh/themes/robbyrussell.zsh-theme
# store in ~/.oh-my-zsh/custom/themes/mytheme.zsh-theme
# then run `_omz::theme::use mytheme`
PROMPT="%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} )"
PROMPT+=" %{$fg[magenta]%}%n%{$reset_color%}" # User
#PROMPT+="%{$fg[cyan]%}%c%{$reset_color%}" # Current folder name
PROMPT+="@%{$fg[cyan]%}%~%{$reset_color%}" # Directory
[ "$(git_prompt_info)" != "" ] && PROMPT+=" " # add white space if git prompt is not empty
PROMPT+="$(git_prompt_info) "
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]%}%1{✗%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment