From 47406d7afe01824182b90d1c0d0a460e1f07db5e Mon Sep 17 00:00:00 2001 From: Paul Morganthall Date: Wed, 1 Nov 2017 08:56:14 -0400 Subject: Replace preview link. (#6369) The old preview on Skitch is no longer available (closed account?). The new preview is on a free Flickr which might last longer. ? --- themes/gallifrey.zsh-theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themes/gallifrey.zsh-theme') diff --git a/themes/gallifrey.zsh-theme b/themes/gallifrey.zsh-theme index fce7cb923..252566f06 100644 --- a/themes/gallifrey.zsh-theme +++ b/themes/gallifrey.zsh-theme @@ -1,4 +1,4 @@ -# ZSH Theme - Preview: http://img.skitch.com/20091113-qqtd3j8xinysujg5ugrsbr7x1y.jpg +# ZSH Theme - Preview: https://flic.kr/p/ZFvivf local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" PROMPT='%{$fg[green]%}%m%{$reset_color%} %2~ $(git_prompt_info)%{$reset_color%}%B»%b ' -- cgit v1.2.3-70-g09d2 From 851899e59ea71ce8fbae738ec7aeb7a967585977 Mon Sep 17 00:00:00 2001 From: Brian Hong Date: Thu, 31 Jan 2019 08:57:37 -0500 Subject: theme/gallifrey: set color to red if root (#6203) --- themes/gallifrey.zsh-theme | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'themes/gallifrey.zsh-theme') diff --git a/themes/gallifrey.zsh-theme b/themes/gallifrey.zsh-theme index 252566f06..768547064 100644 --- a/themes/gallifrey.zsh-theme +++ b/themes/gallifrey.zsh-theme @@ -1,8 +1,11 @@ -# ZSH Theme - Preview: https://flic.kr/p/ZFvivf -local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" +# ZSH Theme - Preview: https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#gallifrey +return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" +host_color="%(!.%{$fg[red]%}.%{$fg[green]%})" -PROMPT='%{$fg[green]%}%m%{$reset_color%} %2~ $(git_prompt_info)%{$reset_color%}%B»%b ' +PROMPT="${host_color}%m%{$reset_color%} %2~ \$(git_prompt_info)%{$reset_color%}%B»%b " RPS1="${return_code}" ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹" ZSH_THEME_GIT_PROMPT_SUFFIX="› %{$reset_color%}" + +unset return_code host_color -- cgit v1.2.3-70-g09d2