1. Andy Gocke
  2. dotfiles

Commits

Andy Gocke  committed 500b7e5

Updated oh-my-zsh and fixed bug in install.py

  • Participants
  • Parent commits 006b0ae
  • Branches default

Comments (0)

Files changed (169)

File install.py

View file
 def copy_file_or_dir(src, dest):
   abs_src = real_exp(src)
   abs_dest = real_exp(dest)
-  if os.path.isdir(abs_src):
-    if os.path.exists(abs_dest):
-      if os.path.isdir(abs_dest):
-        shutil.rmtree(abs_dest, ignore_errors=True)
-      else:
-        os.remove(abs_dest)
-    shutil.copytree(abs_src, abs_dest)
+  if not os.path.exists(abs_src):
+    print 'File ', abs_src, ' does not exist; skipping'
   else:
-    shutil.copy2(abs_src, abs_dest)
+    if os.path.isdir(abs_src):
+      if os.path.exists(abs_dest):
+        if os.path.isdir(abs_dest):
+          shutil.rmtree(abs_dest, ignore_errors=True)
+        else:
+          os.remove(abs_dest)
+      shutil.copytree(abs_src, abs_dest)
+    else:
+      shutil.copy2(abs_src, abs_dest)
 
 
 def forward():

File oh-my-zsh/.git/FETCH_HEAD

View file
+c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9		branch 'master' of git://github.com/robbyrussell/oh-my-zsh

File oh-my-zsh/.git/ORIG_HEAD

View file
+73f777053725ce61d6fada67ff3f174130dd8c94

File oh-my-zsh/.git/index

Binary file modified.

File oh-my-zsh/.git/logs/HEAD

View file
 0000000000000000000000000000000000000000 caa15548c107b9c31f61a67547ffab0b0cfe4934 Andy Gocke <agocke@gmail.com> 1338508275 -0500	clone: from git://github.com/robbyrussell/oh-my-zsh.git
+caa15548c107b9c31f61a67547ffab0b0cfe4934 d05b2010ffd4cd33ff9402c402051b1caf985d97 Andy Gocke <agocke@gmail.com> 1344381717 -0700	pull origin master: Fast-forward
+d05b2010ffd4cd33ff9402c402051b1caf985d97 921d2f49ef01acce973980c0aa9c6ffbbd2fbd0b Andy Gocke <agocke@gmail.com> 1346912521 -0700	pull origin master: Fast-forward
+921d2f49ef01acce973980c0aa9c6ffbbd2fbd0b 73f777053725ce61d6fada67ff3f174130dd8c94 Andy Gocke <agocke@gmail.com> 1348945974 -0700	pull origin master: Fast-forward
+73f777053725ce61d6fada67ff3f174130dd8c94 c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 Andy Gocke <agocke@gmail.com> 1350151298 -0700	pull origin master: Fast-forward

File oh-my-zsh/.git/logs/refs/heads/master

View file
 0000000000000000000000000000000000000000 caa15548c107b9c31f61a67547ffab0b0cfe4934 Andy Gocke <agocke@gmail.com> 1338508275 -0500	clone: from git://github.com/robbyrussell/oh-my-zsh.git
+caa15548c107b9c31f61a67547ffab0b0cfe4934 d05b2010ffd4cd33ff9402c402051b1caf985d97 Andy Gocke <agocke@gmail.com> 1344381717 -0700	pull origin master: Fast-forward
+d05b2010ffd4cd33ff9402c402051b1caf985d97 921d2f49ef01acce973980c0aa9c6ffbbd2fbd0b Andy Gocke <agocke@gmail.com> 1346912521 -0700	pull origin master: Fast-forward
+921d2f49ef01acce973980c0aa9c6ffbbd2fbd0b 73f777053725ce61d6fada67ff3f174130dd8c94 Andy Gocke <agocke@gmail.com> 1348945974 -0700	pull origin master: Fast-forward
+73f777053725ce61d6fada67ff3f174130dd8c94 c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9 Andy Gocke <agocke@gmail.com> 1350151298 -0700	pull origin master: Fast-forward

File oh-my-zsh/.git/objects/00/a584a7a453271c5e29533d266566b6084697b1

Binary file added.

File oh-my-zsh/.git/objects/07/4d7a6f2466ec62de1eac2ee70edc6e6c488a9e

Binary file added.

File oh-my-zsh/.git/objects/07/d97736dcc23959b911d02066a31d291b673602

Binary file added.

File oh-my-zsh/.git/objects/0a/de9cc60ebc48d9518cc234f1827a0e51038327

Binary file added.

File oh-my-zsh/.git/objects/0f/3b988e90c6d27e7dbbda419c1876b162d688b3

Binary file added.

File oh-my-zsh/.git/objects/15/848979eedb7f2a947c0e322ae9ac68b208eb64

Binary file added.

File oh-my-zsh/.git/objects/1d/2a0fe46244f497426a607e029771f6e8ecbec1

Binary file added.

File oh-my-zsh/.git/objects/1d/2c7db7f182583189b42f71101a627c04d62c9d

Binary file added.

File oh-my-zsh/.git/objects/20/d19dfba0364c3141df9298fa9f33242c0e3b31

Binary file added.

File oh-my-zsh/.git/objects/22/383b8b96cf7ff31738fe4ebf3d9a8f28223e13

Binary file added.

File oh-my-zsh/.git/objects/23/05c49796f58b4ae2e5b79943245f83b0e06448

Binary file added.

File oh-my-zsh/.git/objects/24/87131e264f67eb7ad9a962b5c9289c5815c4c5

Binary file added.

File oh-my-zsh/.git/objects/25/a9cddc2191a1c6751d1e385389c0787a597a3e

Binary file added.

File oh-my-zsh/.git/objects/2a/92a7cf4dc9006eafdeac56079c7ae26744e34b

Binary file added.

File oh-my-zsh/.git/objects/31/092eaa388fc884835f8a4f92c645c1f58da89a

Binary file added.

File oh-my-zsh/.git/objects/33/808fb8fe0df21afe72c15b1165350254549935

Binary file added.

File oh-my-zsh/.git/objects/34/d27805dd1f9d1d3444786073c93e86c44eda31

Binary file added.

File oh-my-zsh/.git/objects/34/d42c280423836a39582089b504d240718a3f35

View file
+x}��N�0EY�+F*RV�J ��
+/Ι�

File oh-my-zsh/.git/objects/37/a9d2e28e50450c87dd00210dded8004a709d1f

Binary file added.

File oh-my-zsh/.git/objects/3c/13727ecc448809af861f864c56cda2cd213221

Binary file added.

File oh-my-zsh/.git/objects/41/778b53326da900c0905261811db20cabb7b2cb

Binary file added.

File oh-my-zsh/.git/objects/45/1e0532bf011f770685ef3eeb47afcd936bd174

Binary file added.

File oh-my-zsh/.git/objects/49/68395c0232297b5d0a1bd69dfb93b15c43b72b

Binary file added.

File oh-my-zsh/.git/objects/51/95f19480b771e6f43b76ab3ea24fc892f7be5d

Binary file added.

File oh-my-zsh/.git/objects/52/3b26c6efb1a140aa786c63367d80832a6187fd

View file
+x��Kj�0���)~�zZ�~���

File oh-my-zsh/.git/objects/5f/16ede7cae5c8e9f32d4a980333f0ee1b7abaf6

Binary file added.

File oh-my-zsh/.git/objects/62/d140a350a83755aeb38756b81c8516ec26fc7b

Binary file added.

File oh-my-zsh/.git/objects/63/3ad0ec16a9e85d2d40dbe864e7678fd18a1647

Binary file added.

File oh-my-zsh/.git/objects/63/abe77ca6f7d20da3557a56ff49024cdbab8006

Binary file added.

File oh-my-zsh/.git/objects/67/036053922289993342e81af483f94ea820d05b

Binary file added.

File oh-my-zsh/.git/objects/68/ba65cbc688e4a655baf338ff64413dab02a379

Binary file added.

File oh-my-zsh/.git/objects/68/ec8edb42e7fca2e27c8ab157124dd041a42d31

Binary file added.

File oh-my-zsh/.git/objects/6a/2e04fefbd794f050d45e7a717d009e39204431

Binary file added.

File oh-my-zsh/.git/objects/6e/3a8791554111097913c3374f728714d4fe05e8

Binary file added.

File oh-my-zsh/.git/objects/6e/85ff5b44e81f5b9d743b6ba1df7ed7b62dc2df

View file
+x��Aj1
+]��

File oh-my-zsh/.git/objects/6f/7dc96cbe9c210f59f0b1f53c8335469cc46346

View file
+x+)JMU�0c040031QH��I�M���I-.fxr�͵p����.��ޘ�b��
+��Mbf"�

File oh-my-zsh/.git/objects/70/b562e00f733a80c69a5b24ff3905678f27517b

Binary file added.

File oh-my-zsh/.git/objects/71/bc25fc2df3c47c66eea0c1bf265734338c2aeb

Binary file added.

File oh-my-zsh/.git/objects/72/84e6b397712dfff16a740ea12d1015b26f203d

View file
+x��[j!E��*�`(��QB����G�1�����c�!��\�
+u���>k-m@\��z(

File oh-my-zsh/.git/objects/73/f777053725ce61d6fada67ff3f174130dd8c94

Binary file added.

File oh-my-zsh/.git/objects/74/d20f32086a5526b7482ce23d5b62faefa0bd83

Binary file added.

File oh-my-zsh/.git/objects/76/f2429e8ec30afacd3a913018c8c573962e214c

Binary file added.

File oh-my-zsh/.git/objects/7c/98b30d0d0115dff8fff2525510531f5c5c394e

Binary file added.

File oh-my-zsh/.git/objects/7f/c457d5217d6131b96e89823595ed7aec854815

Binary file added.

File oh-my-zsh/.git/objects/82/47a4097d32a85c6a119b114cce44069559dd3e

Binary file added.

File oh-my-zsh/.git/objects/85/10ac002f1dec92f6e9e62809f3dc5493d4b842

Binary file added.

File oh-my-zsh/.git/objects/86/37514cfe97ccf0ce40d208b46c68ebbb8f86bb

Binary file added.

File oh-my-zsh/.git/objects/88/6128f18929e1c522db45b5df770670947b93f6

Binary file added.

File oh-my-zsh/.git/objects/8c/2145fc85785284726d6a81accc9fe63c1e12ee

Binary file added.

File oh-my-zsh/.git/objects/8e/b3ab565e4a5afde80d8cb0378f847a9dfc412c

Binary file added.

File oh-my-zsh/.git/objects/90/aaae899019440bcb308e4a1073783db8ef9813

Binary file added.

File oh-my-zsh/.git/objects/92/1d2f49ef01acce973980c0aa9c6ffbbd2fbd0b

View file
+x��AN�0EY�#�n�3�-!�ؔx�I[��q@pz`����ӏ%�[Ctת$�}RƠ��w�=k�

File oh-my-zsh/.git/objects/97/07537f5aea029266665df5f3fa636aae6fefd4

Binary file added.

File oh-my-zsh/.git/objects/99/280c0fc57a8b6751be987bbf057b5877b1ee3b

Binary file added.

File oh-my-zsh/.git/objects/9c/fcff3d0e07fce6a23c7344e11e96b706d88eab

Binary file added.

File oh-my-zsh/.git/objects/a0/430a0a45f81ecff5682070647f9c4c2da6410f

View file
+x���J�@�������;�H��d��M ��ͮr������a��	y]�
+R��Z�����4�W��k��$��H�

File oh-my-zsh/.git/objects/a1/478be31ca8e538769246e22bba3330d81dc3c8

Binary file added.

File oh-my-zsh/.git/objects/a4/916541dce1b7dfd0ce6e0f890632343fd0bfa0

Binary file added.

File oh-my-zsh/.git/objects/ae/add7371b244468aadf81a48e6009a4aa612f23

Binary file added.

File oh-my-zsh/.git/objects/b1/1e28914139fb585c0a4de4ddb6a55f19a5493d

Binary file added.

File oh-my-zsh/.git/objects/b2/07792f30f523e2fc82a70e75893bf1124bf7a8

View file
+x��M
+�0F]�s%I��Dt�	\�gR�m#�x�Gp��{<�bY�Y�vt��

File oh-my-zsh/.git/objects/b2/c1af91d3e70ea442ae5353cf7f140d89491c73

View file
+x�OKN�0

File oh-my-zsh/.git/objects/b4/73cb0cd248e494bb508f41b55d862e84cdd6e0

Binary file added.

File oh-my-zsh/.git/objects/b6/09aa0e6c981f2039d777687cb01a84587f6edc

Binary file added.

File oh-my-zsh/.git/objects/b9/2250c6e06d892656ef52e0a683d92978c424b2

Binary file added.

File oh-my-zsh/.git/objects/ba/a187e4b903f39422a84b580e6e617ec3738e09

Binary file added.

File oh-my-zsh/.git/objects/ba/e88f7abc6269d4eea700a47d8cf270cdb1fa63

Binary file added.

File oh-my-zsh/.git/objects/bf/4157514f8880ac04ba328f7f1b74c34f1b39d7

Binary file added.

File oh-my-zsh/.git/objects/c2/7183abcd113da59c0d25c5324b7b7d15060f95

Binary file added.

File oh-my-zsh/.git/objects/c3/107c06c04fb42b0ca27b0a81b15854819969c6

Binary file added.

File oh-my-zsh/.git/objects/c3/1b7fcae86a3a057e74340d927f80722203ccdc

Binary file added.

File oh-my-zsh/.git/objects/c6/86dd51d3e30a02f20364f9c84201b5b10d094a

Binary file added.

File oh-my-zsh/.git/objects/c9/6774f9d7f5d8aeddc6089d0ac6c2a9167bb7de

Binary file added.

File oh-my-zsh/.git/objects/c9/c81c43217031a171dd8006e1f3866216ed1198

Binary file added.

File oh-my-zsh/.git/objects/cc/831508d7c2e839e1c4effe31ac2d92f2741f94

View file
+x��An� E��s�D��HU�M����:�ئ��)�/N�(���B
+���U�iC��&S�eC\1<����l)&
+����u�
+

File oh-my-zsh/.git/objects/cd/48691dd408eee3b38877e6d528b4447b5fe51d

Binary file added.

File oh-my-zsh/.git/objects/ce/36db6af621c33d09a44bd63ab6c40c7ad400dd

Binary file added.

File oh-my-zsh/.git/objects/cf/1997c5be62ffeebc99253cced7608415e38e4e

View file
+x%̱
+�0Fag����B�n�Q�9I�&��
+���Ї

File oh-my-zsh/.git/objects/cf/1cecbd9a6117785459593c8c4f12bfd5293778

Binary file added.

File oh-my-zsh/.git/objects/cf/907b755afdca14c00be0010962d0861af29264

Binary file added.

File oh-my-zsh/.git/objects/d0/14084febd3cd165944eae633461db038c05c42

Binary file added.

File oh-my-zsh/.git/objects/d1/59f20e07f9a384e47e4cc16b78cce80aeeeef6

Binary file added.

File oh-my-zsh/.git/objects/d2/9eb1dda85de0b8aa9416643166c5f4081d468b

View file
+xmR�j�@��}�"˱
+[

File oh-my-zsh/.git/objects/d3/67863b86f2baff8892278b06259370e0f02164

View file
+x���n� �{�S��^m.驏bYʂ���G����QH҃�J

File oh-my-zsh/.git/objects/d3/7e9aa15b1196b2c60116afa4ffa613397f2185

Binary file added.

File oh-my-zsh/.git/objects/d5/bfbf05d16634fa3c2834c7097edb1cf2487d96

Binary file added.

File oh-my-zsh/.git/objects/d9/98151e654dd546edcfdec630bc82d90619ac8e

Binary file added.

File oh-my-zsh/.git/objects/dd/e7d7cc1cd7c892c9c2fef204101ee7230cec13

Binary file added.

File oh-my-zsh/.git/objects/de/9b14d03319a8b398db9b28ce878052b15f18a6

Binary file added.

File oh-my-zsh/.git/objects/de/cb9c82b5392d66e157ceef9c3b41466bdcbafd

View file
+x��Aj�0E��)fZFY�!�\e4��2�r�$�

File oh-my-zsh/.git/objects/e4/7391ca6b9477e091152093e4582fe5aa6188cc

Binary file added.

File oh-my-zsh/.git/objects/e4/ca4facd65707c1f2ada112fb8781664439e637

Binary file added.

File oh-my-zsh/.git/objects/eb/46ec0902a6bb687cd707a3b6700a24ae9745f4

Binary file added.

File oh-my-zsh/.git/objects/ec/6f03ba34d95decc204f0c928fb127956ac0435

Binary file added.

File oh-my-zsh/.git/objects/ed/932ee89fae5965f74bdad6cd65a18cfa696640

Binary file added.

File oh-my-zsh/.git/objects/f1/4a9b0feac6d46d843a95fe11af537dfbbe5f86

Binary file added.

File oh-my-zsh/.git/objects/f5/a445e49a15d964002c279d3b04b4a4f2ba9579

Binary file added.

File oh-my-zsh/.git/objects/fa/bcfed43775bb7bfa88473da662c53bd3d0e7f2

Binary file added.

File oh-my-zsh/.git/objects/fb/f82ae62fe03f69af0114011c0d6848a83d4fb3

View file
+x��Kj�0D��)zZ

File oh-my-zsh/.git/objects/ff/9edbfaf193848e9ae8c1093278c25c02c4f0c8

Binary file added.

File oh-my-zsh/.git/objects/pack/pack-4036a1851b5852ed1e5304c8f39fdf494cf0acfd.idx

Binary file added.

File oh-my-zsh/.git/objects/pack/pack-4036a1851b5852ed1e5304c8f39fdf494cf0acfd.pack

Binary file added.

File oh-my-zsh/.git/objects/pack/pack-82282372b0012c1bfc833062658e18be0f0ef821.idx

Binary file added.

File oh-my-zsh/.git/objects/pack/pack-82282372b0012c1bfc833062658e18be0f0ef821.pack

Binary file added.

File oh-my-zsh/.git/refs/heads/master

View file
-caa15548c107b9c31f61a67547ffab0b0cfe4934
+c2ae9e09ca1f33ff1e13e629a0b2e6bdd19f83a9

File oh-my-zsh/.gitignore

View file
 custom/*
 !custom/example
 !custom/example.zsh
-cache
 *.swp
+!custom/example.zshcache
+cache/

File oh-my-zsh/README.textile

View file
 A handful of functions, auto-complete helpers, and stuff that makes you shout...
 
+
 bq. "OH MY ZSHELL!"
 
 h2. Setup
 
 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!
 
-h3. Send us your theme!
+h3. (Don't) Send us your theme! (for now)
 
-I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
+-I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.-
+
+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. 
+
+
 
 h2. Contributors
 

File oh-my-zsh/lib/completion.zsh

View file
 
 # Use caching so that commands like apt and dpkg complete are useable
 zstyle ':completion::complete:*' use-cache 1
-zstyle ':completion::complete:*' cache-path ~/.oh-my-zsh/cache/
+zstyle ':completion::complete:*' cache-path $ZSH/cache/
 
 # Don't complete uninteresting users
 zstyle ':completion:*:*:*:users' ignored-patterns \

File oh-my-zsh/lib/directories.zsh

View file
 
 alias md='mkdir -p'
 alias rd=rmdir
-alias d='dirs -v'
+alias d='dirs -v | head -10'
 
 # mkdir & cd to it
 function mcd() { 
   mkdir -p "$1" && cd "$1"; 
-}
+}

File oh-my-zsh/lib/key-bindings.zsh

View file
 bindkey -e
 bindkey '\ew' kill-region
 bindkey -s '\el' "ls\n"
-bindkey -s '\e.' "..\n"
 bindkey '^r' history-incremental-search-backward
 bindkey "^[[5~" up-line-or-history
 bindkey "^[[6~" down-line-or-history

File oh-my-zsh/lib/misc.zsh

View file
 setopt long_list_jobs
 
 ## pager
-export PAGER=less
+export PAGER="less -R"
 export LC_CTYPE=$LANG

File oh-my-zsh/lib/rvm.zsh

View file
 # get the name of the branch we are on
 function rvm_prompt_info() {
   ruby_version=$(~/.rvm/bin/rvm-prompt 2> /dev/null) || return
-  echo "($ruby_version)"
+  [[ ! -z $ruby_version ]] && echo "($ruby_version)"
 }
-
-

File oh-my-zsh/lib/termsupport.zsh

View file
 #Fully support screen, iterm, and probably most modern xterm and rxvt
 #Limited support for Apple Terminal (Terminal can't set window or tab separately)
 function title {
-  [ "$DISABLE_AUTO_TITLE" != "true" ] || return
+  if [[ "$DISABLE_AUTO_TITLE" == "true" ]] || [[ "$EMACS" == *term* ]]; then
+    return
+  fi
   if [[ "$TERM" == screen* ]]; then
     print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars
   elif [[ "$TERM" == xterm* ]] || [[ $TERM == rxvt* ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then

File oh-my-zsh/oh-my-zsh.sh

View file
 done
 
 # Load all of your custom configurations from custom/
-for config_file ($ZSH_CUSTOM/*.zsh(.N)) source $config_file
+for config_file ($ZSH_CUSTOM/*.zsh(N)) source $config_file
 
 # Load the theme
 if [ "$ZSH_THEME" = "random" ]

File oh-my-zsh/plugins/autojump/autojump.plugin.zsh

View file
     . /usr/share/autojump/autojump.zsh
   elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation
     . /etc/profile.d/autojump.zsh
+  elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
+    . /opt/local/etc/profile.d/autojump.zsh
   elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump ]; then # mac os x with brew
     . `brew --prefix`/etc/autojump
   fi

File oh-my-zsh/plugins/bundler/bundler.plugin.zsh

View file
 
 # The following is based on https://github.com/gma/bundler-exec
 
-bundled_commands=(annotate cap capify cucumber ey foreman guard middleman nanoc rackup rainbows rails rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails)
+bundled_commands=(annotate cap capify cucumber foreman guard middleman nanoc rackup rainbows rake rspec ruby shotgun spec spork thin thor unicorn unicorn_rails puma)
 
 ## Functions
 

File oh-my-zsh/plugins/cap/cap.plugin.zsh

View file
-function _cap_does_task_list_need_generating () {
-  if [ ! -f .cap_tasks~ ]; then return 0;
+stat -f%m . > /dev/null 2>&1
+if [ "$?" = 0 ]; then
+  stat_cmd=(stat -f%m)
+else
+  stat_cmd=(stat -L --format=%y)
+fi
+
+# Cache filename
+_cap_show_undescribed_tasks=0
+
+# Cache filename
+_cap_task_cache_file='.cap_task_cache'
+
+_cap_get_task_list () {
+  if [ ${_cap_show_undescribed_tasks} -eq 0 ]; then
+    cap -T | grep '^cap' | cut -d " " -f 2
   else
-    accurate=$(stat -f%m .cap_tasks~)
-    changed=$(stat -f%m config/deploy.rb)
+    cap -vT | grep '^cap' | cut -d " " -f 2
+  fi
+}
+
+_cap_does_task_list_need_generating () {
+
+  if [ ! -f ${_cap_task_cache_file} ]; then return 0;
+  else
+    accurate=$($stat_cmd $_cap_task_cache_file)
+    changed=$($stat_cmd config/deploy.rb)
     return $(expr $accurate '>=' $changed)
   fi
 }
 function _cap () {
   if [ -f config/deploy.rb ]; then
     if _cap_does_task_list_need_generating; then
-      echo "\nGenerating .cap_tasks~..." > /dev/stderr
-      cap show_tasks -q | cut -d " " -f 1 | sed -e '/^ *$/D' -e '1,2D'
-> .cap_tasks~
+      _cap_get_task_list > ${_cap_task_cache_file}
     fi
-    compadd `cat .cap_tasks~`
+    compadd `cat ${_cap_task_cache_file}`
   fi
 }
 
-compctl -K _cap cap
+compdef _cap cap

File oh-my-zsh/plugins/colemak/colemak-less

View file
+n    forw-line
+e    back-line
+k    repeat-search
+\ek  repeat-search-all
+K    reverse-search
+\eK  reverse-search-all

File oh-my-zsh/plugins/colemak/colemak.plugin.zsh

View file
+# ctrl-j newline
+bindkey '^n' accept-line
+bindkey -a '^n' accept-line
+
+# another rotation to match qwerty
+bindkey -a 'n' down-line-or-history
+bindkey -a 'e' up-line-or-history
+bindkey -a 'i' vi-forward-char
+
+# make qwerty
+bindkey -a 'k' vi-repeat-search
+bindkey -a 'K' vi-rev-repeat-search
+bindkey -a 'u' vi-insert
+bindkey -a 'U' vi-insert-bol
+bindkey -a 'l' vi-undo-change
+bindkey -a 'N' vi-join
+
+# spare
+bindkey -a 'j' vi-forward-word-end
+bindkey -a 'J' vi-forward-blank-word-end
+
+lesskey $ZSH_CUSTOM/plugins/colemak/colemak-less

File oh-my-zsh/plugins/composer/composer.plugin.zsh

View file
+# ------------------------------------------------------------------------------
+#          FILE:  composer.plugin.zsh
+#   DESCRIPTION:  oh-my-zsh composer plugin file.
+#        AUTHOR:  Daniel Gomes (me@danielcsgomes.com)
+#       VERSION:  1.0.0
+# ------------------------------------------------------------------------------
+
+# Composer basic command completion
+_composer_get_command_list () {
+	composer --no-ansi | sed "1,/Available commands/d" | awk '/^  [a-z]+/ { print $1 }'
+}
+
+_composer () {
+  if [ -f composer.json ]; then
+    compadd `_composer_get_command_list`
+  fi
+}
+
+compdef _composer composer
+
+# Aliases
+alias c='composer'
+alias csu='composer self-update'
+alias cu='composer update'
+alias ci='composer install'
+alias ccp='composer create-project'
+
+# install composer in the current directory
+alias cget='curl -s https://getcomposer.org/installer | php'

File oh-my-zsh/plugins/dircycle/dircycle.plugin.zsh

View file
+##
+# dircycle plugin: enables cycling through the directory
+# stack using Ctrl+Shift+Left/Right
+
+eval "insert-cycledleft () { zle push-line; LBUFFER='pushd -q +1'; zle accept-line }"
+zle -N insert-cycledleft
+bindkey "\e[1;6D" insert-cycledleft
+eval "insert-cycledright () { zle push-line; LBUFFER='pushd -q -0'; zle accept-line }"
+zle -N insert-cycledright
+bindkey "\e[1;6C" insert-cycledright

File oh-my-zsh/plugins/dirpersist/dirpersist.plugin.zsh

View file
     if grep 'dirpersiststore' ~/.zlogout > /dev/null; then
     else
         if read -q \?"Would you like to set up your .zlogout file for use with dirspersist? (y/n) "; then
-            echo "# Store dirs stack\n# See ~/.oh-my-zsh/plugins/dirspersist.plugin.zsh\ndirpersiststore" >> ~/.zlogout
+            echo "# Store dirs stack\n# See $ZSH/plugins/dirspersist.plugin.zsh\ndirpersiststore" >> ~/.zlogout
         else
             echo "If you don't want this message to appear, remove dirspersist from \$plugins"
         fi

File oh-my-zsh/plugins/encode64/encode64.plugin.zsh

View file
+encode64(){ echo -n $1 | base64 }
+decode64(){ echo -n $1 | base64 -D }

File oh-my-zsh/plugins/fasd/fasd.plugin.zsh

View file
+if [ $commands[fasd] ]; then # check if fasd is installed
+  eval "$(fasd --init auto)"
+  alias v='f -e vim'
+  alias o='a -e open'
+fi
+

File oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh

View file
 						-u'[Use the given GPG-key for the digital signature (implies -s)]'\
 						-m'[Use the given tag message]'\
 						-p'[Push to $ORIGIN after performing finish]'\
+						-k'[Keep branch after performing finish]'\
+						-n"[Don't tag this release]"\
 						':version:__git_flow_version_list'
 				;;
 
 						-u'[Use the given GPG-key for the digital signature (implies -s)]'\
 						-m'[Use the given tag message]'\
 						-p'[Push to $ORIGIN after performing finish]'\
+						-k'[Keep branch after performing finish]'\
+						-n"[Don't tag this release]"\
 						':hotfix:__git_flow_hotfix_list'
 				;;
 

File oh-my-zsh/plugins/git/git.plugin.zsh

View file
   echo ${ref#refs/heads/}
 }
 
+function current_repository() {
+
+  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
+  echo $(git remote -v | cut -d':' -f 2)
+}
+
 # these aliases take advantage of the previous function
 alias ggpull='git pull origin $(current_branch)'
 compdef ggpull=git
 alias ggpush='git push origin $(current_branch)'
 compdef ggpush=git
 alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
-compdef ggpnp=git
+compdef ggpnp=git

File oh-my-zsh/plugins/jira/jira.plugin.zsh

View file
+# To use: add a .jira-url file in the base of your project
+# Setup: cd to/my/project
+#        echo "https://name.jira.com" >> .jira-url
+# Usage: jira           # opens a new issue
+#        jira ABC-123   # Opens an existing issue
+open_jira_issue () {
+  if [ ! -f .jira-url ]; then
+    echo "There is no .jira-url file in the current directory..."
+    return 0;
+  else
+    jira_url=$(cat .jira-url);
+    if [ -z "$1" ]; then
+      echo "Opening new issue";
+      `open $jira_url/secure/CreateIssue!default.jspa`;
+    else
+      echo "Opening issue #$1";
+      `open $jira_url/issues/$1`;
+    fi
+  fi
+}
+
+alias jira='open_jira_issue'

File oh-my-zsh/plugins/jruby/jruby.plugin.zsh

View file
+# Aliases
+alias jrspec='jruby --debug -S rspec --debug'
+alias jprofile='jruby --profile.api -S rspec'
+alias jexec='jruby -S'

File oh-my-zsh/plugins/laravel/_artisan

View file
+#compdef artisan
+
+# Laravel autocompletion
+# Author: John Hamelink <john@johnhamelink.com>
+#
+# This plugin does the following:
+#  - Adds aliases and autocompletion for artisan
+#  - Adds aliases and autocompletion for bob
+
+local curcontext="$curcontext" state line _opts _bundles ret=1
+_arguments -C \
+    '1: :->cmds' \
+    '*:: :->args' && ret=0
+
+case $state in
+    cmds)
+
+    _values "Artisan command" \
+        'session\:install[Create a session table]' \
+        'migrate[Manage Migrations]' \
+        'test[Run a test]' \
+        'route\:\:call[Call a route in the CLI]' \
+        'key\:\:generate[Generate a key]'
+        ret=0
+        ;;
+    args)
+        case $line[1] in
+            migrate)
+                _values \
+                    'install[Create the Laravel migration table' \
+                    'make[Create a migration]' \
+                    'rollback[Roll back to the last migration operation]' \
+                    'reset[Roll back all migrations that have ever run]'
+                ret=0
+                ;;
+        esac
+        ;;
+esac
+
+return ret

File oh-my-zsh/plugins/laravel/laravel.plugin.zsh

View file
+#!zsh
+alias artisan='php artisan'
+alias bob='php artisan bob::build'

File oh-my-zsh/plugins/lol/lol.plugin.zsh

View file
 alias btw='nice'
 alias obtw='nohup'
 
-alias nomz='ps -aux'
+alias nomz='ps aux'
 alias nomnom='killall'
 
 alias byes='exit'

File oh-my-zsh/plugins/mvn/mvn.plugin.zsh

View file
+function listMavenCompletions { 
+	 reply=(
+		cli:execute cli:execute-phase archetype:generate generate-sources compile clean install test test-compile deploy package cobertura:cobertura jetty:run gwt:run gwt:debug -DskipTests -Dmaven.test.skip=true -DarchetypeCatalog=http://tapestry.formos.com/maven-snapshot-repository -Dtest= `if [ -d ./src ] ; then find ./src -type f | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi`); 
+}
+
+compctl -K listMavenCompletions mvn

File oh-my-zsh/plugins/nanoc/_nanoc

View file
+#compdef nanoc
+#autoload
+
+# nanoc zsh completion - based on the homebrew zsh completion
+# requires the 'nanoc' gem to be installed
+
+local -a _1st_arguments
+_1st_arguments=(
+  'autocompile:start the autocompiler'
+  'compile:compile items of this site'
+  'create-item:create an item'
+  'create-layout:create a layout'
+  'create-site:create a site'
+  'deploy:deploy the compiled site'
+  'help:show help'
+  'prune:remove files not managed by nanoc from the output directory'
+  'show-data:show data in this site'
+  'show-plugins:show all available plugins'
+  'show-rules:describe the rules for each item'
+  'update:update the data stored by the data source to a newer version'
+  'validate-css:validate the site’s CSS'
+  'validate-html:validate the site’s HTML'
+  'validate-links:validate links in site'
+  'view:start the web server that serves static files'
+  'watch:start the watcher'
+)
+
+local expl
+local -a pkgs installed_pkgs
+
+_arguments \
+  '(--color)--color[enable color]' \
+  '(--debug)--debug[enable debugging]' \
+  '(--help)--help[show the help message and quit]' \
+  '(--no-color)--no-color[disable color]' \
+  '(--verbose)--verbose[make nanoc output more detailed]' \
+  '(--version)--version[show version information and quit]' \
+  '(--warn)--warn[enable warnings]' \
+  '*:: :->subcmds' && return 0
+
+if (( CURRENT == 1 )); then
+  _describe -t commands "nanoc subcommand" _1st_arguments
+  return
+fi

File oh-my-zsh/plugins/nanoc/nanoc.plugin.zsh

View file
+alias n='nanoc'
+alias na='nanoc autocompile'
+alias nco='nanoc compile'
+alias nci='nanoc create_item'
+alias ncl='nanoc create_layout'
+alias ncs='nanoc create_site'
+alias nd='nanoc deploy'
+alias nv='nanoc view'
+alias nw='nanoc watch'

File oh-my-zsh/plugins/per-directory-history/per-directory-history.plugin.zsh

View file
+#!/usr/bin/env zsh
+#
+# This is a implementation of per directory history for zsh, some 
+# implementations of which exist in bash[1,2].  It also implements 
+# a per-directory-history-toggle-history function to change from using the 
+# directory history to using the global history.  In both cases the history is 
+# always saved to both the global history and the directory history, so the 
+# toggle state will not effect the saved histories.  Being able to switch 
+# between global and directory histories on the fly is a novel feature as far 
+# as I am aware.
+#
+#-------------------------------------------------------------------------------
+# Configuration
+#-------------------------------------------------------------------------------
+#
+# HISTORY_BASE a global variable that defines the base directory in which the 
+# directory histories are stored
+#
+#-------------------------------------------------------------------------------
+# History
+#-------------------------------------------------------------------------------
+#
+# The idea/inspiration for a per directory history is from Stewart MacArthur[1] 
+# and Dieter[2], the implementation idea is from Bart Schaefer on the the zsh 
+# mailing list[3].  The implementation is by Jim Hester in September 2012.
+#
+# [1]: http://www.compbiome.com/2010/07/bash-per-directory-bash-history.html
+# [2]: http://dieter.plaetinck.be/per_directory_bash
+# [3]: http://www.zsh.org/mla/users/1997/msg00226.html
+#
+################################################################################
+#
+# Copyright (c) 2012 Jim Hester
+#
+# This software is provided 'as-is', without any express or implied warranty.  
+# In no event will the authors be held liable for any damages arising from the 
+# use of this software.
+#
+# Permission is granted to anyone to use this software for any purpose, 
+# including commercial applications, and to alter it and redistribute it 
+# freely, subject to the following restrictions:
+#
+# 1. The origin of this software must not be misrepresented; you must not claim 
+# that you wrote the original software. If you use this software in a product, 
+# an acknowledgment in the product documentation would be appreciated but is 
+# not required.
+#
+# 2. Altered source versions must be plainly marked as such, and must not be 
+# misrepresented as being the original software.
+#
+# 3. This notice may not be removed or altered from any source distribution..
+#
+################################################################################
+
+#-------------------------------------------------------------------------------
+# configuration, the base under which the directory histories are stored
+#-------------------------------------------------------------------------------
+
+[[ -z $HISTORY_BASE ]] && HISTORY_BASE="$HOME/.directory_history"
+
+#-------------------------------------------------------------------------------
+# toggle global/directory history used for searching - ctrl-G by default
+#-------------------------------------------------------------------------------
+
+function per-directory-history-toggle-history() {
+  if [[ $_per_directory_history_is_global == true ]]; then
+    _per-directory-history-set-directory-history
+    echo "using local history\n"
+  else
+    _per-directory-history-set-global-history
+    echo "using global history\n"
+  fi
+  zle reset-prompt
+}
+
+autoload per-directory-history-toggle-history
+zle -N per-directory-history-toggle-history
+bindkey '^G' per-directory-history-toggle-history
+
+#-------------------------------------------------------------------------------
+# implementation details
+#-------------------------------------------------------------------------------
+
+_per_directory_history_directory="$HISTORY_BASE${PWD:A}/history"
+
+function _per-directory-history-change-directory() {
+  _per_directory_history_directory="$HISTORY_BASE${PWD:A}/history"
+  mkdir -p ${_per_directory_history_directory:h}
+  if [[ $_per_directory_history_is_global == false ]]; then
+    #save to the global history
+    fc -AI $HISTFILE
+    #save history to previous file
+    local prev="$HISTORY_BASE${OLDPWD:A}/history"
+    mkdir -p ${prev:h}
+    fc -AI $prev
+
+    #discard previous directory's history
+    local original_histsize=$HISTSIZE
+    HISTSIZE=0
+    HISTSIZE=$original_histsize
+    
+    #read history in new file
+    if [[ -e $_per_directory_history_directory ]]; then
+      fc -R $_per_directory_history_directory
+    fi
+  fi
+}
+
+function _per-directory-history-addhistory() {
+  print -sr -- ${1%%$'\n'}
+  fc -p $_per_directory_history_directory
+}
+
+
+function _per-directory-history-set-directory-history() {
+  if [[ $_per_directory_history_is_global == true ]]; then
+    fc -AI $HISTFILE
+    local original_histsize=$HISTSIZE
+    HISTSIZE=0
+    HISTSIZE=$original_histsize
+    if [[ -e "$_per_directory_history_directory" ]]; then
+      fc -R "$_per_directory_history_directory"
+    fi
+  fi
+  _per_directory_history_is_global=false
+}
+function _per-directory-history-set-global-history() {
+  if [[ $_per_directory_history_is_global == false ]]; then
+    fc -AI $_per_directory_history_directory
+    local original_histsize=$HISTSIZE
+    HISTSIZE=0
+    HISTSIZE=$original_histsize
+    if [[ -e "$HISTFILE" ]]; then
+      fc -R "$HISTFILE"
+    fi
+  fi
+  _per_directory_history_is_global=true
+}
+
+
+#add functions to the exec list for chpwd and zshaddhistory
+chpwd_functions=(${chpwd_functions[@]} "_per-directory-history-change-directory")
+zshaddhistory_functions=(${zshaddhistory_functions[@]} "_per-directory-history-addhistory")
+
+#start in directory mode
+mkdir -p ${_per_directory_history_directory:h}
+_per_directory_history_is_global=true
+_per-directory-history-set-directory-history

File oh-my-zsh/plugins/rails3/rails3.plugin.zsh

View file
 alias rdb='_rails_command dbconsole'
 alias rdbm='rake db:migrate db:test:clone'
 alias rg='_rails_command generate'
+alias rgm='_rails_command generate migration'
 alias rp='_rails_command plugin'
 alias ru='_rails_command runner'
 alias rs='_rails_command server'

File oh-my-zsh/plugins/rbenv/rbenv.plugin.zsh

View file
+_homebrew-installed() {
+  type brew &> /dev/null
+}
+
+_rbenv-from-homebrew-installed() {
+  brew --prefix rbenv &> /dev/null
+}
+
 FOUND_RBENV=0
-for rbenvdir in "$HOME/.rbenv" "/usr/local/rbenv" "/opt/rbenv" ; do
+rbenvdirs=("$HOME/.rbenv" "/usr/local/rbenv" "/opt/rbenv")
+if _homebrew-installed && _rbenv-from-homebrew-installed ; then
+    rbenvdirs=($(brew --prefix rbenv) "${rbenvdirs[@]}")
+fi
+
+for rbenvdir in "${rbenvdirs[@]}" ; do
   if [ -d $rbenvdir/bin -a $FOUND_RBENV -eq 0 ] ; then
     FOUND_RBENV=1
     export RBENV_ROOT=$rbenvdir
     export PATH=${rbenvdir}/bin:$PATH
-    eval "$(rbenv init -)"
+    eval "$(rbenv init - zsh)"
 
     alias rubies="rbenv versions"
     alias gemsets="rbenv gemset list"

File oh-my-zsh/plugins/rbfu/rbfu.plugin.zsh

View file
+# Enables rbfu with --auto option, if available.
+#
+# Also provides a command to list all installed/available
+# rubies. To ensure compatibility with themes, creates the
+# rvm_prompt_info function to return the $RBFU_RUBY_VERSION
+# version.
+
+command -v rbfu &>/dev/null
+
+if [[ $? -eq 0 ]]; then
+  eval "$(rbfu --init --auto)"
+
+  # Internal: Print ruby version details, if it's currently
+  # active etc.
+  function _rbfu_rubies_print() {
+    local rb rb_out
+    rb=$(basename $1)
+    rb_out="$rb"
+    [[ -h $1 ]] && rb_out="$rb_out${fg[green]}@${reset_color}"
+    [[ "x$rb" == "x$2" ]] && rb_out="${fg[red]}$rb_out ${fg[red]}*${reset_color}"
+    echo $rb_out
+  }
+
+  # Public: Provide a list with all available rubies, this basically depends
+  # on `ls -1` and .rfbu/rubies. Highlights the currently active ruby version
+  # and aliases.
+  function rbfu-rubies() {
+    local rbfu_dir active_rb
+    rbfu_dir=$RBFU_RUBIES
+    active_rb=$RBFU_RUBY_VERSION
+    [[ -z "$rbfu_dir" ]] && rbfu_dir="${HOME}/.rbfu/rubies"
+    [[ -z "$active_rb" ]] && active_rb="system"
+    _rbfu_rubies_print "${rbfu_dir}/system" $active_rb
+    for rb in $(ls -1 $rbfu_dir); do
+      _rbfu_rubies_print "${rbfu_dir}/${rb}" $active_rb
+    done
+  }
+
+  # Public: Create rvm_prompt_info command for themes compatibility, unless
+  # it has already been defined.
+  [ ! -x rvm_prompt_info ] && function rvm_prompt_info() { echo "${RBFU_RUBY_VERSION:=system}" }
+fi

File oh-my-zsh/plugins/screen/screen.plugin.zsh

View file
+# if using GNU screen, let the zsh tell screen what the title and hardstatus
+# of the tab window should be.
+if [[ $TERM == "screen" ]]; then
+  if [[ $_GET_PATH == '' ]]; then
+    _GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
+  fi
+  if [[ $_GET_HOST == '' ]]; then
+    _GET_HOST='echo $HOST | sed "s/\..*//"'
+  fi
+
+  # use the current user as the prefix of the current tab title 
+  TAB_TITLE_PREFIX='"`'$_GET_HOST'`:`'$_GET_PATH' | sed "s:..*/::"`$PROMPT_CHAR"'
+  # when at the shell prompt, show a truncated version of the current path (with
+  # standard ~ replacement) as the rest of the title.
+  TAB_TITLE_PROMPT='$SHELL:t'
+  # when running a command, show the title of the command as the rest of the
+  # title (truncate to drop the path to the command)
+  TAB_TITLE_EXEC='$cmd[1]:t'
+
+  # use the current path (with standard ~ replacement) in square brackets as the
+  # prefix of the tab window hardstatus.
+  TAB_HARDSTATUS_PREFIX='"[`'$_GET_PATH'`] "'
+  # when at the shell prompt, use the shell name (truncated to remove the path to
+  # the shell) as the rest of the title
+  TAB_HARDSTATUS_PROMPT='$SHELL:t'
+  # when running a command, show the command name and arguments as the rest of
+  # the title
+  TAB_HARDSTATUS_EXEC='$cmd'
+
+  # tell GNU screen what the tab window title ($1) and the hardstatus($2) should be
+  function screen_set()
+  {
+    # set the tab window title (%t) for screen
+    print -nR $'\033k'$1$'\033'\\\
+
+    # set hardstatus of tab window (%h) for screen
+    print -nR $'\033]0;'$2$'\a'
+  }
+  # called by zsh before executing a command
+  function preexec()
+  {
+    local -a cmd; cmd=(${(z)1}) # the command string
+    eval "tab_title=$TAB_TITLE_PREFIX:$TAB_TITLE_EXEC"
+    eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_EXEC"
+    screen_set $tab_title $tab_hardstatus
+  }
+  # called by zsh before showing the prompt
+  function precmd()
+  {
+    eval "tab_title=$TAB_TITLE_PREFIX:$TAB_TITLE_PROMPT"
+    eval "tab_hardstatus=$TAB_HARDSTATUS_PREFIX:$TAB_HARDSTATUS_PROMPT"
+    screen_set $tab_title $tab_hardstatus
+  }
+fi

File oh-my-zsh/plugins/sublime/sublime.plugin.zsh

View file
 # Sublime Text 2 Aliases
-alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
+#unamestr = 'uname'
+
+if [[ $('uname') == 'Linux' ]]; then
+	alias st='/usr/bin/sublime_text&'
+elif  [[ $('uname') == 'Darwin' ]]; then
+	alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
+fi
 alias stt='st .'

File oh-my-zsh/plugins/supervisor/_supervisorctl

View file
+#compdef supervisorctl
+
+typeset -A opt_args
+local context state line
+
+_supervisorctl() {
+    _arguments -s -S \
+        {--configuration,-c}"[configuration file path (default /etc/supervisor.conf)]:FILENAME:_files" \
+        {--help,-h}"[print usage message and exit]:" \
+        {--interactive,-i}"[start an interactive shell after executing commands]" \
+        {--serverurl,-s}"[URL on which supervisord server is listening (default "http://localhost:9001").]" \
+        {--username,-u}"[username to use for authentication with server]:USERNAME:_users" \
+        {--password,-p}"[password to use for authentication with server]:PASSWORD:" \
+        {--history-file,-r}"[keep a readline history (if readline is available)]:FILENAME:_files" \
+        "*::supervisorctl commands:_supervisorctl_command"
+}
+
+(( $+functions[_supervisorctl_command] )) ||
+_supervisorctl_command() {
+    local cmd ret=1
+
+    (( $+supervisorctl_cmds )) || _supervisorctl_cmds=(
+        "add:Activates any updates in config for process/group" \
+        "avail:Display all configured processes" \
+        "clear:Clear process/multiple-process/all-process log files" \
+        "exit:Exit the supervisor shell." \
+        "fg:Connect to a process in foreground mode" \
+        "maintail:tail of supervisor main log file" \
+        "open:Connect to a remote supervisord process. (for UNIX domain socket, use unix:///socket/path)" \
+        "pid:Get the PID of supervisord." \
+        "quit:Exit the supervisor shell." \
+        "reload:Restart the remote supervisord." \
+        "remove:Removes process/group from active config" \
+        "reread:Reload the daemon's configuration files" \
+        "restart:Restart process or group." \
+        "shutdown:Shut the remote supervisord down." \
+        "start:Start process or groups." \
+        "status:Get process status info." \
+        "stop:Stop process or group." \
+        "tail:tail of process stdout" \
+        "update:Reload config and add/remove as necessary" \
+        "version:Show the version of the remote supervisord process" \
+        "help:Show help" \
+        )
+
+    if (( CURRENT == 1 )); then
+        _describe -t commands 'supervisorctl subcommand' _supervisorctl_cmds \
+            || compadd "$@" - ${(s.:.)${(j.:.)_supervisorctl_syns}}
+    else
+        local curcontext="$curcontext"
+
+        cmd="${${_supervisorctl_cmds[(r)$words[1]:*]%%:*}:-${(k)_supervisorctl_syns[(r)(*:|)$words[1](:*|)]}}"
+        if (( $#cmd )); then
+            curcontext="${curcontext%:*:*}:supervisorctl-${cmd}:"
+            _call_function ret _supervisorctl_$cmd || _message 'no more arguments'
+        else
+            _message "unknown supervisorctl command: $words[1]"
+        fi
+        return ret
+    fi
+}
+
+# get supervisor contoroll processes
+(( $+functions[_get_supervisor_procs] )) ||
+_get_supervisor_procs() {
+    local cache_policy
+    zstyle -s ":completion:${curcontext}:" cache-policy cache_policy
+    if [[ -z "$cache_policy" ]]; then
+        zstyle ":completion:${curcontext}:" cache-policy _supervisor_procs_caching_policy
+    fi
+
+    if ( [[ ${+_supervisor_procs} -eq 0 ]] || _cache_invalid supervisor_procs ) \
+        && ! _retrieve_cache supervisor_procs; then
+
+        _supervisor_procs=(${${(f)"$(supervisorctl status >/dev/null 2>&1 | awk -F' ' '{print $1}')"}})
+        _store_cache supervisor_procs _supervisor_procs
+    fi
+
+    local expl
+    _wanted supervisor_procs expl 'supervisor processes' compadd -a _supervisor_procs
+}
+
+_supervisor_procs_caching_policy() {
+    local -a oldp
+    oldp=( "$1"(Nmw+1) )
+    (( $#oldp ))
+}
+
+(( $+functions[_supervisorctl_add] )) ||
+_supervisorctl_add() {
+    _arguments -s \
+        "--help[use help system]" \
+        "*::supervisorctl commands:_supervisorctl"
+}
+
+(( $+functions[_supervisorctl_help] )) ||
+_supervisorctl_help() {
+    _arguments -s \
+        "*:supervisorctl commands:_supervisorctl"
+}
+
+(( $+functions[_supervisorctl_maintail] )) ||
+_supervisorctl_maintail() {
+    _arguments -s \
+        '-f[Continuous tail of supervisor main log file (Ctrl-C to exit)]'
+}
+
+(( $+functions[_supervisorctl_start] )) ||
+_supervisorctl_start() {
+    # TODO: add 'all'
+    _arguments -s \
+        '*::supvervisor process:_get_supervisor_procs'
+}
+
+(( $+functions[_supervisorctl_status] )) ||
+_supervisorctl_status() {
+    _arguments \
+        '*::supvervisor process:_get_supervisor_procs'
+}
+
+(( $+functions[_supervisorctl_stop] )) ||
+_supervisorctl_stop() {
+    # TODO: add 'all'
+    _arguments -s \
+        '*::supvervisor process:_get_supervisor_procs'
+}
+
+(( $+functions[_supervisorctl_tail] )) ||
+_supervisorctl_tail() {
+    # TODO: add 'stderr'
+    _arguments -s \
+        '-f[Continuous tail of named process stdout Ctrl-C to exit.]' \
+        '*::supvervisor process:_get_supervisor_procs'
+}
+
+_supervisorctl "$@"

File oh-my-zsh/plugins/supervisor/_supervisord

View file
+#compdef supervisord
+
+typeset -A opt_args
+local context state line
+
+_arguments \
+    {--configuration,-c}"[configuration file]:FILENAME:_files" \
+    {--nodaemon,-n}"[run in the foreground (same as 'nodaemon true' in config file)]" \
+    {--help,-h}"[print this usage message and exit]:" \
+    {--user,-u}"[run supervisord as this user]:USER:_users" \
+    {--umask,-m}"[use this umask for daemon subprocess (default is 022)]" \
+    {--directory,-d}"[directory to chdir to when daemonized]" \
+    {--logfile,-l}"[use FILENAME as logfile path]:FILENAME:_files" \
+    {--logfile_maxbytes,-y}"[use BYTES to limit the max size of logfile]" \
+    {--logfile_backups,-z}"[number of backups to keep when max bytes reached]" \
+    {--loglevel,-e}"[use LEVEL as log level (debug,info,warn,error,critical)]:level:->levels" \
+    {--pidfile,-j}"[write a pid file for the daemon process to FILENAME]:FILENAME:_files" \
+    {--identifier,-i}"[identifier used for this instance of supervisord]" \
+    {--childlogdir,-q}"[the log directory for child process logs]:child log directory:_files -/" \
+    {--nocleanup,-k}"[prevent the process from performing cleanup (removal of old automatic child log files) at startup.]" \
+    {--minfds,-a}"[the minimum number of file descriptors for start success]" \
+    {--strip_ansi,-t}"[strip ansi escape codes from process output]" \
+    "--minprocs[the minimum number of processes available for start success]" \
+    "--profile_options[run supervisord under profiler and output results based on OPTIONS, which is a comma-sep'd list of 'cumulative', 'calls', and/or 'callers', e.g. 'cumulative,callers')]" \
+    "*::args:_gnu_generic"
+
+case $state in
+levels)
+    levels=("debug" "info" "warn" "error" "critical")
+    _describe -t levels 'supervisord levels' levels && return 0
+    ;;
+esac

File oh-my-zsh/plugins/supervisor/supervisor.plugin.zsh

View file
+# DECLARION: This plugin was created by hhatto. What I did is just making a portal from https://bitbucket.org/hhatto/zshcompfunc4supervisor.

File oh-my-zsh/plugins/suse/suse.plugin.zsh

View file
+alias zi='sudo zypper install'
+alias zrf='sudo zypper refresh'
+alias zs='zypper search'
+alias zup='sudo zypper dist-upgrade'
+alias zrm='sudo zypper remove'
+alias zp='sudo zypper patch'
+alias zps='sudo zypper ps'

File oh-my-zsh/plugins/symfony2/symfony2.plugin.zsh

View file
   fi
 }
 
-compdef _symfony2 app/console
+compdef _symfony2 app/console
+
+#Alias
+alias sf2='php app/console'
+alias sf2clear='php app/console cache:clear'

File oh-my-zsh/plugins/urltools/urltools.plugin.zsh

View file
+# URL Tools
+# Adds handy command line aliases useful for dealing with URLs
+#
+# Taken from:
+# http://ruslanspivak.com/2010/06/02/urlencode-and-urldecode-from-a-command-line/
+
+alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"'
+
+alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'

File oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh

View file
 zle -N zle-line-init
 zle -N zle-keymap-select
 
+#changing mode clobbers the keybinds, so store the keybinds before and execute 
+#them after
+binds=`bindkey -L`
 bindkey -v
+for bind in ${(@f)binds}; do eval $bind; done
+unset binds
 
 # if mode indicator wasn't setup by theme, define default
 if [[ "$MODE_INDICATOR" == "" ]]; then

File oh-my-zsh/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh

View file
+WRAPPER_FOUND=0
+for wrapsource in "/usr/bin/virtualenvwrapper.sh" "/usr/local/bin/virtualenvwrapper.sh" "/etc/bash_completion.d/virtualenvwrapper" ; do
+  if [[ -e $wrapsource ]] ; then
+    WRAPPER_FOUND=1
+    source $wrapsource
+
+    if [[ ! $DISABLE_VENV_CD -eq 1 ]]; then
+      # Automatically activate Git projects' virtual environments based on the
+      # directory name of the project. Virtual environment name can be overridden
+      # by placing a .venv file in the project root with a virtualenv name in it
+      function workon_cwd {
+          # Check that this is a Git repo
+          PROJECT_ROOT=`git rev-parse --show-toplevel 2> /dev/null`
+          if (( $? == 0 )); then
+              # Check for virtualenv name override
+              ENV_NAME=`basename "$PROJECT_ROOT"`
+              if [[ -f "$PROJECT_ROOT/.venv" ]]; then
+                  ENV_NAME=`cat "$PROJECT_ROOT/.venv"`
+              fi
+              # Activate the environment only if it is not already active
+              if [[ "$VIRTUAL_ENV" != "$WORKON_HOME/$ENV_NAME" ]]; then
+                  if [[ -e "$WORKON_HOME/$ENV_NAME/bin/activate" ]]; then
+                      workon "$ENV_NAME" && export CD_VIRTUAL_ENV="$ENV_NAME"
+                  fi
+              fi
+          elif [ $CD_VIRTUAL_ENV ]; then
+              # We've just left the repo, deactivate the environment
+              # Note: this only happens if the virtualenv was activated automatically
+              deactivate && unset CD_VIRTUAL_ENV
+          fi
+          unset PROJECT_ROOT
+      }
+
+      # New cd function that does the virtualenv magic
+      function cd {
+          builtin cd "$@" && workon_cwd
+      }
+    fi
+
+    break
+  fi
+done
+
+if [ $WRAPPER_FOUND -eq 0 ] ; then
+  print "zsh virtualenvwrapper plugin: Couldn't activate virtualenvwrapper. Please run \`pip install virtualenvwrapper\`."
+fi

File oh-my-zsh/plugins/yum/yum.plugin.zsh

View file
 alias ys="yum search"                       # search package
 alias yp="yum info"                         # show package info
 alias yl="yum list"                         # list packages
+alias ygl="yum grouplist"                   # list package groups
 alias yli="yum list installed"              # print all installed packages
+alias ymc="yum makecache"                   # rebuilds the yum package list
 
 alias yu="sudo yum update"                  # upgrate packages
 alias yi="sudo yum install"                 # install package
+alias ygi="sudo yum groupinstall"           # install package group
 alias yr="sudo yum remove"                  # remove package
+alias ygr="sudo yum groupremove"            # remove pagage group
 alias yrl="sudo yum remove --remove-leaves" # remove package and leaves
-alias yc="sudo yum clean all"               # clean cache
+alias yc="sudo yum clean all"               # clean cache

File oh-my-zsh/plugins/zeus/README.md

View file
+## zeus
+**Maintainer:** [b4mboo](https://github.com/b4mboo)
+
+* `zi` aliases `zeus init`
+* `zinit` aliases `zeus init`
+
+* `zs` aliases `zeus start`
+* `ztart` aliases `zeus start`
+
+* `zc` aliases `zeus console`
+* `zonsole` aliases `zeus console`
+
+* `zsr` aliases `zeus server`
+* `zerver` aliases `zeus server`
+
+* `zr` aliases `zeus rake`
+* `zake` aliases `zeus rake`
+
+* `zg` aliases `zeus generate`
+* `zenerate` aliases `zeus generate`
+
+* `zrn` aliases `zeus runner`
+* `zunner` aliases `zeus runner`
+
+* `zcu` aliases `zeus cucumber`
+* `zucumber` aliases `zeus cucumber`
+
+* `zt` aliases `zeus test`
+* `zest` aliases `zeus test`
+
+* `zu` aliases `zeus test test/unit/*`
+* `zunits` aliases `zeus test test/unit/*`
+
+* `zf` aliases `zeus test test/functional/*`
+* `zunctional` aliases `zeus test test/functional/*`
+
+* `za` aliases `zeus test test/unit/*; zeus test test/functional/; zeus cucumber`
+* `zall` aliases `zeus test test/unit/*; zeus test test/functional/; zeus cucumber`
+
+* `zsw` aliases `rm .zeus.sock`
+* `zweep` aliases `rm .zeus.sock`

File oh-my-zsh/plugins/zeus/zeus.plugin.zsh

View file
+# Some aliases for zeus. (See: https://github.com/burke/zeus)
+# Zeus preloads your Rails environment and forks that process whenever
+# needed. This effectively speeds up Rails' boot process to under 1 sec.
+
+# Always use bundler.
+# Rails depends on bundler, so we can be pretty sure, that there are no
+# problems with this command. For all the other aliases I provided an 
+# alternative, in case people have conflicts with other plugins (e.g. suse).
+alias zeus='bundle exec zeus'
+
+# Init
+alias zi='zeus init'
+alias zinit='zeus init'
+
+# Start
+alias zs='zeus start'
+alias ztart='zeus start'
+
+# Console
+alias zc='zeus console'
+alias zonsole='zeus console'