Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add custom zsh stuff

  • Loading branch information...
commit 4c082164a14ed3b7cdee1fc6ed158f10a56080db 1 parent d78fbb7
Luke van der Hoeven authored December 04, 2012

Showing 253 changed files with 9,457 additions and 4 deletions. Show diff stats Hide diff stats

  1. 3  .gitmodules
  2. 1  home/.oh-my-zsh
  3. 9  home/.oh-my-zsh/.gitignore
  4. 86  home/.oh-my-zsh/README.textile
  5. 63  home/.oh-my-zsh/custom/aliases.zsh
  6. 1  home/.oh-my-zsh/custom/keys.zsh
  7. 8  home/.oh-my-zsh/custom/makego.zsh
  8. 3  home/.oh-my-zsh/custom/paths.zsh
  9. 10  home/.oh-my-zsh/custom/stevie.zsh
  10. 24  home/.oh-my-zsh/lib/aliases.zsh
  11. 72  home/.oh-my-zsh/lib/completion.zsh
  12. 10  home/.oh-my-zsh/lib/correction.zsh
  13. 44  home/.oh-my-zsh/lib/directories.zsh
  14. 3  home/.oh-my-zsh/lib/edit-command-line.zsh
  15. 17  home/.oh-my-zsh/lib/functions.zsh
  16. 96  home/.oh-my-zsh/lib/git.zsh
  17. 6  home/.oh-my-zsh/lib/grep.zsh
  18. 13  home/.oh-my-zsh/lib/history.zsh
  19. 50  home/.oh-my-zsh/lib/key-bindings.zsh
  20. 13  home/.oh-my-zsh/lib/misc.zsh
  21. 5  home/.oh-my-zsh/lib/rvm.zsh
  22. 28  home/.oh-my-zsh/lib/spectrum.zsh
  23. 35  home/.oh-my-zsh/lib/termsupport.zsh
  24. 36  home/.oh-my-zsh/lib/theme-and-appearance.zsh
  25. 4  home/.oh-my-zsh/log/.easter-egg
  26. 75  home/.oh-my-zsh/oh-my-zsh.sh
  27. 26  home/.oh-my-zsh/plugins/ant/ant.plugin.zsh
  28. 6  home/.oh-my-zsh/plugins/apache2-macports/apache2-macports.plugin.zsh
  29. 77  home/.oh-my-zsh/plugins/archlinux/archlinux.plugin.zsh
  30. 11  home/.oh-my-zsh/plugins/autojump/autojump.plugin.zsh
  31. 20  home/.oh-my-zsh/plugins/battery/battery.plugin.zsh
  32. 80  home/.oh-my-zsh/plugins/brew/_brew
  33. 1  home/.oh-my-zsh/plugins/brew/brew.plugin.zsh
  34. 82  home/.oh-my-zsh/plugins/bundler/_bundler
  35. 42  home/.oh-my-zsh/plugins/bundler/bundler.plugin.zsh
  36. 36  home/.oh-my-zsh/plugins/cake/cake.plugin.zsh
  37. 41  home/.oh-my-zsh/plugins/cap/cap.plugin.zsh
  38. 2  home/.oh-my-zsh/plugins/cloudapp/cloudapp.plugin.zsh
  39. 60  home/.oh-my-zsh/plugins/cloudapp/cloudapp.rb
  40. 6  home/.oh-my-zsh/plugins/colemak/colemak-less
  41. 22  home/.oh-my-zsh/plugins/colemak/colemak.plugin.zsh
  42. 5  home/.oh-my-zsh/plugins/command-not-found/command-not-found.plugin.zsh
  43. 20  home/.oh-my-zsh/plugins/compleat/compleat.plugin.zsh
  44. 29  home/.oh-my-zsh/plugins/composer/composer.plugin.zsh
  45. 67  home/.oh-my-zsh/plugins/cpanm/_cpanm
  46. 184  home/.oh-my-zsh/plugins/debian/debian.plugin.zsh
  47. 10  home/.oh-my-zsh/plugins/dircycle/dircycle.plugin.zsh
  48. 39  home/.oh-my-zsh/plugins/dirpersist/dirpersist.plugin.zsh
  49. 223  home/.oh-my-zsh/plugins/django/django.plugin.zsh
  50. 2  home/.oh-my-zsh/plugins/encode64/encode64.plugin.zsh
  51. 8  home/.oh-my-zsh/plugins/extract/_extract
  52. 80  home/.oh-my-zsh/plugins/extract/extract.plugin.zsh
  53. 6  home/.oh-my-zsh/plugins/fasd/fasd.plugin.zsh
  54. 34  home/.oh-my-zsh/plugins/gas/_gas
  55. 64  home/.oh-my-zsh/plugins/gem/_gem
  56. 336  home/.oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh
  57. 69  home/.oh-my-zsh/plugins/git/git.plugin.zsh
  58. 40  home/.oh-my-zsh/plugins/github/_github
  59. 70  home/.oh-my-zsh/plugins/github/github.plugin.zsh
  60. 80  home/.oh-my-zsh/plugins/gnu-utils/gnu-utils.plugin.zsh
  61. 26  home/.oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh
  62. 119  home/.oh-my-zsh/plugins/gradle/gradle.plugin.zsh
  63. 54  home/.oh-my-zsh/plugins/grails/grails.plugin.zsh
  64. 158  home/.oh-my-zsh/plugins/heroku/_heroku
  65. 7  home/.oh-my-zsh/plugins/history-substring-search/README
  66. 12  home/.oh-my-zsh/plugins/history-substring-search/history-substring-search.plugin.zsh
  67. 642  home/.oh-my-zsh/plugins/history-substring-search/history-substring-search.zsh
  68. 14  home/.oh-my-zsh/plugins/jake-node/jake-node.plugin.zsh
  69. 22  home/.oh-my-zsh/plugins/jira/jira.plugin.zsh
  70. 4  home/.oh-my-zsh/plugins/jruby/jruby.plugin.zsh
  71. 9  home/.oh-my-zsh/plugins/kate/kate.plugin.zsh
  72. 181  home/.oh-my-zsh/plugins/knife/_knife
  73. 40  home/.oh-my-zsh/plugins/laravel/_artisan
  74. 3  home/.oh-my-zsh/plugins/laravel/laravel.plugin.zsh
  75. 27  home/.oh-my-zsh/plugins/lein/lein.plugin.zsh
  76. 16  home/.oh-my-zsh/plugins/lighthouse/lighthouse.plugin.zsh
  77. 37  home/.oh-my-zsh/plugins/lol/lol.plugin.zsh
  78. 89  home/.oh-my-zsh/plugins/macports/_port
  79. 8  home/.oh-my-zsh/plugins/macports/macports.plugin.zsh
  80. 14  home/.oh-my-zsh/plugins/mercurial/mercurial.plugin.zsh
  81. 6  home/.oh-my-zsh/plugins/mvn/mvn.plugin.zsh
  82. 8  home/.oh-my-zsh/plugins/mysql-macports/mysql-macports.plugin.zsh
  83. 44  home/.oh-my-zsh/plugins/nanoc/_nanoc
  84. 9  home/.oh-my-zsh/plugins/nanoc/nanoc.plugin.zsh
  85. 5  home/.oh-my-zsh/plugins/node/node.plugin.zsh
  86. 1  home/.oh-my-zsh/plugins/npm/npm.plugin.zsh
  87. 5  home/.oh-my-zsh/plugins/nyan/nyan.plugin.zsh
  88. 5  home/.oh-my-zsh/plugins/osx/_man-preview
  89. 99  home/.oh-my-zsh/plugins/osx/osx.plugin.zsh
  90. 148  home/.oh-my-zsh/plugins/per-directory-history/per-directory-history.plugin.zsh
  91. 62  home/.oh-my-zsh/plugins/perl/perl.plugin.zsh
  92. 19  home/.oh-my-zsh/plugins/phing/phing.plugin.zsh
  93. 74  home/.oh-my-zsh/plugins/pip/_pip
  94. 66  home/.oh-my-zsh/plugins/pow/pow.plugin.zsh
  95. 4  home/.oh-my-zsh/plugins/powder/_powder
  96. 8  home/.oh-my-zsh/plugins/python/python.plugin.zsh
  97. 14  home/.oh-my-zsh/plugins/rails/rails.plugin.zsh
  98. 23  home/.oh-my-zsh/plugins/rails3/rails3.plugin.zsh
  99. 6  home/.oh-my-zsh/plugins/rake/rake.plugin.zsh
  100. 57  home/.oh-my-zsh/plugins/rbenv/rbenv.plugin.zsh
  101. 42  home/.oh-my-zsh/plugins/rbfu/rbfu.plugin.zsh
  102. 142  home/.oh-my-zsh/plugins/redis-cli/_redis-cli
  103. 6  home/.oh-my-zsh/plugins/ruby/ruby.plugin.zsh
  104. 147  home/.oh-my-zsh/plugins/rvm/_rvm
  105. 44  home/.oh-my-zsh/plugins/rvm/rvm.plugin.zsh
  106. 54  home/.oh-my-zsh/plugins/screen/screen.plugin.zsh
  107. 64  home/.oh-my-zsh/plugins/sprunge/sprunge.plugin.zsh
  108. 62  home/.oh-my-zsh/plugins/ssh-agent/ssh-agent.plugin.zsh
  109. 9  home/.oh-my-zsh/plugins/sublime/sublime.plugin.zsh
  110. 136  home/.oh-my-zsh/plugins/supervisor/_supervisorctl
  111. 32  home/.oh-my-zsh/plugins/supervisor/_supervisord
  112. 1  home/.oh-my-zsh/plugins/supervisor/supervisor.plugin.zsh
  113. 7  home/.oh-my-zsh/plugins/suse/suse.plugin.zsh
  114. 42  home/.oh-my-zsh/plugins/svn/svn.plugin.zsh
  115. 17  home/.oh-my-zsh/plugins/symfony2/symfony2.plugin.zsh
  116. 248  home/.oh-my-zsh/plugins/taskwarrior/_task
  117. 21  home/.oh-my-zsh/plugins/taskwarrior/taskwarrior.plugin.zsh
  118. 11  home/.oh-my-zsh/plugins/terminalapp/terminalapp.plugin.zsh
  119. 38  home/.oh-my-zsh/plugins/terminitor/_terminitor
  120. 12  home/.oh-my-zsh/plugins/textmate/textmate.plugin.zsh
  121. 4  home/.oh-my-zsh/plugins/thor/_thor
  122. 9  home/.oh-my-zsh/plugins/urltools/urltools.plugin.zsh
  123. 104  home/.oh-my-zsh/plugins/vagrant/_vagrant
  124. 27  home/.oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh
  125. 46  home/.oh-my-zsh/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
  126. 23  home/.oh-my-zsh/plugins/vundle/vundle.plugin.zsh
  127. 29  home/.oh-my-zsh/plugins/wakeonlan/README
  128. 4  home/.oh-my-zsh/plugins/wakeonlan/_wake
  129. 14  home/.oh-my-zsh/plugins/wakeonlan/wakeonlan.plugin.zsh
  130. 16  home/.oh-my-zsh/plugins/yum/yum.plugin.zsh
  131. 41  home/.oh-my-zsh/plugins/zeus/README.md
  132. 58  home/.oh-my-zsh/plugins/zeus/zeus.plugin.zsh
  133. 36  home/.oh-my-zsh/templates/zshrc.zsh-template
  134. 7  home/.oh-my-zsh/themes/3den.zsh-theme
  135. 86  home/.oh-my-zsh/themes/Soliah.zsh-theme
  136. 36  home/.oh-my-zsh/themes/af-magic.zsh-theme
  137. 10  home/.oh-my-zsh/themes/afowler.zsh-theme
  138. 115  home/.oh-my-zsh/themes/agnoster.zsh-theme
  139. 28  home/.oh-my-zsh/themes/alanpeabody.zsh-theme
  140. 29  home/.oh-my-zsh/themes/apple.zsh-theme
  141. 14  home/.oh-my-zsh/themes/arrow.zsh-theme
  142. 8  home/.oh-my-zsh/themes/aussiegeek.zsh-theme
  143. 18  home/.oh-my-zsh/themes/awesomepanda.zsh-theme
  144. 21  home/.oh-my-zsh/themes/bira.zsh-theme
  145. 20  home/.oh-my-zsh/themes/blinks.zsh-theme
  146. 7  home/.oh-my-zsh/themes/candy.zsh-theme
  147. 14  home/.oh-my-zsh/themes/clean.zsh-theme
  148. 6  home/.oh-my-zsh/themes/cloud.zsh-theme
  149. 43  home/.oh-my-zsh/themes/crunch.zsh-theme
  150. 4  home/.oh-my-zsh/themes/cypher.zsh-theme
  151. 32  home/.oh-my-zsh/themes/dallas.zsh-theme
  152. 9  home/.oh-my-zsh/themes/darkblood.zsh-theme
  153. 7  home/.oh-my-zsh/themes/daveverwer.zsh-theme
  154. 56  home/.oh-my-zsh/themes/dieter.zsh-theme
  155. 85  home/.oh-my-zsh/themes/dogenpunk.zsh-theme
  156. 14  home/.oh-my-zsh/themes/dpoggi.zsh-theme
  157. 16  home/.oh-my-zsh/themes/dst.zsh-theme
  158. 19  home/.oh-my-zsh/themes/dstufft.zsh-theme
  159. 8  home/.oh-my-zsh/themes/duellj.zsh-theme
  160. 23  home/.oh-my-zsh/themes/eastwood.zsh-theme
  161. 6  home/.oh-my-zsh/themes/edvardm.zsh-theme
  162. 2  home/.oh-my-zsh/themes/evan.zsh-theme
  163. 5  home/.oh-my-zsh/themes/example.zsh-theme
  164. 39  home/.oh-my-zsh/themes/fino-time.zsh-theme
  165. 46  home/.oh-my-zsh/themes/fino.zsh-theme
  166. 20  home/.oh-my-zsh/themes/fishy.zsh-theme
  167. 19  home/.oh-my-zsh/themes/flazz.zsh-theme
  168. 12  home/.oh-my-zsh/themes/fletcherm.zsh-theme
  169. 8  home/.oh-my-zsh/themes/fox.zsh-theme
  170. 10  home/.oh-my-zsh/themes/frisk.zsh-theme
  171. 14  home/.oh-my-zsh/themes/funky.zsh-theme
  172. 6  home/.oh-my-zsh/themes/fwalch.zsh-theme
  173. 8  home/.oh-my-zsh/themes/gallifrey.zsh-theme
  174. 25  home/.oh-my-zsh/themes/gallois.zsh-theme
  175. 6  home/.oh-my-zsh/themes/garyblessington.zsh-theme
  176. 4  home/.oh-my-zsh/themes/gentoo.zsh-theme
  177. 5  home/.oh-my-zsh/themes/geoffgarside.zsh-theme
  178. 54  home/.oh-my-zsh/themes/gnzh.zsh-theme
  179. 15  home/.oh-my-zsh/themes/gozilla.zsh-theme
  180. 26  home/.oh-my-zsh/themes/humza.zsh-theme
  181. 5  home/.oh-my-zsh/themes/imajes.zsh-theme
  182. 6  home/.oh-my-zsh/themes/jbergantine.zsh-theme
  183. 4  home/.oh-my-zsh/themes/jispwoso.zsh-theme
  184. 38  home/.oh-my-zsh/themes/jnrowe.zsh-theme
  185. 141  home/.oh-my-zsh/themes/jonathan.zsh-theme
  186. 43  home/.oh-my-zsh/themes/josh.zsh-theme
  187. 16  home/.oh-my-zsh/themes/jreese.zsh-theme
  188. 8  home/.oh-my-zsh/themes/jtriley.zsh-theme
  189. 46  home/.oh-my-zsh/themes/juanghurtado.zsh-theme
  190. 12  home/.oh-my-zsh/themes/kardan.zsh-theme
  191. 13  home/.oh-my-zsh/themes/kennethreitz.zsh-theme
  192. 24  home/.oh-my-zsh/themes/kolo.zsh-theme
  193. 50  home/.oh-my-zsh/themes/kphoen.zsh-theme
  194. 6  home/.oh-my-zsh/themes/lambda.zsh-theme
  195. 80  home/.oh-my-zsh/themes/linuxonly
  196. 24  home/.oh-my-zsh/themes/lukerandall.zsh-theme
  197. 15  home/.oh-my-zsh/themes/macovsky-ruby.zsh-theme
  198. 14  home/.oh-my-zsh/themes/macovsky.zsh-theme
  199. 6  home/.oh-my-zsh/themes/maran.zsh-theme
  200. 6  home/.oh-my-zsh/themes/mgutz.zsh-theme
  201. 24  home/.oh-my-zsh/themes/mh.zsh-theme
  202. 23  home/.oh-my-zsh/themes/mikeh.zsh-theme
  203. 8  home/.oh-my-zsh/themes/miloshadzic.zsh-theme
  204. 15  home/.oh-my-zsh/themes/minimal.zsh-theme
  205. 58  home/.oh-my-zsh/themes/mortalscumbag.zsh-theme
  206. 7  home/.oh-my-zsh/themes/mrtazz.zsh-theme
  207. 14  home/.oh-my-zsh/themes/murilasso.zsh-theme
  208. 30  home/.oh-my-zsh/themes/muse.zsh-theme
  209. 7  home/.oh-my-zsh/themes/nanotech.zsh-theme
  210. 21  home/.oh-my-zsh/themes/nebirhos.zsh-theme
  211. 43  home/.oh-my-zsh/themes/nicoulaj.zsh-theme
  212. 4  home/.oh-my-zsh/themes/norm.zsh-theme
  213. 11  home/.oh-my-zsh/themes/obraun.zsh-theme
  214. 14  home/.oh-my-zsh/themes/philips.zsh-theme
  215. 16  home/.oh-my-zsh/themes/pmcgee.zsh-theme
  216. 9  home/.oh-my-zsh/themes/pygmalion.zsh-theme
  217. 15  home/.oh-my-zsh/themes/re5et.zsh-theme
  218. 8  home/.oh-my-zsh/themes/rgm.zsh-theme
  219. 6  home/.oh-my-zsh/themes/risto.zsh-theme
  220. 24  home/.oh-my-zsh/themes/rixius.zsh-theme
  221. 29  home/.oh-my-zsh/themes/rkj-repos.zsh-theme
  222. 8  home/.oh-my-zsh/themes/rkj.zsh-theme
  223. 6  home/.oh-my-zsh/themes/robbyrussell.zsh-theme
  224. 6  home/.oh-my-zsh/themes/sammy.zsh-theme
  225. 6  home/.oh-my-zsh/themes/simple.zsh-theme
  226. 7  home/.oh-my-zsh/themes/skaro.zsh-theme
  227. 91  home/.oh-my-zsh/themes/smt.zsh-theme
  228. 48  home/.oh-my-zsh/themes/sorin.zsh-theme
  229. 13  home/.oh-my-zsh/themes/sporty_256.zsh-theme
  230. 100  home/.oh-my-zsh/themes/steeef.zsh-theme
  231. 26  home/.oh-my-zsh/themes/sunaku.zsh-theme
  232. 96  home/.oh-my-zsh/themes/sunrise.zsh-theme
  233. 24  home/.oh-my-zsh/themes/superjarin.zsh-theme
  234. 30  home/.oh-my-zsh/themes/suvash.zsh-theme
  235. 27  home/.oh-my-zsh/themes/takashiyoshida.zsh-theme
  236. 9  home/.oh-my-zsh/themes/terminalparty.zsh-theme
  237. 16  home/.oh-my-zsh/themes/theunraveler.zsh-theme
  238. 15  home/.oh-my-zsh/themes/tjkirch.zsh-theme
  239. 12  home/.oh-my-zsh/themes/tonotdo.zsh-theme
  240. 95  home/.oh-my-zsh/themes/trapd00r.zsh-theme
  241. 107  home/.oh-my-zsh/themes/wedisagree.zsh-theme
  242. 7  home/.oh-my-zsh/themes/wezm+.zsh-theme
  243. 7  home/.oh-my-zsh/themes/wezm.zsh-theme
  244. 5  home/.oh-my-zsh/themes/wuffers.zsh-theme
  245. 6  home/.oh-my-zsh/themes/xiong-chiamiov-plus.zsh-theme
  246. 6  home/.oh-my-zsh/themes/xiong-chiamiov.zsh-theme
  247. 15  home/.oh-my-zsh/themes/zhann.zsh-theme
  248. 46  home/.oh-my-zsh/tools/check_for_upgrade.sh
  249. 39  home/.oh-my-zsh/tools/install.sh
  250. 161  home/.oh-my-zsh/tools/require_tool.sh
  251. 96  home/.oh-my-zsh/tools/theme_chooser.sh
  252. 20  home/.oh-my-zsh/tools/uninstall.sh
  253. 19  home/.oh-my-zsh/tools/upgrade.sh
3  .gitmodules
... ...
@@ -1,3 +0,0 @@
1  
-[submodule "home/.oh-my-zsh"]
2  
-	path = home/.oh-my-zsh
3  
-	url = git://github.com/robbyrussell/oh-my-zsh.git
1  home/.oh-my-zsh
... ...
@@ -1 +0,0 @@
1  
-Subproject commit b9f02088a737f045f375935dade030812f7d7809
9  home/.oh-my-zsh/.gitignore
... ...
@@ -0,0 +1,9 @@
  1
+locals.zsh
  2
+log/.zsh_history
  3
+projects.zsh
  4
+!custom/*
  5
+custom/example
  6
+custom/example.zsh
  7
+*.swp
  8
+!custom/example.zshcache
  9
+cache/
86  home/.oh-my-zsh/README.textile
Source Rendered
... ...
@@ -0,0 +1,86 @@
  1
+A handful of functions, auto-complete helpers, and stuff that makes you shout...
  2
+
  3
+
  4
+bq. "OH MY ZSHELL!"
  5
+
  6
+h2. Setup
  7
+
  8
+@oh-my-zsh@ should work with any recent release of "zsh":http://www.zsh.org/, the minimum recommended version is 4.3.9.
  9
+
  10
+h3. The automatic installer... (do you trust me?)
  11
+
  12
+You can install this via the command line with either `curl` or `wget`.
  13
+
  14
+h4. via `curl`
  15
+
  16
+@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh@
  17
+
  18
+h4. via `wget`
  19
+
  20
+@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
  21
+
  22
+h3. The manual way
  23
+
  24
+
  25
+1. Clone the repository
  26
+
  27
+  @git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@
  28
+
  29
+2. Create a new zsh config by copying the zsh template we've provided.
  30
+
  31
+  *NOTE*: If you already have a ~/.zshrc file, you should back it up. @cp ~/.zshrc ~/.zshrc.orig@ in case you want to go back to your original settings.
  32
+
  33
+  @cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc@
  34
+
  35
+3. Set zsh as your default shell:
  36
+
  37
+  @chsh -s /bin/zsh@
  38
+
  39
+4. Start / restart zsh (open a new terminal is easy enough...)
  40
+
  41
+h3. Problems?
  42
+
  43
+You _might_ need to modify your PATH in ~/.zshrc if you're not able to find some commands after switching to _Oh My Zsh_.
  44
+
  45
+h2. Usage
  46
+
  47
+* enable the plugins you want in your @~/.zshrc@ (take a look at @plugins/@ to see what's possible)
  48
+** example: @plugins=(git osx ruby)@
  49
+* Theme support: Change the @ZSH_THEME@ environment variable in @~/.zshrc@.
  50
+** Take a look at the "current themes":https://wiki.github.com/robbyrussell/oh-my-zsh/themes that come bundled with _Oh My Zsh_.
  51
+* much much more...  take a look at @lib/@ what _Oh My Zsh_ offers...
  52
+
  53
+h2. Useful
  54
+
  55
+the "refcard":http://www.bash2zsh.com/zsh_refcard/refcard.pdf is pretty tasty for tips.
  56
+
  57
+h3. Customization
  58
+
  59
+If you want to override any of the default behavior, just add a new file (ending in @.zsh@) into the @custom/@ directory.
  60
+If you have many functions which go well together you can put them as a *.plugin.zsh file in the @custom/plugins/@ directory and then enable this plugin.
  61
+If you would like to override the functionality of a plugin distributed with oh-my-zsh, create a plugin of the same name in the @custom/plugins/@ directory and it will be loaded instead of the one in @plugins/@.
  62
+
  63
+
  64
+h3. Uninstalling
  65
+
  66
+If you want to uninstall it, just run @uninstall_oh_my_zsh@ from the command line and it'll remove itself and revert you to bash (or your previous zsh config).
  67
+
  68
+h2. Help out!
  69
+
  70
+I'm far from being a zsh-expert and suspect there are many ways to improve. If you have ideas on how to make the configuration easier to maintain (and faster), don't hesitate to fork and send pull requests!
  71
+
  72
+h3. (Don't) Send us your theme! (for now)
  73
+
  74
+-I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.-
  75
+
  76
+We have enough themes for the time being. Please fork the project and add on in there, you can let people know how to grab it from there. 
  77
+
  78
+
  79
+
  80
+h2. Contributors
  81
+
  82
+This project wouldn't exist without all of our awesome users and contributors.
  83
+
  84
+* "View our growing list of contributors":https://github.com/robbyrussell/oh-my-zsh/contributors
  85
+
  86
+Thank you so much!
63  home/.oh-my-zsh/custom/aliases.zsh
... ...
@@ -0,0 +1,63 @@
  1
+function ruby_or_irb() {
  2
+  if [[ "$1" == "" ]]; then
  3
+    irb
  4
+  else
  5
+    ruby "$@"
  6
+  fi
  7
+}
  8
+
  9
+function kill_all_jobs() {
  10
+  jobs -p |
  11
+  sed 's/^\[[0-9]*\][ |+|-]*\([0-9]*\).*$/\1/' |
  12
+  xargs -n1 kill $1
  13
+}
  14
+
  15
+# alias ruby=ruby_or_irb
  16
+alias r=rails
  17
+alias p=passenger
  18
+function git(){hub "$@"}
  19
+alias :e=vim
  20
+alias :q=exit
  21
+
  22
+# GIT ALIASES
  23
+alias glog='git log --graph --pretty=format:"%h %aN %Cred%d %Cblue%s"'
  24
+alias gsp='git stash ; git pull --rebase ; git stash pop'
  25
+alias gpp='git pull ; git push'
  26
+alias gdt='git difftool'
  27
+
  28
+alias slrn="slrn -n"
  29
+alias man='LC_ALL=C LANG=C man'
  30
+alias f=finger
  31
+alias ll='ls -al'
  32
+alias ls='ls -G '
  33
+alias offlineimap-tty='offlineimap -u TTY.TTYUI'
  34
+alias hnb-partecs='hnb $HOME/partecs/partecs-hnb.xml'
  35
+alias rest2html-css='rst2html --embed-stylesheet --stylesheet-path=/usr/share/python-docutils/s5_html/themes/default/print.css'
  36
+alias vim='/Applications/MacVim.app/Contents/MacOS/Vim'
  37
+
  38
+autoload -U edit-command-line
  39
+zle -N edit-command-line
  40
+bindkey -M vicmd v edit-command-line
  41
+
  42
+# hub tab-completion script for zsh.
  43
+# This script complements the completion script that ships with git.
  44
+#
  45
+# vim: ft=zsh sw=2 ts=2 et
  46
+
  47
+# Autoload _git completion functions
  48
+if declare -f _git > /dev/null; then
  49
+  _git
  50
+fi
  51
+
  52
+if declare -f _git_commands > /dev/null; then
  53
+  _hub_commands=(
  54
+    'alias:show shell instructions for wrapping git'
  55
+    'pull-request:open a pull request on GitHub'
  56
+    'fork:fork origin repo on GitHub'
  57
+    'create:create new repo on GitHub for the current project'
  58
+    'browse:browse the project on GitHub'
  59
+    'compare:open GitHub compare view'
  60
+  )
  61
+  # Extend the '_git_commands' function with hub commands
  62
+  eval "$(declare -f _git_commands | sed -e 's/base_commands=(/base_commands=(${_hub_commands} /')"
  63
+fi
1  home/.oh-my-zsh/custom/keys.zsh
... ...
@@ -0,0 +1 @@
  1
+export BINGAPP=16E70A804D578CA2104ED3261E73C09823ED64C4
8  home/.oh-my-zsh/custom/makego.zsh
... ...
@@ -0,0 +1,8 @@
  1
+makego() {
  2
+  basename="`echo $1 | sed "s/\.go//"`"
  3
+
  4
+  6g $1
  5
+  6l -o $basename.out $basename.6
  6
+
  7
+  echo "Output: $basename.out"
  8
+}
3  home/.oh-my-zsh/custom/paths.zsh
... ...
@@ -0,0 +1,3 @@
  1
+rails=~/Code/Rails
  2
+ruby=~/Code/Ruby
  3
+projects=~/Code/Projects
10  home/.oh-my-zsh/custom/stevie.zsh
... ...
@@ -0,0 +1,10 @@
  1
+# takes a server and a process to restart
  2
+restart_remote() {
  3
+  echo "Restarting $2 on $1..."
  4
+  ssh -t $1 "sudo restart $2"
  5
+}
  6
+
  7
+# restarts stevie
  8
+restart_stevie() {
  9
+  restart_remote 'webby-one' 'stevie-bot'
  10
+}
24  home/.oh-my-zsh/lib/aliases.zsh
... ...
@@ -0,0 +1,24 @@
  1
+# Push and pop directories on directory stack
  2
+alias pu='pushd'
  3
+alias po='popd'
  4
+
  5
+# Basic directory operations
  6
+alias ...='cd ../..'
  7
+alias -- -='cd -'
  8
+
  9
+# Super user
  10
+alias _='sudo'
  11
+
  12
+#alias g='grep -in'
  13
+
  14
+# Show history
  15
+alias history='fc -l 1'
  16
+
  17
+# List direcory contents
  18
+alias lsa='ls -lah'
  19
+alias l='ls -la'
  20
+alias ll='ls -l'
  21
+alias sl=ls # often screw this up
  22
+
  23
+alias afind='ack-grep -il'
  24
+
72  home/.oh-my-zsh/lib/completion.zsh
... ...
@@ -0,0 +1,72 @@
  1
+# fixme - the load process here seems a bit bizarre
  2
+
  3
+unsetopt menu_complete   # do not autoselect the first completion entry
  4
+unsetopt flowcontrol
  5
+setopt auto_menu         # show completion menu on succesive tab press
  6
+setopt complete_in_word
  7
+setopt always_to_end
  8
+
  9
+WORDCHARS=''
  10
+
  11
+zmodload -i zsh/complist
  12
+
  13
+## case-insensitive (all),partial-word and then substring completion
  14
+if [ "x$CASE_SENSITIVE" = "xtrue" ]; then
  15
+  zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
  16
+  unset CASE_SENSITIVE
  17
+else
  18
+  zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
  19
+fi
  20
+
  21
+zstyle ':completion:*' list-colors ''
  22
+
  23
+# should this be in keybindings?
  24
+bindkey -M menuselect '^o' accept-and-infer-next-history
  25
+
  26
+zstyle ':completion:*:*:*:*:*' menu select
  27
+zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
  28
+zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
  29
+
  30
+# disable named-directories autocompletion
  31
+zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
  32
+cdpath=(.)
  33
+
  34
+# use /etc/hosts and known_hosts for hostname completion
  35
+[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(</etc/ssh/ssh_known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
  36
+[ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
  37
+[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
  38
+hosts=(
  39
+  "$_global_ssh_hosts[@]"
  40
+  "$_ssh_hosts[@]"
  41
+  "$_etc_hosts[@]"
  42
+  "$HOST"
  43
+  localhost
  44
+)
  45
+zstyle ':completion:*:hosts' hosts $hosts
  46
+
  47
+# Use caching so that commands like apt and dpkg complete are useable
  48
+zstyle ':completion::complete:*' use-cache 1
  49
+zstyle ':completion::complete:*' cache-path $ZSH/cache/
  50
+
  51
+# Don't complete uninteresting users
  52
+zstyle ':completion:*:*:*:users' ignored-patterns \
  53
+        adm amanda apache avahi beaglidx bin cacti canna clamav daemon \
  54
+        dbus distcache dovecot fax ftp games gdm gkrellmd gopher \
  55
+        hacluster haldaemon halt hsqldb ident junkbust ldap lp mail \
  56
+        mailman mailnull mldonkey mysql nagios \
  57
+        named netdump news nfsnobody nobody nscd ntp nut nx openvpn \
  58
+        operator pcap postfix postgres privoxy pulse pvm quagga radvd \
  59
+        rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs
  60
+
  61
+# ... unless we really want to.
  62
+zstyle '*' single-ignored show
  63
+
  64
+if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then
  65
+  expand-or-complete-with-dots() {
  66
+    echo -n "\e[31m......\e[0m"
  67
+    zle expand-or-complete
  68
+    zle redisplay
  69
+  }
  70
+  zle -N expand-or-complete-with-dots
  71
+  bindkey "^I" expand-or-complete-with-dots
  72
+fi
10  home/.oh-my-zsh/lib/correction.zsh
... ...
@@ -0,0 +1,10 @@
  1
+setopt correct_all
  2
+
  3
+alias man='nocorrect man'
  4
+alias mv='nocorrect mv'
  5
+alias mysql='nocorrect mysql'
  6
+alias mkdir='nocorrect mkdir'
  7
+alias gist='nocorrect gist'
  8
+alias heroku='nocorrect heroku'
  9
+alias ebuild='nocorrect ebuild'
  10
+alias hpodder='nocorrect hpodder'
44  home/.oh-my-zsh/lib/directories.zsh
... ...
@@ -0,0 +1,44 @@
  1
+# Changing/making/removing directory
  2
+setopt auto_name_dirs
  3
+setopt auto_pushd
  4
+setopt pushd_ignore_dups
  5
+
  6
+alias ..='cd ..'
  7
+alias cd..='cd ..'
  8
+alias cd...='cd ../..'
  9
+alias cd....='cd ../../..'
  10
+alias cd.....='cd ../../../..'
  11
+alias cd/='cd /'
  12
+
  13
+alias 1='cd -'
  14
+alias 2='cd +2'
  15
+alias 3='cd +3'
  16
+alias 4='cd +4'
  17
+alias 5='cd +5'
  18
+alias 6='cd +6'
  19
+alias 7='cd +7'
  20
+alias 8='cd +8'
  21
+alias 9='cd +9'
  22
+
  23
+cd () {
  24
+  if   [[ "x$*" == "x..." ]]; then
  25
+    cd ../..
  26
+  elif [[ "x$*" == "x...." ]]; then
  27
+    cd ../../..
  28
+  elif [[ "x$*" == "x....." ]]; then
  29
+    cd ../../..
  30
+  elif [[ "x$*" == "x......" ]]; then
  31
+    cd ../../../..
  32
+  else
  33
+    builtin cd "$@"
  34
+  fi
  35
+}
  36
+
  37
+alias md='mkdir -p'
  38
+alias rd=rmdir
  39
+alias d='dirs -v | head -10'
  40
+
  41
+# mkdir & cd to it
  42
+function mcd() { 
  43
+  mkdir -p "$1" && cd "$1"; 
  44
+}
3  home/.oh-my-zsh/lib/edit-command-line.zsh
... ...
@@ -0,0 +1,3 @@
  1
+autoload -U edit-command-line
  2
+zle -N edit-command-line
  3
+bindkey '\C-x\C-e' edit-command-line
17  home/.oh-my-zsh/lib/functions.zsh
... ...
@@ -0,0 +1,17 @@
  1
+function zsh_stats() {
  2
+  history | awk '{print $2}' | sort | uniq -c | sort -rn | head
  3
+}
  4
+
  5
+function uninstall_oh_my_zsh() {
  6
+  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh
  7
+}
  8
+
  9
+function upgrade_oh_my_zsh() {
  10
+  /usr/bin/env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh
  11
+}
  12
+
  13
+function take() {
  14
+  mkdir -p $1
  15
+  cd $1
  16
+}
  17
+
96  home/.oh-my-zsh/lib/git.zsh
... ...
@@ -0,0 +1,96 @@
  1
+# get the name of the branch we are on
  2
+function git_prompt_info() {
  3
+  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  4
+  echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
  5
+}
  6
+
  7
+
  8
+# Checks if working tree is dirty
  9
+parse_git_dirty() {
  10
+  local SUBMODULE_SYNTAX=''
  11
+  if [[ $POST_1_7_2_GIT -gt 0 ]]; then
  12
+        SUBMODULE_SYNTAX="--ignore-submodules=dirty"
  13
+  fi
  14
+  if [[ -n $(git status -s ${SUBMODULE_SYNTAX}  2> /dev/null) ]]; then
  15
+    echo "$ZSH_THEME_GIT_PROMPT_DIRTY"
  16
+  else
  17
+    echo "$ZSH_THEME_GIT_PROMPT_CLEAN"
  18
+  fi
  19
+}
  20
+
  21
+
  22
+# Checks if there are commits ahead from remote
  23
+function git_prompt_ahead() {
  24
+  if $(echo "$(git log origin/$(current_branch)..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then
  25
+    echo "$ZSH_THEME_GIT_PROMPT_AHEAD"
  26
+  fi
  27
+}
  28
+
  29
+# Formats prompt string for current git commit short SHA
  30
+function git_prompt_short_sha() {
  31
+  SHA=$(git rev-parse --short HEAD 2> /dev/null) && echo "$ZSH_THEME_GIT_PROMPT_SHA_BEFORE$SHA$ZSH_THEME_GIT_PROMPT_SHA_AFTER"
  32
+}
  33
+
  34
+# Formats prompt string for current git commit long SHA
  35
+function git_prompt_long_sha() {
  36
+  SHA=$(git rev-parse HEAD 2> /dev/null) && echo "$ZSH_THEME_GIT_PROMPT_SHA_BEFORE$SHA$ZSH_THEME_GIT_PROMPT_SHA_AFTER"
  37
+}
  38
+
  39
+# Get the status of the working tree
  40
+git_prompt_status() {
  41
+  INDEX=$(git status --porcelain 2> /dev/null)
  42
+  STATUS=""
  43
+  if $(echo "$INDEX" | grep '^?? ' &> /dev/null); then
  44
+    STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS"
  45
+  fi
  46
+  if $(echo "$INDEX" | grep '^A  ' &> /dev/null); then
  47
+    STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS"
  48
+  elif $(echo "$INDEX" | grep '^M  ' &> /dev/null); then
  49
+    STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS"
  50
+  fi
  51
+  if $(echo "$INDEX" | grep '^ M ' &> /dev/null); then
  52
+    STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
  53
+  elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then
  54
+    STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
  55
+  elif $(echo "$INDEX" | grep '^ T ' &> /dev/null); then
  56
+    STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS"
  57
+  fi
  58
+  if $(echo "$INDEX" | grep '^R  ' &> /dev/null); then
  59
+    STATUS="$ZSH_THEME_GIT_PROMPT_RENAMED$STATUS"
  60
+  fi
  61
+  if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then
  62
+    STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
  63
+  elif $(echo "$INDEX" | grep '^AD ' &> /dev/null); then
  64
+    STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS"
  65
+  fi
  66
+  if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then
  67
+    STATUS="$ZSH_THEME_GIT_PROMPT_UNMERGED$STATUS"
  68
+  fi
  69
+  echo $STATUS
  70
+}
  71
+
  72
+#compare the provided version of git to the version installed and on path
  73
+#prints 1 if input version <= installed version
  74
+#prints -1 otherwise 
  75
+function git_compare_version() {
  76
+  local INPUT_GIT_VERSION=$1;
  77
+  local INSTALLED_GIT_VERSION
  78
+  INPUT_GIT_VERSION=(${(s/./)INPUT_GIT_VERSION});
  79
+  INSTALLED_GIT_VERSION=($(git --version));
  80
+  INSTALLED_GIT_VERSION=(${(s/./)INSTALLED_GIT_VERSION[3]});
  81
+
  82
+  for i in {1..3}; do
  83
+    if [[ $INSTALLED_GIT_VERSION[$i] -lt $INPUT_GIT_VERSION[$i] ]]; then
  84
+      echo -1
  85
+      return 0
  86
+    fi
  87
+  done
  88
+  echo 1
  89
+}
  90
+
  91
+#this is unlikely to change so make it all statically assigned
  92
+POST_1_7_2_GIT=$(git_compare_version "1.7.2")
  93
+#clean up the namespace slightly by removing the checker function
  94
+unset -f git_compare_version
  95
+
  96
+
6  home/.oh-my-zsh/lib/grep.zsh
... ...
@@ -0,0 +1,6 @@
  1
+#
  2
+# Color grep results
  3
+# Examples: http://rubyurl.com/ZXv
  4
+#
  5
+export GREP_OPTIONS='--color=auto'
  6
+export GREP_COLOR='1;32'
13  home/.oh-my-zsh/lib/history.zsh
... ...
@@ -0,0 +1,13 @@
  1
+## Command history configuration
  2
+HISTFILE=$HOME/.zsh_history
  3
+HISTSIZE=10000
  4
+SAVEHIST=10000
  5
+
  6
+setopt append_history
  7
+setopt extended_history
  8
+setopt hist_expire_dups_first
  9
+setopt hist_ignore_dups # ignore duplication command history list
  10
+setopt hist_ignore_space
  11
+setopt hist_verify
  12
+setopt inc_append_history
  13
+setopt share_history # share command history data
50  home/.oh-my-zsh/lib/key-bindings.zsh
... ...
@@ -0,0 +1,50 @@
  1
+# TODO: Explain what some of this does..
  2
+
  3
+bindkey -e
  4
+bindkey '\ew' kill-region
  5
+bindkey -s '\el' "ls\n"
  6
+bindkey '^r' history-incremental-search-backward
  7
+bindkey "^[[5~" up-line-or-history
  8
+bindkey "^[[6~" down-line-or-history
  9
+
  10
+# make search up and down work, so partially type and hit up/down to find relevant stuff
  11
+bindkey '^[[A' up-line-or-search
  12
+bindkey '^[[B' down-line-or-search
  13
+
  14
+bindkey "^[[H" beginning-of-line
  15
+bindkey "^[[1~" beginning-of-line
  16
+bindkey "^[OH" beginning-of-line
  17
+bindkey "^[[F"  end-of-line
  18
+bindkey "^[[4~" end-of-line
  19
+bindkey "^[OF" end-of-line
  20
+bindkey ' ' magic-space    # also do history expansion on space
  21
+
  22
+bindkey "^[[1;5C" forward-word
  23
+bindkey "^[[1;5D" backward-word
  24
+
  25
+bindkey '^[[Z' reverse-menu-complete
  26
+
  27
+# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
  28
+bindkey '^?' backward-delete-char
  29
+bindkey "^[[3~" delete-char
  30
+bindkey "^[3;5~" delete-char
  31
+bindkey "\e[3~" delete-char
  32
+
  33
+# consider emacs keybindings:
  34
+
  35
+#bindkey -e  ## emacs key bindings
  36
+#
  37
+#bindkey '^[[A' up-line-or-search
  38
+#bindkey '^[[B' down-line-or-search
  39
+#bindkey '^[^[[C' emacs-forward-word
  40
+#bindkey '^[^[[D' emacs-backward-word
  41
+#
  42
+#bindkey -s '^X^Z' '%-^M'
  43
+#bindkey '^[e' expand-cmd-path
  44
+#bindkey '^[^I' reverse-menu-complete
  45
+#bindkey '^X^N' accept-and-infer-next-history
  46
+#bindkey '^W' kill-region
  47
+#bindkey '^I' complete-word
  48
+## Fix weird sequence that rxvt produces
  49
+#bindkey -s '^[[Z' '\t'
  50
+#
13  home/.oh-my-zsh/lib/misc.zsh
... ...
@@ -0,0 +1,13 @@
  1
+## smart urls
  2
+autoload -U url-quote-magic
  3
+zle -N self-insert url-quote-magic
  4
+
  5
+## file rename magick
  6
+bindkey "^[m" copy-prev-shell-word
  7
+
  8
+## jobs
  9
+setopt long_list_jobs
  10
+
  11
+## pager
  12
+export PAGER="less -R"
  13
+export LC_CTYPE=$LANG
5  home/.oh-my-zsh/lib/rvm.zsh
... ...
@@ -0,0 +1,5 @@
  1
+# get the name of the branch we are on
  2
+function rvm_prompt_info() {
  3
+  ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
  4
+  [[ ! -z $ruby_version ]] && echo "($ruby_version)"
  5
+}
28  home/.oh-my-zsh/lib/spectrum.zsh
... ...
@@ -0,0 +1,28 @@
  1
+#! /bin/zsh
  2
+# A script to make using 256 colors in zsh less painful.
  3
+# P.C. Shyamshankar <sykora@lucentbeing.com>
  4
+# Copied from http://github.com/sykora/etc/blob/master/zsh/functions/spectrum/
  5
+
  6
+typeset -Ag FX FG BG
  7
+
  8
+FX=(
  9
+    reset     "%{%}"
  10
+    bold      "%{%}" no-bold      "%{%}"
  11
+    italic    "%{%}" no-italic    "%{%}"
  12
+    underline "%{%}" no-underline "%{%}"
  13
+    blink     "%{%}" no-blink     "%{%}"
  14
+    reverse   "%{%}" no-reverse   "%{%}"
  15
+)
  16
+
  17
+for color in {000..255}; do
  18
+    FG[$color]="%{[38;5;${color}m%}"
  19
+    BG[$color]="%{[48;5;${color}m%}"
  20
+done
  21
+
  22
+# Show all 256 colors with color number
  23
+function spectrum_ls() {
  24
+  for code in {000..255}; do
  25
+    print -P -- "$code: %F{$code}Test%f"
  26
+  done
  27
+}
  28
+
35  home/.oh-my-zsh/lib/termsupport.zsh
... ...
@@ -0,0 +1,35 @@
  1
+#usage: title short_tab_title looooooooooooooooooooooggggggg_windows_title
  2
+#http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#ss3.1
  3
+#Fully support screen, iterm, and probably most modern xterm and rxvt
  4
+#Limited support for Apple Terminal (Terminal can't set window or tab separately)
  5
+function title {
  6
+  if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then
  7
+    return
  8
+  fi
  9
+  if [[ "$TERM" == screen* ]]; then
  10
+    print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
  11
+  elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
  12
+    print -Pn "\e]2;$2:q\a" #set window name
  13
+    print -Pn "\e]1;$1:q\a" #set icon (=tab) name (will override window name on broken terminal)
  14
+  fi
  15
+}
  16
+
  17
+ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD
  18
+ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~"
  19
+
  20
+#Appears when you have the prompt
  21
+function omz_termsupport_precmd {
  22
+  title $ZSH_THEME_TERM_TAB_TITLE_IDLE $ZSH_THEME_TERM_TITLE_IDLE
  23
+}
  24
+
  25
+#Appears at the beginning of (and during) of command execution
  26
+function omz_termsupport_preexec {
  27
+  emulate -L zsh
  28
+  setopt extended_glob
  29
+  local CMD=${1[(wr)^(*=*|sudo|ssh|-*)]} #cmd name only, or if this is sudo or ssh, the next cmd
  30
+  title "$CMD" "%100>...>$2%<<"
  31
+}
  32
+
  33
+autoload -U add-zsh-hook
  34
+add-zsh-hook precmd  omz_termsupport_precmd
  35
+add-zsh-hook preexec omz_termsupport_preexec
36  home/.oh-my-zsh/lib/theme-and-appearance.zsh
... ...
@@ -0,0 +1,36 @@
  1
+# ls colors
  2
+autoload colors; colors;
  3
+export LSCOLORS="Gxfxcxdxbxegedabagacad"
  4
+#export LS_COLORS
  5
+
  6
+# Enable ls colors
  7
+if [ "$DISABLE_LS_COLORS" != "true" ]
  8
+then
  9
+  # Find the option for using colors in ls, depending on the version: Linux or BSD
  10
+  ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
  11
+fi
  12
+
  13
+#setopt no_beep
  14
+setopt auto_cd
  15
+setopt multios
  16
+setopt cdablevarS
  17
+
  18
+if [[ x$WINDOW != x ]]
  19
+then
  20
+    SCREEN_NO="%B$WINDOW%b "
  21
+else
  22
+    SCREEN_NO=""
  23
+fi
  24
+
  25
+# Apply theming defaults
  26
+PS1="%n@%m:%~%# "
  27
+
  28
+# git theming default: Variables for theming the git info prompt
  29
+ZSH_THEME_GIT_PROMPT_PREFIX="git:("         # Prefix at the very beginning of the prompt, before the branch name
  30
+ZSH_THEME_GIT_PROMPT_SUFFIX=")"             # At the very end of the prompt
  31
+ZSH_THEME_GIT_PROMPT_DIRTY="*"              # Text to display if the branch is dirty
  32
+ZSH_THEME_GIT_PROMPT_CLEAN=""               # Text to display if the branch is clean
  33
+
  34
+# Setup the prompt with pretty colors
  35
+setopt prompt_subst
  36
+
4  home/.oh-my-zsh/log/.easter-egg
... ...
@@ -0,0 +1,4 @@
  1
+This file is only here so that Git will keep a log directory as .gitignore is ignoring all the log files within it.
  2
+
  3
+feel free to add love notes for people here.
  4
+
75  home/.oh-my-zsh/oh-my-zsh.sh
... ...
@@ -0,0 +1,75 @@
  1
+# Check for updates on initial load...
  2
+if [ "$DISABLE_AUTO_UPDATE" != "true" ]
  3
+then
  4
+  /usr/bin/env ZSH=$ZSH zsh $ZSH/tools/check_for_upgrade.sh
  5
+fi
  6
+
  7
+# Initializes Oh My Zsh
  8
+
  9
+# add a function path
  10
+fpath=($ZSH/functions $ZSH/completions $fpath)
  11
+
  12
+# Load all of the config files in ~/oh-my-zsh that end in .zsh
  13
+# TIP: Add files you don't want in git to .gitignore
  14
+for config_file ($ZSH/lib/*.zsh) source $config_file
  15
+
  16
+# Set ZSH_CUSTOM to the path where your custom config files
  17
+# and plugins exists, or else we will use the default custom/
  18
+if [[ -z "$ZSH_CUSTOM" ]]; then
  19
+    ZSH_CUSTOM="$ZSH/custom"
  20
+fi
  21
+
  22
+
  23
+is_plugin() {
  24
+  local base_dir=$1
  25
+  local name=$2
  26
+  test -f $base_dir/plugins/$name/$name.plugin.zsh \
  27
+    || test -f $base_dir/plugins/$name/_$name
  28
+}
  29
+# Add all defined plugins to fpath. This must be done
  30
+# before running compinit.
  31
+for plugin ($plugins); do
  32
+  if is_plugin $ZSH_CUSTOM $plugin; then
  33
+    fpath=($ZSH_CUSTOM/plugins/$plugin $fpath)
  34
+  elif is_plugin $ZSH $plugin; then
  35
+    fpath=($ZSH/plugins/$plugin $fpath)
  36
+  fi
  37
+done
  38
+
  39
+# Load and run compinit
  40
+autoload -U compinit
  41
+compinit -i
  42
+
  43
+
  44
+# Load all of the plugins that were defined in ~/.zshrc
  45
+for plugin ($plugins); do
  46
+  if [ -f $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh ]; then
  47
+    source $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh
  48
+  elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then
  49
+    source $ZSH/plugins/$plugin/$plugin.plugin.zsh
  50
+  fi
  51
+done
  52
+
  53
+# Load all of your custom configurations from custom/
  54
+for config_file ($ZSH_CUSTOM/*.zsh(N)) source $config_file
  55
+
  56
+# Load the theme
  57
+if [ "$ZSH_THEME" = "random" ]
  58
+then
  59
+  themes=($ZSH/themes/*zsh-theme)
  60
+  N=${#themes[@]}
  61
+  ((N=(RANDOM%N)+1))
  62
+  RANDOM_THEME=${themes[$N]}
  63
+  source "$RANDOM_THEME"
  64
+  echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..."
  65
+else
  66
+  if [ ! "$ZSH_THEME" = ""  ]
  67
+  then
  68
+    if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]
  69
+    then
  70
+      source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme"
  71
+    else
  72
+      source "$ZSH/themes/$ZSH_THEME.zsh-theme"
  73
+    fi
  74
+  fi
  75
+fi
26  home/.oh-my-zsh/plugins/ant/ant.plugin.zsh
... ...
@@ -0,0 +1,26 @@
  1
+stat -f%m . > /dev/null 2>&1
  2
+if [ "$?" = 0 ]; then
  3
+	stat_cmd=(stat -f%m)
  4
+else
  5
+	stat_cmd=(stat -L --format=%Y)
  6
+fi
  7
+
  8
+_ant_does_target_list_need_generating () {
  9
+  if [ ! -f .ant_targets ]; then return 0;
  10
+  else
  11
+    accurate=$($stat_cmd .ant_targets)
  12
+    changed=$($stat_cmd build.xml)
  13
+    return $(expr $accurate '>=' $changed)
  14
+  fi
  15
+}
  16
+
  17
+_ant () {
  18
+  if [ -f build.xml ]; then
  19
+    if _ant_does_target_list_need_generating; then
  20
+     sed -n '/<target/s/<target.*name="\([^"]*\).*$/\1/p' build.xml > .ant_targets
  21
+    fi
  22
+    compadd `cat .ant_targets`
  23
+  fi
  24
+}
  25
+
  26
+compdef _ant ant
6  home/.oh-my-zsh/plugins/apache2-macports/apache2-macports.plugin.zsh
... ...
@@ -0,0 +1,6 @@
  1
+# commands to control local apache2 server installation
  2
+# paths are for osx installation via macports
  3
+
  4
+alias apache2start='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start'
  5
+alias apache2stop='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop'
  6
+alias apache2restart='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart'
77  home/.oh-my-zsh/plugins/archlinux/archlinux.plugin.zsh
... ...
@@ -0,0 +1,77 @@
  1
+# Archlinux zsh aliases and functions
  2
+# Usage is also described at https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins
  3
+
  4
+# Look for yaourt, and add some useful functions if we have it.
  5
+if [[ -x `which yaourt` ]]; then
  6
+  upgrade () {
  7
+    yaourt -Syu
  8
+  }
  9
+  alias yaconf='yaourt -C'        # Fix all configuration files with vimdiff
  10
+  # Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
  11
+  alias yaupg='yaourt -Syu'        # Synchronize with repositories before upgrading packages that are out of date on the local system.
  12
+  alias yasu='yaourt --sucre'      # Same as yaupg, but without confirmation
  13
+  alias yain='yaourt -S'           # Install specific package(s) from the repositories
  14
+  alias yains='yaourt -U'          # Install specific package not from the repositories but from a file 
  15
+  alias yare='yaourt -R'           # Remove the specified package(s), retaining its configuration(s) and required dependencies
  16
+  alias yarem='yaourt -Rns'        # Remove the specified package(s), its configuration(s) and unneeded dependencies
  17
+  alias yarep='yaourt -Si'         # Display information about a given package in the repositories
  18
+  alias yareps='yaourt -Ss'        # Search for package(s) in the repositories
  19
+  alias yaloc='yaourt -Qi'         # Display information about a given package in the local database
  20
+  alias yalocs='yaourt -Qs'        # Search for package(s) in the local database
  21
+  # Additional yaourt alias examples
  22
+  if [[ -x `which abs` ]]; then
  23
+    alias yaupd='yaourt -Sy && sudo abs'   # Update and refresh the local package and ABS databases against repositories
  24
+  else
  25
+    alias yaupd='yaourt -Sy'               # Update and refresh the local package and ABS databases against repositories
  26
+  fi
  27
+  alias yainsd='yaourt -S --asdeps'        # Install given package(s) as dependencies of another package
  28
+  alias yamir='yaourt -Syy'                # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
  29
+else
  30
+ upgrade() {
  31
+   sudo pacman -Syu
  32
+ }
  33
+fi
  34
+
  35
+# Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
  36
+alias pacupg='sudo pacman -Syu'        # Synchronize with repositories before upgrading packages that are out of date on the local system.
  37
+alias pacin='sudo pacman -S'           # Install specific package(s) from the repositories
  38
+alias pacins='sudo pacman -U'          # Install specific package not from the repositories but from a file 
  39
+alias pacre='sudo pacman -R'           # Remove the specified package(s), retaining its configuration(s) and required dependencies
  40
+alias pacrem='sudo pacman -Rns'        # Remove the specified package(s), its configuration(s) and unneeded dependencies
  41
+alias pacrep='pacman -Si'              # Display information about a given package in the repositories
  42
+alias pacreps='pacman -Ss'             # Search for package(s) in the repositories
  43
+alias pacloc='pacman -Qi'              # Display information about a given package in the local database
  44
+alias paclocs='pacman -Qs'             # Search for package(s) in the local database
  45
+# Additional pacman alias examples
  46
+if [[ -x `which abs` ]]; then
  47
+  alias pacupd='sudo pacman -Sy && sudo abs'     # Update and refresh the local package and ABS databases against repositories
  48
+else
  49
+  alias pacupd='sudo pacman -Sy'     # Update and refresh the local package and ABS databases against repositories
  50
+fi
  51
+alias pacinsd='sudo pacman -S --asdeps'        # Install given package(s) as dependencies of another package
  52
+alias pacmir='sudo pacman -Syy'                # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist
  53
+
  54
+# https://bbs.archlinux.org/viewtopic.php?id=93683
  55
+paclist() {
  56
+  sudo pacman -Qei $(pacman -Qu|cut -d" " -f 1)|awk ' BEGIN {FS=":"}/^Name/{printf("\033[1;36m%s\033[1;37m", $2)}/^Description/{print $2}'
  57
+}
  58
+
  59
+alias paclsorphans='sudo pacman -Qdt'
  60
+alias pacrmorphans='sudo pacman -Rs $(pacman -Qtdq)'
  61
+
  62
+pacdisowned() {
  63
+  tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
  64
+  db=$tmp/db
  65
+  fs=$tmp/fs
  66
+
  67
+  mkdir "$tmp"
  68
+  trap  'rm -rf "$tmp"' EXIT
  69
+
  70
+  pacman -Qlq | sort -u > "$db"
  71
+
  72
+  find /bin /etc /lib /sbin /usr \
  73
+      ! -name lost+found \
  74
+        \( -type d -printf '%p/\n' -o -print \) | sort > "$fs"
  75
+
  76
+  comm -23 "$fs" "$db"
  77
+}
11  home/.oh-my-zsh/plugins/autojump/autojump.plugin.zsh
... ...
@@ -0,0 +1,11 @@
  1
+if [ $commands[autojump] ]; then # check if autojump is installed
  2
+  if [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package
  3
+    . /usr/share/autojump/autojump.zsh
  4
+  elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
  5
+    . /etc/profile.d/autojump.zsh
  6
+  elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
  7
+    . /opt/local/etc/profile.d/autojump.zsh
  8
+  elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew
  9
+    . `brew --prefix`/etc/autojump
  10
+  fi
  11
+fi
20  home/.oh-my-zsh/plugins/battery/battery.plugin.zsh
... ...
@@ -0,0 +1,20 @@
  1
+if [[ $(acpi 2&>/dev/null | grep -c '^Battery.*Discharging') -gt 0 ]] ; then
  2
+  function battery_pct_remaining() { echo "$(acpi | cut -f2 -d ',' | tr -cd '[:digit:]')" }
  3
+  function battery_time_remaining() { echo $(acpi | cut -f3 -d ',') }
  4
+  function battery_pct_prompt() {
  5
+    b=$(battery_pct_remaining)
  6
+    if [ $b -gt 50 ] ; then
  7
+      color='green'
  8
+    elif [ $b -gt 20 ] ; then
  9
+      color='yellow'
  10
+    else
  11
+      color='red'
  12
+    fi
  13
+    echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}"
  14
+  }
  15
+else
  16
+  error_msg='no battery'
  17
+  function battery_pct_remaining() { echo $error_msg }
  18
+  function battery_time_remaining() { echo $error_msg }
  19
+  function battery_pct_prompt() { echo '' }
  20
+fi
80  home/.oh-my-zsh/plugins/brew/_brew
... ...
@@ -0,0 +1,80 @@
  1
+#compdef brew
  2
+#autoload
  3
+
  4
+# imported from the latest homebrew contributions
  5
+
  6
+_brew_all_formulae() {
  7
+  formulae=(`brew search`)
  8
+}
  9
+
  10
+_brew_installed_formulae() {
  11
+  installed_formulae=(`brew list`)
  12
+}
  13
+
  14
+local -a _1st_arguments
  15
+_1st_arguments=(
  16
+  'cat:display formula file for a formula'
  17
+  'cleanup:uninstall unused and old versions of packages'
  18
+  'create:create a new formula'
  19
+  'deps:list dependencies and dependants of a formula'
  20
+  'doctor:audits your installation for common issues'
  21
+  'edit:edit a formula'
  22
+  'home:visit the homepage of a formula or the brew project'
  23
+  'info:information about a formula'
  24
+  'install:install a formula'
  25
+  'link:link a formula'
  26
+  'list:list files in a formula or not-installed formulae'
  27
+  'log:git commit log for a formula'
  28
+  'missing:check all installed formuale for missing dependencies.'
  29
+  'outdated:list formulas for which a newer version is available'
  30
+  'prune:remove dead links'
  31
+  'remove:remove a formula'
  32
+  'search:search for a formula (/regex/ or string)'
  33
+  'server:start a local web app that lets you browse formulae (requires Sinatra)'
  34
+  'unlink:unlink a formula'
  35
+  'update:freshen up links'
  36
+  'upgrade:upgrade outdated formulae'
  37
+  'uses:show formulas which depend on a formula'
  38
+)
  39
+
  40
+local expl
  41
+local -a formulae installed_formulae
  42
+
  43
+_arguments \
  44
+  '(-v)-v[verbose]' \
  45
+  '(--cellar)--cellar[brew cellar]' \
  46
+  '(--config)--config[brew configuration]' \
  47
+  '(--env)--env[brew environment]' \
  48
+  '(--repository)--repository[brew repository]' \
  49
+  '(--version)--version[version information]' \