f2f49f9571cf56b2fa672f16260c000050f9349b
- Author
- atom smith <re5etsmyth@gmail.com>
- Committer
- atom smith <re5etsmyth@gmail.com>
- Date
Message
adding my zsh-theme
Diff
1diff --git a/themes/re5et.zsh-theme b/themes/re5et.zsh-theme
2new file mode 100644
3index 0000000000000000000000000000000000000000..fadb1fef841abb70ba6c3225432af3ada0d75dd7
4--- /dev/null
5+++ b/themes/re5et.zsh-theme
6@@ -0,0 +1,15 @@
7+if [ "$(whoami)" = "root" ]; then CARETCOLOR="red"; else CARETCOLOR="magenta"; fi
8+
9+local return_code="%(?..%{$fg_bold[red]%}:( %?%{$reset_color%})"
10+
11+PROMPT='
12+%{$fg_bold[cyan]%}%n%{$reset_color%}%{$fg[yellow]%}@%{$reset_color%}%{$fg_bold[blue]%}%m%{$reset_color%}:%{${fg_bold[green]}%}%~%{$reset_color%}$(git_prompt_info)
13+%{${fg[$CARETCOLOR]}%}%# %{${reset_color}%}'
14+
15+RPS1='${return_code} %D - %*'
16+
17+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[magenta]%}^%{$reset_color%}%{$fg_bold[yellow]%}"
18+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
19+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%} ±"
20+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ?"
21+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[red]%} ♥"