f999fd8e121c1fd4d097c25be59c6020e1aed830
- Author
- Michael Holachek <michael.holachek@gmail.com>
- Committer
- Michael Holachek <michael.holachek@gmail.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
2index 1ab40aba6d39eca4648267dfc25420b355c10b5b..25cf4f2331bbad95cb8870112367d96962f1bff4 100644
3--- a/templates/zshrc.zsh-template
4+++ b/templates/zshrc.zsh-template
5@@ -7,6 +7,10 @@ ZSH=$HOME/.oh-my-zsh
6 # time that oh-my-zsh is loaded.
7 ZSH_THEME="robbyrussell"
8
9+# Example aliases
10+# alias zshconfig="mate ~/.zshrc"
11+# alias ohmyzsh="mate ~/.oh-my-zsh"
12+
13 # Set to this to use case-sensitive completion
14 # CASE_SENSITIVE="true"
15
16diff --git a/themes/mh.zsh-theme b/themes/mh.zsh-theme
17new file mode 100644
18index 0000000000000000000000000000000000000000..34a3765b1b1fdbfa433e033a1c7d571e3fbc1880
19--- /dev/null
20+++ b/themes/mh.zsh-theme
21@@ -0,0 +1,24 @@
22+# mh theme
23+# preview: http://cl.ly/1y2x0W0E3t2C0F29043z
24+
25+# features:
26+# path is autoshortened to ~30 characters
27+# displays git status (if applicable in current folder)
28+# turns username green if superuser, otherwise it is white
29+
30+# if superuser make the username green
31+if [ $UID -eq 0 ]; then NCOLOR="green"; else NCOLOR="white"; fi
32+
33+# prompt
34+PROMPT='[%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[red]%}%30<...<%~%<<%{$reset_color%}]%(!.#.$) '
35+RPROMPT='$(git_prompt_info)'
36+
37+# git theming
38+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[gray]%}(%{$fg_no_bold[yellow]%}%B"
39+ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[gray]%})%{$reset_color%} "
40+ZSH_THEME_GIT_PROMPT_CLEAN=""
41+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✱"
42+
43+# LS colors, made with http://geoff.greer.fm/lscolors/
44+export LSCOLORS="Gxfxcxdxbxegedabagacad"