c41807c82fa21e1fcdb18af03a428b88bf2d9673

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #776 from mytechnix/master

Added examples aliases in ZSH config template and new theme.

Diff

This diff is truncated to protect this page.

 1diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
 2index 64b1ece69ca25716ecfdf03fa0e6b1d43355b38b..e525532414557e76e924159dc592ea61fe635bb2 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"