mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added Dominik-Lieblers-MacBook-Pro.local and some more fancy pipes in the prompt
This commit is contained in:
parent
9c3449eaa2
commit
aa44724547
1 changed files with 4 additions and 2 deletions
|
|
@ -6,13 +6,15 @@ ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[yellow]%}⚡%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[yellow]%}⚡%{$reset_color%}"
|
||||||
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
|
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
|
||||||
|
|
||||||
# am I root? show me!
|
# are you root? show me!
|
||||||
IAM=""
|
IAM=""
|
||||||
if [ "$UID" = "0" ]; then
|
if [ "$UID" = "0" ]; then
|
||||||
IAM="%{$fg[red]%}root|%{$reset_color%}"
|
IAM="%{$fg[red]%}root|%{$reset_color%}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PROMPT='$IAM%{$fg[cyan]%}%1~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}⇒%{$reset_color%} '
|
SEPARATOR="%{$fg[red]%}|%{$fg[reset_color]%}"
|
||||||
|
|
||||||
|
PROMPT='%{$fg[yellow]%}$HOST$SEPARATOR$IAM%{$fg[cyan]%}%1~%{$reset_color%}$SEPARATOR$(git_prompt_info)%{$fg[cyan]%}%{$reset_color%} '
|
||||||
|
|
||||||
# ls colors, made with http://geoff.greer.fm/lscolors/
|
# ls colors, made with http://geoff.greer.fm/lscolors/
|
||||||
export LSCOLORS='Gxdxhxhxbxegedabagacad'
|
export LSCOLORS='Gxdxhxhxbxegedabagacad'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue