From 29dc356a30e729c288c562957a761872a003c3e0 Mon Sep 17 00:00:00 2001 From: Jared Culp Date: Tue, 1 Aug 2017 22:55:20 -0400 Subject: [PATCH] Allow override of zsh prompt prefix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Can be set with `ZSH_THEME_PROMPT_SYMBOL`. Defaults to `➜` --- themes/robbyrussell.zsh-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/robbyrussell.zsh-theme b/themes/robbyrussell.zsh-theme index f9eca6a87..9375fbc07 100644 --- a/themes/robbyrussell.zsh-theme +++ b/themes/robbyrussell.zsh-theme @@ -1,4 +1,6 @@ -local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" +PROMPT_SYMBOL=${ZSH_THEME_PROMPT_SYMBOL:-➜} + +local ret_status="%(?:%{$fg_bold[green]%}${PROMPT_SYMBOL} :%{$fg_bold[red]%}${PROMPT_SYMBOL} )" PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)' ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"