Last active
November 26, 2019 09:18
-
-
Save dardinier/ea02f283ca91111b811d386f28935c13 to your computer and use it in GitHub Desktop.
Custom oh-my-zsh theme for my host and containers environment
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
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
# primary prompt | |
PROMPT='$FG[237]${(l.COLUMNS..-.)}%{$reset_color%} | |
$FG[202]%m $FG[105]» $FG[032]%~\ | |
$(git_prompt_info) \ | |
$FG[105]%(!.#.»)%{$reset_color%} ' | |
PROMPT2='%{$fg[red]%}\ %{$reset_color%}' | |
RPS1='${return_code}' | |
# git settings | |
ZSH_THEME_GIT_PROMPT_PREFIX=" $FG[075]($FG[078]" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="$FG[214]*%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}" |
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
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
# primary prompt | |
PROMPT='$FG[237]${(l.COLUMNS..-.)}%{$reset_color%} | |
$FG[032]%~\ | |
$(git_prompt_info) \ | |
$FG[105]%(!.#.»)%{$reset_color%} ' | |
PROMPT2='%{$fg[red]%}\ %{$reset_color%}' | |
RPS1='${return_code}' | |
# git settings | |
ZSH_THEME_GIT_PROMPT_PREFIX=" $FG[075]($FG[078]" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="$FG[214]*%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[075])%{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment