462136a9d6188f4928d9a58a9421ebccdca293c9
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #794 from markdrago/cloud_parameter
add ability to set custom prefix for cloud theme
Diff
1diff --git a/themes/cloud.zsh-theme b/themes/cloud.zsh-theme
2index ad5e2834b832938faa4b0a8f12cb060e849cff64..4efbf9776f65981b898e4212a87b93e5d4926b86 100644
3--- a/themes/cloud.zsh-theme
4+++ b/themes/cloud.zsh-theme
5@@ -1,4 +1,8 @@
6-PROMPT='%{$fg_bold[cyan]%}☁ %{$fg_bold[green]%}%p %{$fg[green]%}%c %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
7+if [[ -z $ZSH_THEME_CLOUD_PREFIX ]]; then
8+ ZSH_THEME_CLOUD_PREFIX='☁'
9+fi
10+
11+PROMPT='%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg_bold[green]%}%p %{$fg[green]%}%c %{$fg_bold[cyan]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
12
13 ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
14 ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"