Skip to content

Instantly share code, notes, and snippets.

@Dysta
Last active March 26, 2020 12:21
Show Gist options
  • Save Dysta/c3c89255385c7309adbff28306ae4801 to your computer and use it in GitHub Desktop.
Save Dysta/c3c89255385c7309adbff28306ae4801 to your computer and use it in GitHub Desktop.
my custom zsh theme
function prompt_char {
if [ $UID -eq 0 ]; then echo "#"; else echo "»"; fi
}
PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m%{$reset_color%}:%{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)%{$reset_color%}
%(?.%{$fg_bold[green]%}✓.%{$fg_bold[red]%}✗)%{$reset_color%} $(prompt_char) '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%}git:("
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%} "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment