mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Adding fklama Theme, based on robbytussell theme. Added hostname and %/# depending if user is root.
This commit is contained in:
parent
83cf8dc16f
commit
d2a04b8a79
1 changed files with 9 additions and 0 deletions
9
themes/fklama.zsh-theme
Normal file
9
themes/fklama.zsh-theme
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$reset_color%}"
|
||||||
|
local machine="%(!:%{$fg_bold[magenta]%}%m:%{$fg_bold[yellow]%}%m)%{$reset_color%}"
|
||||||
|
local final_prompt="%(!:%{$fg_bold[red]%}:%{$fg_bold[green]%})%#%{$reset_color%}"
|
||||||
|
PROMPT='${ret_status} ${machine} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)${final_prompt} '
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%}✗"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue