From d2a04b8a797efadc12b7f8613a72edc114b082a1 Mon Sep 17 00:00:00 2001 From: Frederik Klama Date: Sat, 12 Mar 2016 01:32:44 +0100 Subject: [PATCH] Adding fklama Theme, based on robbytussell theme. Added hostname and %/# depending if user is root. --- themes/fklama.zsh-theme | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 themes/fklama.zsh-theme diff --git a/themes/fklama.zsh-theme b/themes/fklama.zsh-theme new file mode 100644 index 000000000..7c6d1bcfb --- /dev/null +++ b/themes/fklama.zsh-theme @@ -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]%})"