Created
November 27, 2020 06:58
-
-
Save fanyang89/911ad19b0f0f98d6fabd5d7f09a9abcd to your computer and use it in GitHub Desktop.
ohmyzsh theme gentoo with LF prompt
This file contains hidden or 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
function prompt_char { | |
if [ $UID -eq 0 ]; then echo "\n#"; else echo "\n$"; fi | |
} | |
PROMPT='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(git_prompt_info)$(prompt_char)%{$reset_color%} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX=") " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment