Last active
May 20, 2021 07:40
-
-
Save ip413/0c15f6b487861436762d42fd44f72511 to your computer and use it in GitHub Desktop.
zsh theme
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
# there is some idea behind it: | |
# - line with command should be short as possible | |
# - line with command should be more visibile than first (metadata) line | |
# - there should be time with seconds, just because | |
PROMPT=$' \e[90m%n@%m %D{[%H:%M:%S]} [%~]%{$reset_color%} $(git_prompt_info)\ | |
%(?:%{$bg[green]%}###:%{$bg[red]%}###)%{$reset_color%} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment