Last active
October 1, 2019 16:44
-
-
Save pepitooo/6e880c1a43f3c443975700271cc82861 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on tjkirch.zsh-theme to ajust to color I want and I like. | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}\u21AF" | |
ZSH_THEME_GIT_PROMPT_CLEAN=" \u2714" | |
PROMPT='%{$fg_bold[green]%}%n%{$reset_color%}@%{$fg_bold[red]%}%M%{$reset_color%}:%{$fg_bold[blue]%}[$(pwd)]%{$reset_color%} | |
> ' # default prompt | |
function prompt_char { | |
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi | |
} | |
PROMPT='%(?, ,%{$fg_bold[red]%}FAIL: $?%{$reset_color%}) | |
%{$fg_bold[green]%}%n%{$reset_color%}@%{$fg_bold[red]%}%m%{$reset_color%}: %{$fg_bold[blue]%}$(pwd)%{$reset_color%}$(git_prompt_info) | |
%_$(prompt_char) ' | |
RPROMPT='%{$fg[green]%}[%*]%{$reset_color%}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment