5f62d2c183f93ef02b79675c6a51950cb530dfcb
- Author
- Sean Jones <neuralsandwich@gmail.com>
- Committer
- Sean Jones <neuralsandwich@gmail.com>
- Date
Message
Added Candy-Kingdom theme
Diff
1diff --git a/themes/candy-kingdom.zsh-theme b/themes/candy-kingdom.zsh-theme
2new file mode 100644
3index 0000000000000000000000000000000000000000..25aeb65974f4c491c4ca842c4fca5b6999828d60
4--- /dev/null
5+++ b/themes/candy-kingdom.zsh-theme
6@@ -0,0 +1,37 @@
7+# neuralsanwich.zsh-theme
8+#
9+# Author: Sean Jones
10+# URL: http://www.neuralsandwich.com
11+# Repo:
12+# Direct link:
13+# Create:
14+# Modified:
15+
16+if [ "x$OH_MY_ZSH_HG" = "x" ]; then
17+ OH_MY_ZSH_HG="hg"
18+fi
19+
20+function hg_prompt_info {
21+ $OH_MY_ZSH_HG prompt --angle-brackets "\
22+< on %{$fg[magenta]%}<branch>%{$reset_color%}>\
23+< at %{$fg[yellow]%}<tags|%{$reset_color%}, %{$fg[yellow]%}>%{$reset_color%}>\
24+%{$fg[green]%}<status|modified|unknown><update>%{$reset_color%}<
25+patches: <patches|join( → )|pre_applied(%{$fg[yellow]%})|post_applied(%{$reset_color%})|pre_unapplied(%{$fg_bold[black]%})|post_unapplied(%{$reset_color%})>>" 2>/dev/null
26+}
27+
28+function box_name {
29+ [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
30+}
31+
32+PROMPT='
33+%{$fg[magenta]%}%n%{$reset_color%}@%{$fg[yellow]%}$(box_name)%{$reset_color%}:%{$fg_bold[green]%}${PWD/#$HOME/~}%{$reset_color%}$(hg_prompt_info)$(git_prompt_info)
34+%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )$ '
35+
36+ZSH_THEME_GIT_PROMPT_PREFIX=" (%{$fg[magenta]%}branch: "
37+ZSH_THEME_GIT_PROMPT_CLEAN=""
38+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[red]%}?"
39+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[orange]%}!"
40+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})"
41+
42+local return_status="%{$fg[red]%}%(?..✘)%{$reset_color%}"
43+RPROMPT='${return_status}$(battery_time_remaining) $(battery_pct_prompt)%{$reset_color%}'