Created
January 18, 2022 15:53
-
-
Save ColdTeapot273K/368c4fe7439ab068afe62a32ee4d59de to your computer and use it in GitHub Desktop.
Custom oh-my-zsh theme 1 (`intheloop` theme but with better colors)
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
# A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status | |
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}" | |
local host_color="green" | |
if [ -n "$SSH_CLIENT" ]; then | |
local host_color="red" | |
fi | |
PROMPT=' | |
%{$fg_bold[${host_color}]%}[%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[${host_color}]%}]%{$reset_color%} %{$fg_bold[cyan]%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status) | |
%{$fg_bold[cyan]%}❯%{$reset_color%} ' | |
RPROMPT='${return_status}%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[grey]%}(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[grey]%}) %{$fg[yellow]%}⚡%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[grey]%})" | |
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE="%{$fg_bold[magenta]%}↓%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE="%{$fg_bold[magenta]%}↑%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE="%{$fg_bold[magenta]%}↕%{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment