Skip to content

Instantly share code, notes, and snippets.

@codeslinger
Created February 27, 2024 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeslinger/8618a91a704dc2aac418fde8f28a1e0c to your computer and use it in GitHub Desktop.
Save codeslinger/8618a91a704dc2aac418fde8f28a1e0c to your computer and use it in GitHub Desktop.
OMZ theme
# Color shortcuts
RED=$fg[red]
YELLOW=$fg[yellow]
GREEN=$fg[green]
WHITE=$fg[white]
BLUE=$fg[blue]
CYAN=$fg[cyan]
RED_BOLD=$fg_bold[red]
YELLOW_BOLD=$fg_bold[yellow]
GREEN_BOLD=$fg_bold[green]
WHITE_BOLD=$fg_bold[white]
BLUE_BOLD=$fg_bold[blue]
RESET_COLOR=$reset_color
# Format for git_prompt_info()
ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=""
# Format for parse_git_dirty()
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$RED%}(*)"
ZSH_THEME_GIT_PROMPT_CLEAN=""
# Prompt format
#PROMPT='%{$GREEN_BOLD%}%n@%m%{$WHITE%}:%{$YELLOW%}%~%u$(parse_git_dirty)$(git_prompt_ahead)%{$RESET_COLOR%}
#%{$BLUE%}>%{$RESET_COLOR%} '
PROMPT='%{$YELLOW%}%T %{$GREEN_BOLD%}%n@%m%{$WHITE%}: %{$CYAN%}%~%u %{$WHITE%}%{$YELLOW%}$(git_current_branch)%{$WHITE%}$(parse_git_dirty)%{$RESET_COLOR%}
> '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment