diff --git a/.oh-my-zsh/.gitignore b/.oh-my-zsh/.gitignore deleted file mode 100644 index 8fa66f0..0000000 --- a/.oh-my-zsh/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -locals.zsh -log/.zsh_history -projects.zsh -custom -!custom/plugins/example -!custom/example.zsh -*.swp -!custom/example.zshcache -cache/ diff --git a/.oh-my-zsh/MIT-LICENSE.txt b/.oh-my-zsh/MIT-LICENSE.txt deleted file mode 100644 index dfbd900..0000000 --- a/.oh-my-zsh/MIT-LICENSE.txt +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License - -Copyright (c) 2009-2015 Robby Russell and contributors (see https://github.com/robbyrussell/oh-my-zsh/contributors) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/.oh-my-zsh/README.markdown b/.oh-my-zsh/README.markdown deleted file mode 100644 index 9f96e31..0000000 --- a/.oh-my-zsh/README.markdown +++ /dev/null @@ -1,175 +0,0 @@ -![Oh My Zsh](https://s3.amazonaws.com/ohmyzsh/oh-my-zsh-logo.png) - - -Oh My Zsh is an open source, community-driven framework for managing your [zsh](http://www.zsh.org/) configuration. That sounds boring. Let's try this again. - -__Oh My Zsh is a way of life!__ Once installed, your terminal prompt will become the talk of the town _or your money back!_ Each time you interface with your command prompt, you'll be able take advantage of the hundreds of bundled plugins and pretty themes. Strangers will come up to you in cafés and ask you, _"that is amazing. are you some sort of genius?"_ Finally, you'll begin to get the sort of attention that you always felt that you deserved. ...or maybe you'll just use the time that you saved to start flossing more often. - -To learn more, visit http://ohmyz.sh and/or follow [ohmyzsh](https://twitter.com/ohmyzsh) on twitter. - -## Getting Started - - -### Prerequisites - -__Disclaimer:__ _Oh My Zsh works best on Mac OS X and Linux._ - -* Unix-based operating system (Mac OS X or Linux) -* [Zsh](http://www.zsh.org) should be installed (v4.3.9 or more recent) - * This is commonly pre-installed. (`zsh --version` to confirm) -* `curl` or `wget` should be installed - -### Basic Installation - -Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with either `curl` or `wget`. - -#### via curl - -`curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh` - -#### via wget - -`wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh` - -## Using Oh My Zsh - -### Plugins - -Oh My Zsh comes with a shit load of plugins to take advantage of. You can take a look in the [plugins](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins) directory and/or the [wiki](https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins) to see what's currently available. - -#### Enabling Plugins - -If you spot a plugin (or several) that you would like to use with Oh My Zsh, you will need to edit the `~/.zshrc` file. Once you open it with your favorite editor, you'll see a spot to list all the plugins that you'd like Oh My Zsh to load in initialization. - -For example, this line might begin to look like... - -`plugins=(git bundler osx rake ruby)` - -#### Using Plugins - -Most plugins (should! we're working on this) include a __README__, which documents how to use them. - -### Themes - -We'll admit it. Early in the Oh My Zsh world... we may have gotten a far too theme happy. We have over one hundred themes now bundled. Most of them have [screenshots](https://wiki.github.com/robbyrussell/oh-my-zsh/themes) on the wiki. Check them out! - -#### Selecting a Theme - -_Robby's theme is the default one. It's not the fanciest one. It's not the simplest one. It's just right (for him)._ - -Once you find a theme that you want to use, you will need to edit the `~/.zshrc` file. You'll see an environment variable (all caps) in there that looks like: - -`ZSH_THEME="robbyrussell"` - -To use a different theme, simple change the value to match the name of your desired theme. For example: - -`ZSH_THEME="agnoster"` (this is one of the fancy ones) - -Open up a new terminal window and your prompt should look something like... - -## Advanced Topics - -If you're the type that likes to get their hands dirty... these sections might resonate. - -### Advanced Installation - -For those who want to install this manually and/or set custom paths. - -#### Custom Directory - -The default location is `~/.oh-my-zsh` (hidden in your home directory) - -If you'd like to change the install directory with the `ZSH` environment variable, either by running `export ZSH=/your/path` before installing, or by setting it before the end of the install pipeline like this: - -`curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | ZSH=~/.dotfiles/zsh sh` - -#### Manual Installation - -##### 1. Clone the repository: - -`git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh` - -##### 2. *Optionally*, backup your existing @~/.zshrc@ file: - -`cp ~/.zshrc ~/.zshrc.orig` - -##### 3. Create a new zsh configuration file - -You can create a new zsh config file by copying the template that we included for you. - -`cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc` - -##### 4. Change your default shell - -`chsh -s /bin/zsh` - -##### 5. Initialize your new zsh configuration - -Once you open up a new terminal window, it should load zsh with Oh My Zsh's configuration. - -### Installation Problems - -If you have any hiccups installing, here are a few common fixes. - -* You _might_ need to modify your `PATH` in `~/.zshrc` if you're not able to find some commands after switching to `oh-my-zsh`. -* If you installed manually or changed the install location, check the `ZSH` environment variable in `~/.zshrc`. - -### Custom Plugins and Themes - -If you want to override any of the default behaviors, just add a new file (ending in `.zsh`) in the `custom/` directory. - -If you have many functions that go well together, you can put them as a `abcyzeae.plugin.zsh` file in the `custom/plugins/` directory and then enable this plugin. - -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/`. - -## Getting Updates - -By default, you will be prompted to check for upgrades every few weeks. If you would like `oh-my-zsh` to automatically upgrade itself without prompting you, set the following in your `~/.zshrc`: - -`DISABLE_UPDATE_PROMPT=true` - -To disable automatic upgrades, set the following in your `~/.zshrc`: - -`DISABLE_AUTO_UPDATE=true` - -### Manual Updates - -If you'd like to upgrade at any point in time (maybe someone just released a new plugin and you don't want to wait a week?)... you just need to run: - -`upgrade_oh_my_zsh` - -Magic! - -## Uninstalling Oh My Zsh - -Oh My Zsh isn't for everyone. We'll miss you, but we want to make this an easy breakup. - -If you want to uninstall `oh-my-zsh`, just run `uninstall_oh_my_zsh` from the command-line. It will remove itself and revert your previous `bash` or `zsh` configuration. - -## Contributing - -I'm far from being a [Zsh](http://www.zsh.org/) 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! - -We also need people to test out pull-requests. So take a look through [the open issues](https://github.com/robbyrussell/oh-my-zsh/issues) and help where you can. - -### Do NOT Send Us Themes - -We have (more than) enough themes for the time being. Please fork the project and add one in there – you can let people know how to grab it from there. - -## Contributors - -Oh My Zsh has a vibrant community of happy users and delightful contributors. Without all the time and help from our contributors, it wouldn't be so awesome. - -Thank you so much! - -## Follow Us - -We have an [ohmyzsh](https://twitter.com/ohmyzsh) account. You should follow it. - -## Merchandise - -We have [stickers](http://shop.planetargon.com/products/ohmyzsh-stickers-set-of-3-stickers) and [shirts](http://shop.planetargon.com/products/ohmyzsh-t-shirts) for you to show off your love of Oh My Zsh. Again, this will help you become the talk of the town! - -## LICENSE - -Oh My Zsh is released under the [MIT license](https://github.com/robbyrussell/oh-my-zsh/blob/master/MIT-LICENSE.txt). diff --git a/.oh-my-zsh/cache/.easter-egg b/.oh-my-zsh/cache/.easter-egg deleted file mode 100644 index 4b6164e..0000000 --- a/.oh-my-zsh/cache/.easter-egg +++ /dev/null @@ -1,4 +0,0 @@ -This file is only here so that Git will keep a cache directory as .gitignore is ignoring all the files within it. - -Feel free to add love notes for people here. - diff --git a/.oh-my-zsh/custom/example.zsh b/.oh-my-zsh/custom/example.zsh deleted file mode 100644 index 28ffcae..0000000 --- a/.oh-my-zsh/custom/example.zsh +++ /dev/null @@ -1,5 +0,0 @@ -# Add yourself some shortcuts to projects you often work on -# Example: -# -# brainstormr=/Users/robbyrussell/Projects/development/planetargon/brainstormr -# \ No newline at end of file diff --git a/.oh-my-zsh/custom/plugins/example/example.plugin.zsh b/.oh-my-zsh/custom/plugins/example/example.plugin.zsh deleted file mode 100644 index 406f274..0000000 --- a/.oh-my-zsh/custom/plugins/example/example.plugin.zsh +++ /dev/null @@ -1,2 +0,0 @@ -# Add your own custom plugins in the custom/plugins directory. Plugins placed -# here will override ones with the same name in the main plugins directory. diff --git a/.oh-my-zsh/lib/bzr.zsh b/.oh-my-zsh/lib/bzr.zsh deleted file mode 100644 index 005a165..0000000 --- a/.oh-my-zsh/lib/bzr.zsh +++ /dev/null @@ -1,10 +0,0 @@ -## Bazaar integration -## Just works with the GIT integration just add $(bzr_prompt_info) to the PROMPT -function bzr_prompt_info() { - BZR_CB=`bzr nick 2> /dev/null | grep -v "ERROR" | cut -d ":" -f2 | awk -F / '{print "bzr::"$1}'` - if [ -n "$BZR_CB" ]; then - BZR_DIRTY="" - [[ -n `bzr status` ]] && BZR_DIRTY=" %{$fg[red]%} * %{$fg[green]%}" - echo "$ZSH_THEME_SCM_PROMPT_PREFIX$BZR_CB$BZR_DIRTY$ZSH_THEME_GIT_PROMPT_SUFFIX" - fi -} \ No newline at end of file diff --git a/.oh-my-zsh/lib/completion.zsh b/.oh-my-zsh/lib/completion.zsh deleted file mode 100644 index 4b1bb0a..0000000 --- a/.oh-my-zsh/lib/completion.zsh +++ /dev/null @@ -1,64 +0,0 @@ -# fixme - the load process here seems a bit bizarre - -unsetopt menu_complete # do not autoselect the first completion entry -unsetopt flowcontrol -setopt auto_menu # show completion menu on succesive tab press -setopt complete_in_word -setopt always_to_end - -WORDCHARS='' - -zmodload -i zsh/complist - -## case-insensitive (all),partial-word and then substring completion -if [ "x$CASE_SENSITIVE" = "xtrue" ]; then - zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' - unset CASE_SENSITIVE -else - zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' -fi - -zstyle ':completion:*' list-colors '' - -# should this be in keybindings? -bindkey -M menuselect '^o' accept-and-infer-next-history - -zstyle ':completion:*:*:*:*:*' menu select -zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01' -if [ "$OSTYPE[0,7]" = "solaris" ] -then - zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm" -else - zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w -w" -fi - -# disable named-directories autocompletion -zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories - -# Use caching so that commands like apt and dpkg complete are useable -zstyle ':completion::complete:*' use-cache 1 -zstyle ':completion::complete:*' cache-path $ZSH_CACHE_DIR - -# Don't complete uninteresting users -zstyle ':completion:*:*:*:users' ignored-patterns \ - adm amanda apache at avahi avahi-autoipd beaglidx bin cacti canna \ - clamav daemon dbus distcache dnsmasq dovecot fax ftp games gdm \ - gkrellmd gopher hacluster haldaemon halt hsqldb ident junkbust kdm \ - ldap lp mail mailman mailnull man messagebus mldonkey mysql nagios \ - named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn \ - operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd \ - rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp \ - usbmux uucp vcsa wwwrun xfs '_*' - -# ... unless we really want to. -zstyle '*' single-ignored show - -if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then - expand-or-complete-with-dots() { - echo -n "\e[31m......\e[0m" - zle expand-or-complete - zle redisplay - } - zle -N expand-or-complete-with-dots - bindkey "^I" expand-or-complete-with-dots -fi diff --git a/.oh-my-zsh/lib/correction.zsh b/.oh-my-zsh/lib/correction.zsh deleted file mode 100644 index 3e1415a..0000000 --- a/.oh-my-zsh/lib/correction.zsh +++ /dev/null @@ -1,13 +0,0 @@ -if [[ "$ENABLE_CORRECTION" == "true" ]]; then - alias ebuild='nocorrect ebuild' - alias gist='nocorrect gist' - alias heroku='nocorrect heroku' - alias hpodder='nocorrect hpodder' - alias man='nocorrect man' - alias mkdir='nocorrect mkdir' - alias mv='nocorrect mv' - alias mysql='nocorrect mysql' - alias sudo='nocorrect sudo' - - setopt correct_all -fi diff --git a/.oh-my-zsh/lib/directories.zsh b/.oh-my-zsh/lib/directories.zsh deleted file mode 100644 index 3bffa9f..0000000 --- a/.oh-my-zsh/lib/directories.zsh +++ /dev/null @@ -1,33 +0,0 @@ -# Changing/making/removing directory -setopt auto_pushd -setopt pushd_ignore_dups -setopt pushdminus - -alias -g ...='../..' -alias -g ....='../../..' -alias -g .....='../../../..' -alias -g ......='../../../../..' - -alias 1='cd -' -alias 2='cd -2' -alias 3='cd -3' -alias 4='cd -4' -alias 5='cd -5' -alias 6='cd -6' -alias 7='cd -7' -alias 8='cd -8' -alias 9='cd -9' - -alias md='mkdir -p' -alias rd=rmdir -alias d='dirs -v | head -10' - -# List directory contents -alias lsa='ls -lah' -alias l='ls -lah' -alias ll='ls -lh' -alias la='ls -lAh' - -# Push and pop directories on directory stack -alias pu='pushd' -alias po='popd' diff --git a/.oh-my-zsh/lib/functions.zsh b/.oh-my-zsh/lib/functions.zsh deleted file mode 100644 index 17f5f9c..0000000 --- a/.oh-my-zsh/lib/functions.zsh +++ /dev/null @@ -1,75 +0,0 @@ -function zsh_stats() { - fc -l 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20 -} - -function uninstall_oh_my_zsh() { - env ZSH=$ZSH /bin/sh $ZSH/tools/uninstall.sh -} - -function upgrade_oh_my_zsh() { - env ZSH=$ZSH /bin/sh $ZSH/tools/upgrade.sh -} - -function take() { - mkdir -p $1 - cd $1 -} - -# -# Get the value of an alias. -# -# Arguments: -# 1. alias - The alias to get its value from -# STDOUT: -# The value of alias $1 (if it has one). -# Return value: -# 0 if the alias was found, -# 1 if it does not exist -# -function alias_value() { - alias "$1" | sed "s/^$1='\(.*\)'$/\1/" - test $(alias "$1") -} - -# -# Try to get the value of an alias, -# otherwise return the input. -# -# Arguments: -# 1. alias - The alias to get its value from -# STDOUT: -# The value of alias $1, or $1 if there is no alias $1. -# Return value: -# Always 0 -# -function try_alias_value() { - alias_value "$1" || echo "$1" -} - -# -# Set variable "$1" to default value "$2" if "$1" is not yet defined. -# -# Arguments: -# 1. name - The variable to set -# 2. val - The default value -# Return value: -# 0 if the variable exists, 3 if it was set -# -function default() { - test `typeset +m "$1"` && return 0 - typeset -g "$1"="$2" && return 3 -} - -# -# Set enviroment variable "$1" to default value "$2" if "$1" is not yet defined. -# -# Arguments: -# 1. name - The env variable to set -# 2. val - The default value -# Return value: -# 0 if the env variable exists, 3 if it was set -# -function env_default() { - env | grep -q "^$1=" && return 0 - export "$1=$2" && return 3 -} diff --git a/.oh-my-zsh/lib/git.zsh b/.oh-my-zsh/lib/git.zsh deleted file mode 100644 index 118841f..0000000 --- a/.oh-my-zsh/lib/git.zsh +++ /dev/null @@ -1,150 +0,0 @@ -# get the name of the branch we are on -function git_prompt_info() { - if [[ "$(command git config --get oh-my-zsh.hide-status 2>/dev/null)" != "1" ]]; then - ref=$(command git symbolic-ref HEAD 2> /dev/null) || \ - ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0 - echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX" - fi -} - - -# Checks if working tree is dirty -parse_git_dirty() { - local STATUS='' - local FLAGS - FLAGS=('--porcelain') - if [[ "$(command git config --get oh-my-zsh.hide-dirty)" != "1" ]]; then - if [[ $POST_1_7_2_GIT -gt 0 ]]; then - FLAGS+='--ignore-submodules=dirty' - fi - if [[ "$DISABLE_UNTRACKED_FILES_DIRTY" == "true" ]]; then - FLAGS+='--untracked-files=no' - fi - STATUS=$(command git status ${FLAGS} 2> /dev/null | tail -n1) - fi - if [[ -n $STATUS ]]; then - echo "$ZSH_THEME_GIT_PROMPT_DIRTY" - else - echo "$ZSH_THEME_GIT_PROMPT_CLEAN" - fi -} - -# get the difference between the local and remote branches -git_remote_status() { - remote=${$(command git rev-parse --verify ${hook_com[branch]}@{upstream} --symbolic-full-name 2>/dev/null)/refs\/remotes\/} - if [[ -n ${remote} ]] ; then - ahead=$(command git rev-list ${hook_com[branch]}@{upstream}..HEAD 2>/dev/null | wc -l) - behind=$(command git rev-list HEAD..${hook_com[branch]}@{upstream} 2>/dev/null | wc -l) - - if [ $ahead -eq 0 ] && [ $behind -gt 0 ] - then - echo "$ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE" - elif [ $ahead -gt 0 ] && [ $behind -eq 0 ] - then - echo "$ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE" - elif [ $ahead -gt 0 ] && [ $behind -gt 0 ] - then - echo "$ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE" - fi - fi -} - -# Checks if there are commits ahead from remote -function git_prompt_ahead() { - if $(echo "$(command git log @{upstream}..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then - echo "$ZSH_THEME_GIT_PROMPT_AHEAD" - fi -} - -# Gets the number of commits ahead from remote -function git_commits_ahead() { - if $(echo "$(command git log @{upstream}..HEAD 2> /dev/null)" | grep '^commit' &> /dev/null); then - COMMITS=$(command git log @{upstream}..HEAD | grep '^commit' | wc -l | tr -d ' ') - echo "$ZSH_THEME_GIT_COMMITS_AHEAD_PREFIX$COMMITS$ZSH_THEME_GIT_COMMITS_AHEAD_SUFFIX" - fi -} - -# Formats prompt string for current git commit short SHA -function git_prompt_short_sha() { - SHA=$(command git rev-parse --short HEAD 2> /dev/null) && echo "$ZSH_THEME_GIT_PROMPT_SHA_BEFORE$SHA$ZSH_THEME_GIT_PROMPT_SHA_AFTER" -} - -# Formats prompt string for current git commit long SHA -function git_prompt_long_sha() { - SHA=$(command git rev-parse HEAD 2> /dev/null) && echo "$ZSH_THEME_GIT_PROMPT_SHA_BEFORE$SHA$ZSH_THEME_GIT_PROMPT_SHA_AFTER" -} - -# Get the status of the working tree -git_prompt_status() { - INDEX=$(command git status --porcelain -b 2> /dev/null) - STATUS="" - if $(echo "$INDEX" | command grep -E '^\?\? ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_UNTRACKED$STATUS" - fi - if $(echo "$INDEX" | grep '^A ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS" - elif $(echo "$INDEX" | grep '^M ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_ADDED$STATUS" - fi - if $(echo "$INDEX" | grep '^ M ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS" - elif $(echo "$INDEX" | grep '^AM ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS" - elif $(echo "$INDEX" | grep '^ T ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_MODIFIED$STATUS" - fi - if $(echo "$INDEX" | grep '^R ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_RENAMED$STATUS" - fi - if $(echo "$INDEX" | grep '^ D ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS" - elif $(echo "$INDEX" | grep '^D ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS" - elif $(echo "$INDEX" | grep '^AD ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_DELETED$STATUS" - fi - if $(command git rev-parse --verify refs/stash >/dev/null 2>&1); then - STATUS="$ZSH_THEME_GIT_PROMPT_STASHED$STATUS" - fi - if $(echo "$INDEX" | grep '^UU ' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_UNMERGED$STATUS" - fi - if $(echo "$INDEX" | grep '^## .*ahead' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_AHEAD$STATUS" - fi - if $(echo "$INDEX" | grep '^## .*behind' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_BEHIND$STATUS" - fi - if $(echo "$INDEX" | grep '^## .*diverged' &> /dev/null); then - STATUS="$ZSH_THEME_GIT_PROMPT_DIVERGED$STATUS" - fi - echo $STATUS -} - -#compare the provided version of git to the version installed and on path -#prints 1 if input version <= installed version -#prints -1 otherwise -function git_compare_version() { - local INPUT_GIT_VERSION=$1; - local INSTALLED_GIT_VERSION - INPUT_GIT_VERSION=(${(s/./)INPUT_GIT_VERSION}); - INSTALLED_GIT_VERSION=($(command git --version 2>/dev/null)); - INSTALLED_GIT_VERSION=(${(s/./)INSTALLED_GIT_VERSION[3]}); - - for i in {1..3}; do - if [[ $INSTALLED_GIT_VERSION[$i] -gt $INPUT_GIT_VERSION[$i] ]]; then - echo 1 - return 0 - fi - if [[ $INSTALLED_GIT_VERSION[$i] -lt $INPUT_GIT_VERSION[$i] ]]; then - echo -1 - return 0 - fi - done - echo 0 -} - -#this is unlikely to change so make it all statically assigned -POST_1_7_2_GIT=$(git_compare_version "1.7.2") -#clean up the namespace slightly by removing the checker function -unset -f git_compare_version diff --git a/.oh-my-zsh/lib/grep.zsh b/.oh-my-zsh/lib/grep.zsh deleted file mode 100644 index 3fa103d..0000000 --- a/.oh-my-zsh/lib/grep.zsh +++ /dev/null @@ -1,28 +0,0 @@ -# is x grep argument available? -grep-flag-available() { - echo | grep $1 "" >/dev/null 2>&1 -} - -GREP_OPTIONS="" - -# color grep results -if grep-flag-available --color=auto; then - GREP_OPTIONS+=" --color=auto" -fi - -# ignore VCS folders (if the necessary grep flags are available) -VCS_FOLDERS="{.bzr,.cvs,.git,.hg,.svn}" - -if grep-flag-available --exclude-dir=.cvs; then - GREP_OPTIONS+=" --exclude-dir=$VCS_FOLDERS" -elif grep-flag-available --exclude=.cvs; then - GREP_OPTIONS+=" --exclude=$VCS_FOLDERS" -fi - -# export grep settings -alias grep="grep $GREP_OPTIONS" - -# clean up -unset GREP_OPTIONS -unset VCS_FOLDERS -unfunction grep-flag-available diff --git a/.oh-my-zsh/lib/history.zsh b/.oh-my-zsh/lib/history.zsh deleted file mode 100644 index 5de71c2..0000000 --- a/.oh-my-zsh/lib/history.zsh +++ /dev/null @@ -1,24 +0,0 @@ -## Command history configuration -if [ -z "$HISTFILE" ]; then - HISTFILE=$HOME/.zsh_history -fi - -HISTSIZE=10000 -SAVEHIST=10000 - -# Show history -case $HIST_STAMPS in - "mm/dd/yyyy") alias history='fc -fl 1' ;; - "dd.mm.yyyy") alias history='fc -El 1' ;; - "yyyy-mm-dd") alias history='fc -il 1' ;; - *) alias history='fc -l 1' ;; -esac - -setopt append_history -setopt extended_history -setopt hist_expire_dups_first -setopt hist_ignore_dups # ignore duplication command history list -setopt hist_ignore_space -setopt hist_verify -setopt inc_append_history -setopt share_history # share command history data diff --git a/.oh-my-zsh/lib/key-bindings.zsh b/.oh-my-zsh/lib/key-bindings.zsh deleted file mode 100644 index eb2b580..0000000 --- a/.oh-my-zsh/lib/key-bindings.zsh +++ /dev/null @@ -1,87 +0,0 @@ -# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html -# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Zle-Builtins -# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Standard-Widgets - -# Make sure that the terminal is in application mode when zle is active, since -# only then values from $terminfo are valid -if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then - function zle-line-init() { - echoti smkx - } - function zle-line-finish() { - echoti rmkx - } - zle -N zle-line-init - zle -N zle-line-finish -fi - -bindkey -e # Use emacs key bindings - -bindkey '\ew' kill-region # [Esc-w] - Kill from the cursor to the mark -bindkey -s '\el' 'ls\n' # [Esc-l] - run command: ls -bindkey '^r' history-incremental-search-backward # [Ctrl-r] - Search backward incrementally for a specified string. The string may begin with ^ to anchor the search to the beginning of the line. -if [[ "${terminfo[kpp]}" != "" ]]; then - bindkey "${terminfo[kpp]}" up-line-or-history # [PageUp] - Up a line of history -fi -if [[ "${terminfo[knp]}" != "" ]]; then - bindkey "${terminfo[knp]}" down-line-or-history # [PageDown] - Down a line of history -fi - -if [[ "${terminfo[kcuu1]}" != "" ]]; then - bindkey "${terminfo[kcuu1]}" up-line-or-search # start typing + [Up-Arrow] - fuzzy find history forward -fi -if [[ "${terminfo[kcud1]}" != "" ]]; then - bindkey "${terminfo[kcud1]}" down-line-or-search # start typing + [Down-Arrow] - fuzzy find history backward -fi - -if [[ "${terminfo[khome]}" != "" ]]; then - bindkey "${terminfo[khome]}" beginning-of-line # [Home] - Go to beginning of line -fi -if [[ "${terminfo[kend]}" != "" ]]; then - bindkey "${terminfo[kend]}" end-of-line # [End] - Go to end of line -fi - -bindkey ' ' magic-space # [Space] - do history expansion - -bindkey '^[[1;5C' forward-word # [Ctrl-RightArrow] - move forward one word -bindkey '^[[1;5D' backward-word # [Ctrl-LeftArrow] - move backward one word - -if [[ "${terminfo[kcbt]}" != "" ]]; then - bindkey "${terminfo[kcbt]}" reverse-menu-complete # [Shift-Tab] - move through the completion menu backwards -fi - -bindkey '^?' backward-delete-char # [Backspace] - delete backward -if [[ "${terminfo[kdch1]}" != "" ]]; then - bindkey "${terminfo[kdch1]}" delete-char # [Delete] - delete forward -else - bindkey "^[[3~" delete-char - bindkey "^[3;5~" delete-char - bindkey "\e[3~" delete-char -fi - -# Edit the current command line in $EDITOR -autoload -U edit-command-line -zle -N edit-command-line -bindkey '\C-x\C-e' edit-command-line - -# file rename magick -bindkey "^[m" copy-prev-shell-word - -# consider emacs keybindings: - -#bindkey -e ## emacs key bindings -# -#bindkey '^[[A' up-line-or-search -#bindkey '^[[B' down-line-or-search -#bindkey '^[^[[C' emacs-forward-word -#bindkey '^[^[[D' emacs-backward-word -# -#bindkey -s '^X^Z' '%-^M' -#bindkey '^[e' expand-cmd-path -#bindkey '^[^I' reverse-menu-complete -#bindkey '^X^N' accept-and-infer-next-history -#bindkey '^W' kill-region -#bindkey '^I' complete-word -## Fix weird sequence that rxvt produces -#bindkey -s '^[[Z' '\t' -# diff --git a/.oh-my-zsh/lib/misc.zsh b/.oh-my-zsh/lib/misc.zsh deleted file mode 100644 index 0b7cb26..0000000 --- a/.oh-my-zsh/lib/misc.zsh +++ /dev/null @@ -1,22 +0,0 @@ -## smart urls -autoload -U url-quote-magic -zle -N self-insert url-quote-magic - -## jobs -setopt long_list_jobs - -## pager -export PAGER="less" -export LESS="-R" - -## super user alias -alias _='sudo' -alias please='sudo' - -## more intelligent acking for ubuntu users -alias afind='ack-grep -il' - -# only define LC_CTYPE if undefined -if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then - export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG -fi diff --git a/.oh-my-zsh/lib/nvm.zsh b/.oh-my-zsh/lib/nvm.zsh deleted file mode 100644 index 61d997f..0000000 --- a/.oh-my-zsh/lib/nvm.zsh +++ /dev/null @@ -1,9 +0,0 @@ -# get the node.js version -function nvm_prompt_info() { - [ -f "$HOME/.nvm/nvm.sh" ] || return - local nvm_prompt - nvm_prompt=$(node -v 2>/dev/null) - [[ "${nvm_prompt}x" == "x" ]] && return - nvm_prompt=${nvm_prompt:1} - echo "${ZSH_THEME_NVM_PROMPT_PREFIX}${nvm_prompt}${ZSH_THEME_NVM_PROMPT_SUFFIX}" -} diff --git a/.oh-my-zsh/lib/prompt_info_functions.zsh b/.oh-my-zsh/lib/prompt_info_functions.zsh deleted file mode 100644 index 335c02a..0000000 --- a/.oh-my-zsh/lib/prompt_info_functions.zsh +++ /dev/null @@ -1,33 +0,0 @@ -# *_prompt_info functions for usage in your prompt -# -# Plugin creators, please add your *_prompt_info function to the list -# of dummy implementations to help theme creators not receiving errors -# without the need of implementing conditional clauses. -# -# See also lib/bzr.zsh, lib/git.zsh and lib/nvm.zsh for -# git_prompt_info, bzr_prompt_info and nvm_prompt_info - -# Dummy implementations that return false to prevent command_not_found -# errors with themes, that implement these functions -# Real implementations will be used when the respective plugins are loaded -function chruby_prompt_info hg_prompt_info pyenv_prompt_info \ - rbenv_prompt_info svn_prompt_info vi_mode_prompt_info \ - virtualenv_prompt_info { - return 1 -} - -# oh-my-zsh supports an rvm prompt by default -# get the name of the rvm ruby version -function rvm_prompt_info() { - [ -f $HOME/.rvm/bin/rvm-prompt ] || return 1 - local rvm_prompt - rvm_prompt=$($HOME/.rvm/bin/rvm-prompt ${=ZSH_THEME_RVM_PROMPT_OPTIONS} 2>/dev/null) - [[ "${rvm_prompt}x" == "x" ]] && return 1 - echo "${ZSH_THEME_RVM_PROMPT_PREFIX:=(}${rvm_prompt}${ZSH_THEME_RVM_PROMPT_SUFFIX:=)}" -} - -# use this to enable users to see their ruby version, no matter which -# version management system they use -function ruby_prompt_info() { - echo $(rvm_prompt_info || rbenv_prompt_info || chruby_prompt_info) -} diff --git a/.oh-my-zsh/lib/spectrum.zsh b/.oh-my-zsh/lib/spectrum.zsh deleted file mode 100644 index b683aca..0000000 --- a/.oh-my-zsh/lib/spectrum.zsh +++ /dev/null @@ -1,37 +0,0 @@ -#! /bin/zsh -# A script to make using 256 colors in zsh less painful. -# P.C. Shyamshankar -# Copied from http://github.com/sykora/etc/blob/master/zsh/functions/spectrum/ - -typeset -Ag FX FG BG - -FX=( - reset "%{%}" - bold "%{%}" no-bold "%{%}" - italic "%{%}" no-italic "%{%}" - underline "%{%}" no-underline "%{%}" - blink "%{%}" no-blink "%{%}" - reverse "%{%}" no-reverse "%{%}" -) - -for color in {000..255}; do - FG[$color]="%{[38;5;${color}m%}" - BG[$color]="%{[48;5;${color}m%}" -done - - -ZSH_SPECTRUM_TEXT=${ZSH_SPECTRUM_TEXT:-Arma virumque cano Troiae qui primus ab oris} - -# Show all 256 colors with color number -function spectrum_ls() { - for code in {000..255}; do - print -P -- "$code: %F{$code}$ZSH_SPECTRUM_TEXT%f" - done -} - -# Show all 256 colors where the background is set to specific color -function spectrum_bls() { - for code in {000..255}; do - print -P -- "$BG[$code]$code: $ZSH_SPECTRUM_TEXT %{$reset_color%}" - done -} diff --git a/.oh-my-zsh/lib/termsupport.zsh b/.oh-my-zsh/lib/termsupport.zsh deleted file mode 100644 index e1c2e2f..0000000 --- a/.oh-my-zsh/lib/termsupport.zsh +++ /dev/null @@ -1,66 +0,0 @@ -# Set terminal window and tab/icon title -# -# usage: title short_tab_title [long_window_title] -# -# See: http://www.faqs.org/docs/Linux-mini/Xterm-Title.html#ss3.1 -# Fully supports screen, iterm, and probably most modern xterm and rxvt -# (In screen, only short_tab_title is used) -# Limited support for Apple Terminal (Terminal can't set window and tab separately) -function title { - [[ "$EMACS" == *term* ]] && return - - # if $2 is unset use $1 as default - # if it is set and empty, leave it as is - : ${2=$1} - - if [[ "$TERM" == screen* ]]; then - print -Pn "\ek$1:q\e\\" #set screen hardstatus, usually truncated at 20 chars - elif [[ "$TERM" == xterm* ]] || [[ "$TERM" == rxvt* ]] || [[ "$TERM" == ansi ]] || [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then - print -Pn "\e]2;$2:q\a" #set window name - print -Pn "\e]1;$1:q\a" #set icon (=tab) name - fi -} - -ZSH_THEME_TERM_TAB_TITLE_IDLE="%15<..<%~%<<" #15 char left truncated PWD -ZSH_THEME_TERM_TITLE_IDLE="%n@%m: %~" - -# Runs before showing the prompt -function omz_termsupport_precmd { - if [[ $DISABLE_AUTO_TITLE == true ]]; then - return - fi - - title $ZSH_THEME_TERM_TAB_TITLE_IDLE $ZSH_THEME_TERM_TITLE_IDLE -} - -# Runs before executing the command -function omz_termsupport_preexec { - if [[ $DISABLE_AUTO_TITLE == true ]]; then - return - fi - - emulate -L zsh - setopt extended_glob - - # cmd name only, or if this is sudo or ssh, the next cmd - local CMD=${1[(wr)^(*=*|sudo|ssh|rake|-*)]:gs/%/%%} - local LINE="${2:gs/%/%%}" - - title '$CMD' '%100>...>$LINE%<<' -} - -precmd_functions+=(omz_termsupport_precmd) -preexec_functions+=(omz_termsupport_preexec) - - -# Runs before showing the prompt, to update the current directory in Terminal.app -function omz_termsupport_cwd { - # Notify Terminal.app of current directory using undocumented OSC sequence - # found in OS X 10.9 and 10.10's /etc/bashrc - if [[ $TERM_PROGRAM == Apple_Terminal ]] && [[ -z $INSIDE_EMACS ]]; then - local PWD_URL="file://$HOSTNAME${PWD// /%20}" - printf '\e]7;%s\a' "$PWD_URL" - fi -} - -precmd_functions+=(omz_termsupport_cwd) diff --git a/.oh-my-zsh/lib/theme-and-appearance.zsh b/.oh-my-zsh/lib/theme-and-appearance.zsh deleted file mode 100644 index 926303c..0000000 --- a/.oh-my-zsh/lib/theme-and-appearance.zsh +++ /dev/null @@ -1,44 +0,0 @@ -# ls colors -autoload -U colors && colors -export LSCOLORS="Gxfxcxdxbxegedabagacad" - -# Enable ls colors -if [ "$DISABLE_LS_COLORS" != "true" ] -then - # Find the option for using colors in ls, depending on the version: Linux or BSD - if [[ "$(uname -s)" == "NetBSD" ]]; then - # On NetBSD, test if "gls" (GNU ls) is installed (this one supports colors); - # otherwise, leave ls as is, because NetBSD's ls doesn't support -G - gls --color -d . &>/dev/null 2>&1 && alias ls='gls --color=tty' - elif [[ "$(uname -s)" == "OpenBSD" ]]; then - # On OpenBSD, test if "colorls" is installed (this one supports colors); - # otherwise, leave ls as is, because OpenBSD's ls doesn't support -G - colorls -G -d . &>/dev/null 2>&1 && alias ls='colorls -G' - else - ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G' - fi -fi - -#setopt no_beep -setopt auto_cd -setopt multios -setopt cdablevars - -if [[ x$WINDOW != x ]] -then - SCREEN_NO="%B$WINDOW%b " -else - SCREEN_NO="" -fi - -# Apply theming defaults -PS1="%n@%m:%~%# " - -# git theming default: Variables for theming the git info prompt -ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix at the very beginning of the prompt, before the branch name -ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt -ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty -ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean - -# Setup the prompt with pretty colors -setopt prompt_subst diff --git a/.oh-my-zsh/log/.easter-egg b/.oh-my-zsh/log/.easter-egg deleted file mode 100644 index 2533149..0000000 --- a/.oh-my-zsh/log/.easter-egg +++ /dev/null @@ -1,4 +0,0 @@ -This file is only here so that Git will keep a log directory as .gitignore is ignoring all the log files within it. - -feel free to add love notes for people here. - diff --git a/.oh-my-zsh/oh-my-zsh.sh b/.oh-my-zsh/oh-my-zsh.sh deleted file mode 100644 index bc7a8e4..0000000 --- a/.oh-my-zsh/oh-my-zsh.sh +++ /dev/null @@ -1,99 +0,0 @@ -# Check for updates on initial load... -if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then - env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh -fi - -# Initializes Oh My Zsh - -# add a function path -fpath=($ZSH/functions $ZSH/completions $fpath) - -# Set ZSH_CUSTOM to the path where your custom config files -# and plugins exists, or else we will use the default custom/ -if [[ -z "$ZSH_CUSTOM" ]]; then - ZSH_CUSTOM="$ZSH/custom" -fi - -# Set ZSH_CACHE_DIR to the path where cache files sould be created -# or else we will use the default cache/ -if [[ -z "$ZSH_CACHE_DIR" ]]; then - ZSH_CACHE_DIR="$ZSH/cache/" -fi - - -# Load all of the config files in ~/oh-my-zsh that end in .zsh -# TIP: Add files you don't want in git to .gitignore -for config_file ($ZSH/lib/*.zsh); do - custom_config_file="${ZSH_CUSTOM}/lib/${config_file:t}" - [ -f "${custom_config_file}" ] && config_file=${custom_config_file} - source $config_file -done - - -is_plugin() { - local base_dir=$1 - local name=$2 - test -f $base_dir/plugins/$name/$name.plugin.zsh \ - || test -f $base_dir/plugins/$name/_$name -} -# Add all defined plugins to fpath. This must be done -# before running compinit. -for plugin ($plugins); do - if is_plugin $ZSH_CUSTOM $plugin; then - fpath=($ZSH_CUSTOM/plugins/$plugin $fpath) - elif is_plugin $ZSH $plugin; then - fpath=($ZSH/plugins/$plugin $fpath) - fi -done - -# Figure out the SHORT hostname -if [[ "$OSTYPE" = darwin* ]]; then - # OS X's $HOST changes with dhcp, etc. Use ComputerName if possible. - SHORT_HOST=$(scutil --get ComputerName 2>/dev/null) || SHORT_HOST=${HOST/.*/} -else - SHORT_HOST=${HOST/.*/} -fi - -# Save the location of the current completion dump file. -if [ -z "$ZSH_COMPDUMP" ]; then - ZSH_COMPDUMP="${ZDOTDIR:-${HOME}}/.zcompdump-${SHORT_HOST}-${ZSH_VERSION}" -fi - -# Load and run compinit -autoload -U compinit -compinit -i -d "${ZSH_COMPDUMP}" - -# Load all of the plugins that were defined in ~/.zshrc -for plugin ($plugins); do - if [ -f $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh ]; then - source $ZSH_CUSTOM/plugins/$plugin/$plugin.plugin.zsh - elif [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then - source $ZSH/plugins/$plugin/$plugin.plugin.zsh - fi -done - -# Load all of your custom configurations from custom/ -for config_file ($ZSH_CUSTOM/*.zsh(N)); do - source $config_file -done -unset config_file - -# Load the theme -if [ "$ZSH_THEME" = "random" ]; then - themes=($ZSH/themes/*zsh-theme) - N=${#themes[@]} - ((N=(RANDOM%N)+1)) - RANDOM_THEME=${themes[$N]} - source "$RANDOM_THEME" - echo "[oh-my-zsh] Random theme '$RANDOM_THEME' loaded..." -else - if [ ! "$ZSH_THEME" = "" ]; then - if [ -f "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" ]; then - source "$ZSH_CUSTOM/$ZSH_THEME.zsh-theme" - elif [ -f "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" ]; then - source "$ZSH_CUSTOM/themes/$ZSH_THEME.zsh-theme" - else - source "$ZSH/themes/$ZSH_THEME.zsh-theme" - fi - fi -fi diff --git a/.oh-my-zsh/plugins/adb/README.md b/.oh-my-zsh/plugins/adb/README.md deleted file mode 100644 index 075beec..0000000 --- a/.oh-my-zsh/plugins/adb/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# adb autocomplete plugin - -* Adds autocomplete options for all adb commands. - - -## Requirements - -In order to make this work, you will need to have the Android adb tools set up in your path. diff --git a/.oh-my-zsh/plugins/adb/_adb b/.oh-my-zsh/plugins/adb/_adb deleted file mode 100644 index 2208958..0000000 --- a/.oh-my-zsh/plugins/adb/_adb +++ /dev/null @@ -1,40 +0,0 @@ -#compdef adb -#autoload - -# in order to make this work, you will need to have the android adb tools - -# adb zsh completion, based on homebrew completion - -local -a _1st_arguments -_1st_arguments=( -'bugreport:return all information from the device that should be included in a bug report.' -'connect:connect to a device via TCP/IP Port 5555 is default.' -'devices:list all connected devices' -'disconnect:disconnect from a TCP/IP device. Port 5555 is default.' -'emu:run emulator console command' -'forward:forward socket connections' -'help:show the help message' -'install:push this package file to the device and install it' -'jdwp:list PIDs of processes hosting a JDWP transport' -'logcat:View device log' -'pull:copy file/dir from device' -'push:copy file/dir to device' -'shell:run remote shell interactively' -'sync:copy host->device only if changed (-l means list but dont copy)' -‘tcpip:restart host adb in tcpip mode’ -'uninstall:remove this app package from the device' -'version:show version num' -) - -local expl -local -a pkgs installed_pkgs - -_arguments \ - '*:: :->subcmds' && return 0 - -if (( CURRENT == 1 )); then - _describe -t commands "adb subcommand" _1st_arguments - return -fi - -_files diff --git a/.oh-my-zsh/plugins/ant/ant.plugin.zsh b/.oh-my-zsh/plugins/ant/ant.plugin.zsh deleted file mode 100644 index 0b738c9..0000000 --- a/.oh-my-zsh/plugins/ant/ant.plugin.zsh +++ /dev/null @@ -1,16 +0,0 @@ -_ant_does_target_list_need_generating () { - [ ! -f .ant_targets ] && return 0; - [ build.xml -nt .ant_targets ] && return 0; - return 1; -} - -_ant () { - if [ -f build.xml ]; then - if _ant_does_target_list_need_generating; then - ant -p | awk -F " " 'NR > 5 { print lastTarget }{lastTarget = $1}' > .ant_targets - fi - compadd -- `cat .ant_targets` - fi -} - -compdef _ant ant diff --git a/.oh-my-zsh/plugins/apache2-macports/apache2-macports.plugin.zsh b/.oh-my-zsh/plugins/apache2-macports/apache2-macports.plugin.zsh deleted file mode 100644 index 1caa4cf..0000000 --- a/.oh-my-zsh/plugins/apache2-macports/apache2-macports.plugin.zsh +++ /dev/null @@ -1,6 +0,0 @@ -# commands to control local apache2 server installation -# paths are for osx installation via macports - -alias apache2start='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start' -alias apache2stop='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop' -alias apache2restart='sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart' diff --git a/.oh-my-zsh/plugins/archlinux/archlinux.plugin.zsh b/.oh-my-zsh/plugins/archlinux/archlinux.plugin.zsh deleted file mode 100644 index 059884c..0000000 --- a/.oh-my-zsh/plugins/archlinux/archlinux.plugin.zsh +++ /dev/null @@ -1,103 +0,0 @@ -# Archlinux zsh aliases and functions -# Usage is also described at https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins - -# Look for yaourt, and add some useful functions if we have it. -if [[ -x `which yaourt` ]]; then - upgrade () { - yaourt -Syu - } - alias yaconf='yaourt -C' # Fix all configuration files with vimdiff - # Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips - alias yaupg='yaourt -Syua' # Synchronize with repositories before upgrading packages (AUR packages too) that are out of date on the local system. - alias yasu='yaourt --sucre' # Same as yaupg, but without confirmation - alias yain='yaourt -S' # Install specific package(s) from the repositories - alias yains='yaourt -U' # Install specific package not from the repositories but from a file - alias yare='yaourt -R' # Remove the specified package(s), retaining its configuration(s) and required dependencies - alias yarem='yaourt -Rns' # Remove the specified package(s), its configuration(s) and unneeded dependencies - alias yarep='yaourt -Si' # Display information about a given package in the repositories - alias yareps='yaourt -Ss' # Search for package(s) in the repositories - alias yaloc='yaourt -Qi' # Display information about a given package in the local database - alias yalocs='yaourt -Qs' # Search for package(s) in the local database - alias yalst='yaourt -Qe' # List installed packages, even those installed from AUR (they're tagged as "local") - alias yaorph='yaourt -Qtd' # Remove orphans using yaourt - # Additional yaourt alias examples - if [[ -x `which abs` && -x `which aur` ]]; then - alias yaupd='yaourt -Sy && sudo abs && sudo aur' # Update and refresh the local package, ABS and AUR databases against repositories - elif [[ -x `which abs` ]]; then - alias yaupd='yaourt -Sy && sudo abs' # Update and refresh the local package and ABS databases against repositories - elif [[ -x `which aur` ]]; then - alias yaupd='yaourt -Sy && sudo aur' # Update and refresh the local package and AUR databases against repositories - else - alias yaupd='yaourt -Sy' # Update and refresh the local package database against repositories - fi - alias yainsd='yaourt -S --asdeps' # Install given package(s) as dependencies of another package - alias yamir='yaourt -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist -else - upgrade() { - sudo pacman -Syu - } -fi - -# Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips -alias pacupg='sudo pacman -Syu' # Synchronize with repositories before upgrading packages that are out of date on the local system. -alias pacin='sudo pacman -S' # Install specific package(s) from the repositories -alias pacins='sudo pacman -U' # Install specific package not from the repositories but from a file -alias pacre='sudo pacman -R' # Remove the specified package(s), retaining its configuration(s) and required dependencies -alias pacrem='sudo pacman -Rns' # Remove the specified package(s), its configuration(s) and unneeded dependencies -alias pacrep='pacman -Si' # Display information about a given package in the repositories -alias pacreps='pacman -Ss' # Search for package(s) in the repositories -alias pacloc='pacman -Qi' # Display information about a given package in the local database -alias paclocs='pacman -Qs' # Search for package(s) in the local database -# Additional pacman alias examples -if [[ -x `which abs` && -x `which aur` ]]; then - alias pacupd='sudo pacman -Sy && sudo abs && sudo aur' # Update and refresh the local package, ABS and AUR databases against repositories -elif [[ -x `which abs` ]]; then - alias pacupd='sudo pacman -Sy && sudo abs' # Update and refresh the local package and ABS databases against repositories -elif [[ -x `which aur` ]]; then - alias pacupd='sudo pacman -Sy && sudo aur' # Update and refresh the local package and AUR databases against repositories -else - alias pacupd='sudo pacman -Sy' # Update and refresh the local package database against repositories -fi -alias pacinsd='sudo pacman -S --asdeps' # Install given package(s) as dependencies of another package -alias pacmir='sudo pacman -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist - -# https://bbs.archlinux.org/viewtopic.php?id=93683 -paclist() { - 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}' -} - -alias paclsorphans='sudo pacman -Qdt' -alias pacrmorphans='sudo pacman -Rs $(pacman -Qtdq)' - -pacdisowned() { - tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$ - db=$tmp/db - fs=$tmp/fs - - mkdir "$tmp" - trap 'rm -rf "$tmp"' EXIT - - pacman -Qlq | sort -u > "$db" - - find /bin /etc /lib /sbin /usr \ - ! -name lost+found \ - \( -type d -printf '%p/\n' -o -print \) | sort > "$fs" - - comm -23 "$fs" "$db" -} - -pacmanallkeys() { - # Get all keys for developers and trusted users - curl https://www.archlinux.org/{developers,trustedusers}/ | - awk -F\" '(/pgp.mit.edu/) {sub(/.*search=0x/,"");print $1}' | - xargs sudo pacman-key --recv-keys -} - -pacmansignkeys() { - for key in $*; do - sudo pacman-key --recv-keys $key - sudo pacman-key --lsign-key $key - printf 'trust\n3\n' | sudo gpg --homedir /etc/pacman.d/gnupg \ - --no-permission-warning --command-fd 0 --edit-key $key - done -} diff --git a/.oh-my-zsh/plugins/atom/atom.plugin.zsh b/.oh-my-zsh/plugins/atom/atom.plugin.zsh deleted file mode 100644 index 9adb903..0000000 --- a/.oh-my-zsh/plugins/atom/atom.plugin.zsh +++ /dev/null @@ -1,14 +0,0 @@ -local _atom_paths > /dev/null 2>&1 -_atom_paths=( - "$HOME/Applications/Atom.app" - "/Applications/Atom.app" -) - -for _atom_path in $_atom_paths; do - if [[ -a $_atom_path ]]; then - alias at="open -a '$_atom_path'" - break - fi -done - -alias att='at .' diff --git a/.oh-my-zsh/plugins/autoenv/autoenv.plugin.zsh b/.oh-my-zsh/plugins/autoenv/autoenv.plugin.zsh deleted file mode 100644 index a827184..0000000 --- a/.oh-my-zsh/plugins/autoenv/autoenv.plugin.zsh +++ /dev/null @@ -1,29 +0,0 @@ -# Activates autoenv or reports its failure -if ! source $HOME/.autoenv/activate.sh 2>/dev/null; then - echo '-------- AUTOENV ---------' - echo 'Could not find ~/.autoenv/activate.sh.' - echo 'Please check if autoenv is correctly installed.' - echo 'In the meantime the autoenv plugin is DISABLED.' - echo '--------------------------' - return 1 -fi - -# The use_env call below is a reusable command to activate/create a new Python -# virtualenv, requiring only a single declarative line of code in your .env files. -# It only performs an action if the requested virtualenv is not the current one. - -use_env() { - typeset venv - venv="$1" - if [[ "${VIRTUAL_ENV:t}" != "$venv" ]]; then - if workon | grep -q "$venv"; then - workon "$venv" - else - echo -n "Create virtualenv $venv now? (Yn) " - read answer - if [[ "$answer" == "Y" ]]; then - mkvirtualenv "$venv" - fi - fi - fi -} diff --git a/.oh-my-zsh/plugins/autojump/autojump.plugin.zsh b/.oh-my-zsh/plugins/autojump/autojump.plugin.zsh deleted file mode 100644 index 4cf0364..0000000 --- a/.oh-my-zsh/plugins/autojump/autojump.plugin.zsh +++ /dev/null @@ -1,21 +0,0 @@ -if [ $commands[autojump] ]; then # check if autojump is installed - if [ -f $HOME/.autojump/etc/profile.d/autojump.zsh ]; then # manual user-local installation - . $HOME/.autojump/etc/profile.d/autojump.zsh - elif [ -f $HOME/.autojump/share/autojump/autojump.zsh ]; then # another manual user-local installation - . $HOME/.autojump/share/autojump/autojump.zsh - elif [ -f $HOME/.nix-profile/etc/profile.d/autojump.zsh ]; then # nix installation - . $HOME/.nix-profile/etc/profile.d/autojump.zsh - elif [ -f /usr/share/autojump/autojump.zsh ]; then # debian and ubuntu package - . /usr/share/autojump/autojump.zsh - elif [ -f /etc/profile.d/autojump.zsh ]; then # manual installation - . /etc/profile.d/autojump.zsh - elif [ -f /etc/profile.d/autojump.sh ]; then # gentoo installation - . /etc/profile.d/autojump.sh - elif [ -f /usr/local/share/autojump/autojump.zsh ]; then # freebsd installation - . /usr/local/share/autojump/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.zsh ]; then # mac os x with brew - . `brew --prefix`/etc/autojump.zsh - fi -fi diff --git a/.oh-my-zsh/plugins/autopep8/_autopep8 b/.oh-my-zsh/plugins/autopep8/_autopep8 deleted file mode 100644 index c14d06d..0000000 --- a/.oh-my-zsh/plugins/autopep8/_autopep8 +++ /dev/null @@ -1,32 +0,0 @@ -#compdef autopep8 -# -# this is zsh completion function file. -# generated by genzshcomp(ver: 0.5.1) -# - -typeset -A opt_args -local context state line - -_arguments -s -S \ - "--help[show this help message and exit]:" \ - "-h[show this help message and exit]:" \ - "--version[show program's version number and exit]:" \ - "--verbose[print verbose messages; multiple -v result in more verbose messages]" \ - "-v[print verbose messages; multiple -v result in more verbose messages]" \ - "--diff[print the diff for the fixed source]" \ - "-d[print the diff for the fixed source]" \ - "--in-place[make changes to files in place]" \ - "-i[make changes to files in place]" \ - "--recursive[run recursively; must be used with --in-place or --diff]" \ - "-r[run recursively; must be used with --in-place or --diff]" \ - "--jobs[number of parallel jobs; match CPU count if value is less than 1]::n number of parallel jobs; match CPU count if value is:_files" \ - "-j[number of parallel jobs; match CPU count if value is less than 1]::n number of parallel jobs; match CPU count if value is:_files" \ - "--pep8-passes[maximum number of additional pep8 passes (default: 100)]::n:_files" \ - "-p[maximum number of additional pep8 passes (default: 100)]::n:_files" \ - "-a[-a result in more aggressive changes]::result:_files" \ - "--exclude[exclude files/directories that match these comma- separated globs]::globs:_files" \ - "--list-fixes[list codes for fixes; used by --ignore and --select]" \ - "--ignore[do not fix these errors/warnings (default E226,E24)]::errors:_files" \ - "--select[fix only these errors/warnings (e.g. E4,W)]::errors:_files" \ - "--max-line-length[set maximum allowed line length (default: 79)]::n:_files" \ - "*::args:_files" diff --git a/.oh-my-zsh/plugins/autopep8/autopep8.plugin.zsh b/.oh-my-zsh/plugins/autopep8/autopep8.plugin.zsh deleted file mode 100644 index e69de29..0000000 diff --git a/.oh-my-zsh/plugins/aws/aws.plugin.zsh b/.oh-my-zsh/plugins/aws/aws.plugin.zsh deleted file mode 100644 index 0ae18dd..0000000 --- a/.oh-my-zsh/plugins/aws/aws.plugin.zsh +++ /dev/null @@ -1,31 +0,0 @@ -_homebrew-installed() { - type brew &> /dev/null -} - -_awscli-homebrew-installed() { - brew list awscli &> /dev/null -} - -export AWS_HOME=~/.aws - -function agp { - echo $AWS_DEFAULT_PROFILE -} -function asp { - export AWS_DEFAULT_PROFILE=$1 - export RPROMPT="" -} -function aws_profiles { - reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_-]*\).*/\1/')) -} - -compctl -K aws_profiles asp - -if _homebrew-installed && _awscli-homebrew-installed ; then - _aws_zsh_completer_path=$(brew --prefix)/opt/awscli/libexec/bin/aws_zsh_completer.sh -else - _aws_zsh_completer_path=$(which aws_zsh_completer.sh) -fi - -[ -x $_aws_zsh_completer_path ] && source $_aws_zsh_completer_path -unset _aws_zsh_completer_path diff --git a/.oh-my-zsh/plugins/battery/battery.plugin.zsh b/.oh-my-zsh/plugins/battery/battery.plugin.zsh deleted file mode 100644 index 014bb15..0000000 --- a/.oh-my-zsh/plugins/battery/battery.plugin.zsh +++ /dev/null @@ -1,160 +0,0 @@ -########################################### -# Battery plugin for oh-my-zsh # -# Original Author: Peter hoeg (peterhoeg) # -# Email: peter@speartail.com # -########################################### -# Author: Sean Jones (neuralsandwich) # -# Email: neuralsandwich@gmail.com # -# Modified to add support for Apple Mac # -########################################### - -if [[ "$OSTYPE" = darwin* ]] ; then - - function battery_pct() { - local smart_battery_status="$(ioreg -rc "AppleSmartBattery")" - typeset -F maxcapacity=$(echo $smart_battery_status | grep '^.*"MaxCapacity"\ =\ ' | sed -e 's/^.*"MaxCapacity"\ =\ //') - typeset -F currentcapacity=$(echo $smart_battery_status | grep '^.*"CurrentCapacity"\ =\ ' | sed -e 's/^.*CurrentCapacity"\ =\ //') - integer i=$(((currentcapacity/maxcapacity) * 100)) - echo $i - } - - function plugged_in() { - [ $(ioreg -rc AppleSmartBattery | grep -c '^.*"ExternalConnected"\ =\ Yes') -eq 1 ] - } - - function battery_pct_remaining() { - if plugged_in ; then - echo "External Power" - else - battery_pct - fi - } - - function battery_time_remaining() { - local smart_battery_status="$(ioreg -rc "AppleSmartBattery")" - if [[ $(echo $smart_battery_status | grep -c '^.*"ExternalConnected"\ =\ No') -eq 1 ]] ; then - timeremaining=$(echo $smart_battery_status | grep '^.*"AvgTimeToEmpty"\ =\ ' | sed -e 's/^.*"AvgTimeToEmpty"\ =\ //') - if [ $timeremaining -gt 720 ] ; then - echo "::" - else - echo "~$((timeremaining / 60)):$((timeremaining % 60))" - fi - else - echo "∞" - fi - } - - function battery_pct_prompt () { - if [[ $(ioreg -rc AppleSmartBattery | grep -c '^.*"ExternalConnected"\ =\ No') -eq 1 ]] ; then - b=$(battery_pct_remaining) - if [ $b -gt 50 ] ; then - color='green' - elif [ $b -gt 20 ] ; then - color='yellow' - else - color='red' - fi - echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}" - else - echo "∞" - fi - } - - function battery_is_charging() { - [[ $(ioreg -rc "AppleSmartBattery"| grep '^.*"IsCharging"\ =\ ' | sed -e 's/^.*"IsCharging"\ =\ //') == "Yes" ]] - } - -elif [[ $(uname) == "Linux" ]] ; then - - function battery_is_charging() { - ! [[ $(acpi 2&>/dev/null | grep -c '^Battery.*Discharging') -gt 0 ]] - } - - function battery_pct() { - if (( $+commands[acpi] )) ; then - echo "$(acpi | cut -f2 -d ',' | tr -cd '[:digit:]')" - fi - } - - function battery_pct_remaining() { - if [ ! $(battery_is_charging) ] ; then - battery_pct - else - echo "External Power" - fi - } - - function battery_time_remaining() { - if [[ $(acpi 2&>/dev/null | grep -c '^Battery.*Discharging') -gt 0 ]] ; then - echo $(acpi | cut -f3 -d ',') - fi - } - - function battery_pct_prompt() { - b=$(battery_pct_remaining) - if [[ $(acpi 2&>/dev/null | grep -c '^Battery.*Discharging') -gt 0 ]] ; then - if [ $b -gt 50 ] ; then - color='green' - elif [ $b -gt 20 ] ; then - color='yellow' - else - color='red' - fi - echo "%{$fg[$color]%}[$(battery_pct_remaining)%%]%{$reset_color%}" - else - echo "∞" - fi - } - -else - # Empty functions so we don't cause errors in prompts - function battery_pct_remaining() { - } - - function battery_time_remaining() { - } - - function battery_pct_prompt() { - } -fi - -function battery_level_gauge() { - local gauge_slots=${BATTERY_GAUGE_SLOTS:-10}; - local green_threshold=${BATTERY_GREEN_THRESHOLD:-6}; - local yellow_threshold=${BATTERY_YELLOW_THRESHOLD:-4}; - local color_green=${BATTERY_COLOR_GREEN:-%F{green}}; - local color_yellow=${BATTERY_COLOR_YELLOW:-%F{yellow}}; - local color_red=${BATTERY_COLOR_RED:-%F{red}}; - local color_reset=${BATTERY_COLOR_RESET:-%{%f%k%b%}}; - local battery_prefix=${BATTERY_GAUGE_PREFIX:-'['}; - local battery_suffix=${BATTERY_GAUGE_SUFFIX:-']'}; - local filled_symbol=${BATTERY_GAUGE_FILLED_SYMBOL:-'▶'}; - local empty_symbol=${BATTERY_GAUGE_EMPTY_SYMBOL:-'▷'}; - local charging_color=${BATTERY_CHARGING_COLOR:-$color_yellow}; - local charging_symbol=${BATTERY_CHARGING_SYMBOL:-'⚡'}; - - local battery_remaining_percentage=$(battery_pct); - - if [[ $battery_remaining_percentage =~ [0-9]+ ]]; then - local filled=$(((( $battery_remaining_percentage + $gauge_slots - 1) / $gauge_slots))); - local empty=$(($gauge_slots - $filled)); - - if [[ $filled -gt $green_threshold ]]; then local gauge_color=$color_green; - elif [[ $filled -gt $yellow_threshold ]]; then local gauge_color=$color_yellow; - else local gauge_color=$color_red; - fi - else - local filled=$gauge_slots; - local empty=0; - filled_symbol=${BATTERY_UNKNOWN_SYMBOL:-'.'}; - fi - - local charging=' ' && battery_is_charging && charging=$charging_symbol; - - printf ${charging_color//\%/\%\%}$charging${color_reset//\%/\%\%}${battery_prefix//\%/\%\%}${gauge_color//\%/\%\%} - printf ${filled_symbol//\%/\%\%}'%.0s' {1..$filled} - [[ $filled -lt $gauge_slots ]] && printf ${empty_symbol//\%/\%\%}'%.0s' {1..$empty} - printf ${color_reset//\%/\%\%}${battery_suffix//\%/\%\%}${color_reset//\%/\%\%} -} - - diff --git a/.oh-my-zsh/plugins/bbedit/README.md b/.oh-my-zsh/plugins/bbedit/README.md deleted file mode 100644 index ec2b743..0000000 --- a/.oh-my-zsh/plugins/bbedit/README.md +++ /dev/null @@ -1,20 +0,0 @@ -## bbedit - -Plugin for BBEdit, an HTML and text editor for Mac OS X - -### Requirements - - * [BBEdit](http://www.barebones.com/products/bbedit/) - * [BBEdit Command-Line Tools](http://www.barebones.com/support/bbedit/cmd-line-tools.html) - -### Usage - - * If the `bb` command is called without an argument, launch BBEdit - - * If `bb` is passed a directory, cd to it and open it in BBEdit - - * If `bb` is passed a file, open it in BBEdit - - * If `bbpb` create a new BBEdit document with the contents of the clipboard - - * If `bbd` alias for BBEdit diff tool diff --git a/.oh-my-zsh/plugins/bbedit/bbedit.plugin.zsh b/.oh-my-zsh/plugins/bbedit/bbedit.plugin.zsh deleted file mode 100644 index fe9e72c..0000000 --- a/.oh-my-zsh/plugins/bbedit/bbedit.plugin.zsh +++ /dev/null @@ -1,21 +0,0 @@ -alias bbpb='pbpaste | bbedit --clean --view-top' - -alias bbd=bbdiff - -# -# If the bb command is called without an argument, launch BBEdit -# If bb is passed a directory, cd to it and open it in BBEdit -# If bb is passed a file, open it in BBEdit -# -function bb() { - if [[ -z "$1" ]] - then - bbedit --launch - else - bbedit "$1" - if [[ -d "$1" ]] - then - cd "$1" - fi - fi -} diff --git a/.oh-my-zsh/plugins/bgnotify/README.md b/.oh-my-zsh/plugins/bgnotify/README.md deleted file mode 100644 index b154916..0000000 --- a/.oh-my-zsh/plugins/bgnotify/README.md +++ /dev/null @@ -1,54 +0,0 @@ -# bgnotify zsh plugin - -cross-platform background notifications for long running commands! Supports OSX and Ubuntu linux. - -Standalone homepage: [t413/zsh-background-notify](https://github.com/t413/zsh-background-notify) - ----------------------------------- - -## How to use! - -Just add bgnotify to your plugins list in your `.zshrc` - -- On OS X you'll need [terminal-notifer](https://github.com/alloy/terminal-notifier) - * `brew install terminal-notifier` (or `gem install terminal-notifier`) -- On ubuntu you're already all set! -- On windows you can use [notifu](http://www.paralint.com/projects/notifu/) or the Cygwin Ports libnotify package - - -## Screenshots - -**Linux** - -![screenshot from 2014-11-07 15 58 36](https://cloud.githubusercontent.com/assets/326829/4962187/256b465c-66da-11e4-927d-cc2fc105e31f.png) - -**OS X** - -![screenshot 2014-11-08 14 15 12](https://cloud.githubusercontent.com/assets/326829/4965780/19fa3eac-6795-11e4-8ed6-0355711123a9.png) - -**Windows** - -![screenshot from 2014-11-07 15 55 00](https://cloud.githubusercontent.com/assets/326829/4962159/a2625ca0-66d9-11e4-9e91-c5834913190e.png) - - -## Configuration - -One can configure a few things: - -- `bgnotify_threshold` sets the notification threshold time (default 6 seconds) -- `function bgnotify_formatted` lets you change the notification - -Use these by adding a function definition before the your call to source. Example: - -~~~ sh -bgnotify_threshold=4 ## set your own notification threshold - -function bgnotify_formatted { - ## $1=exit_status, $2=command, $3=elapsed_time - [ $1 -eq 0 ] && title="Holy Smokes Batman!" || title="Holy Graf Zeppelin!" - bgnotify "$title -- after $3 s" "$2"; -} - -plugins=(git bgnotify) ## add to plugins list -source $ZSH/oh-my-zsh.sh ## existing source call -~~~ diff --git a/.oh-my-zsh/plugins/bgnotify/bgnotify.plugin.zsh b/.oh-my-zsh/plugins/bgnotify/bgnotify.plugin.zsh deleted file mode 100755 index 14ca4c8..0000000 --- a/.oh-my-zsh/plugins/bgnotify/bgnotify.plugin.zsh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env zsh - -## setup ## - -[[ -o interactive ]] || return #interactive only! -zmodload zsh/datetime || { print "can't load zsh/datetime"; return } # faster than date() -autoload -Uz add-zsh-hook || { print "can't add zsh hook!"; return } - -(( ${+bgnotify_threshold} )) || bgnotify_threshold=5 #default 10 seconds - - -## definitions ## - -if ! (type bgnotify_formatted | grep -q 'function'); then - function bgnotify_formatted { - ## exit_status, command, elapsed_time - [ $1 -eq 0 ] && title="#win (took $3 s)" || title="#fail (took $3 s)" - bgnotify "$title" "$2" - } -fi - -currentWindowId () { - if hash osascript 2>/dev/null; then #osx - osascript -e 'tell application (path to frontmost application as text) to id of front window' 2&> /dev/null || echo "0" - elif hash notify-send 2>/dev/null; then #ubuntu! - xprop -root | awk '/NET_ACTIVE_WINDOW/ { print $5; exit }' - else - echo $EPOCHSECONDS #fallback for windows - fi -} - -bgnotify () { - if hash terminal-notifier 2>/dev/null; then #osx - terminal-notifier -message "$2" -title "$1" - elif hash growlnotify 2>/dev/null; then #osx growl - growlnotify -m $1 $2 - elif hash notify-send 2>/dev/null; then #ubuntu! - notify-send $1 $2 - elif hash notifu 2>/dev/null; then #cygwyn support! - notifu /m "$2" /p "$1" - fi -} - - -## Zsh hooks ## - -bgnotify_begin() { - bgnotify_timestamp=$EPOCHSECONDS - bgnotify_lastcmd=$1 - bgnotify_windowid=$(currentWindowId) -} - -bgnotify_end() { - didexit=$? - elapsed=$(( EPOCHSECONDS - bgnotify_timestamp )) - past_threshold=$(( elapsed >= bgnotify_threshold )) - if (( bgnotify_timestamp > 0 )) && (( past_threshold )); then - if [ $(currentWindowId) != "$bgnotify_windowid" ]; then - print -n "\a" - bgnotify_formatted "$didexit" "$bgnotify_lastcmd" "$elapsed" - fi - fi - bgnotify_timestamp=0 #reset it to 0! -} - -add-zsh-hook preexec bgnotify_begin -add-zsh-hook precmd bgnotify_end diff --git a/.oh-my-zsh/plugins/bower/_bower b/.oh-my-zsh/plugins/bower/_bower deleted file mode 100644 index ae0ca4a..0000000 --- a/.oh-my-zsh/plugins/bower/_bower +++ /dev/null @@ -1,58 +0,0 @@ - - -# Credits to npm's awesome completion utility. -# -# Bower completion script, based on npm completion script. - -###-begin-bower-completion-### -# -# Installation: bower completion >> ~/.bashrc (or ~/.zshrc) -# Or, maybe: bower completion > /usr/local/etc/bash_completion.d/bower -# - -COMP_WORDBREAKS=${COMP_WORDBREAKS/=/} -COMP_WORDBREAKS=${COMP_WORDBREAKS/@/} -export COMP_WORDBREAKS - -if type complete &>/dev/null; then - _bower_completion () { - local si="$IFS" - IFS=$'\n' COMPREPLY=($(COMP_CWORD="$COMP_CWORD" \ - COMP_LINE="$COMP_LINE" \ - COMP_POINT="$COMP_POINT" \ - bower completion -- "${COMP_WORDS[@]}" \ - 2>/dev/null)) || return $? - IFS="$si" - } - complete -F _bower_completion bower -elif type compdef &>/dev/null; then - _bower_completion() { - si=$IFS - compadd -- $(COMP_CWORD=$((CURRENT-1)) \ - COMP_LINE=$BUFFER \ - COMP_POINT=0 \ - bower completion -- "${words[@]}" \ - 2>/dev/null) - IFS=$si - } - compdef _bower_completion bower -elif type compctl &>/dev/null; then - _bower_completion () { - local cword line point words si - read -Ac words - read -cn cword - let cword-=1 - read -l line - read -ln point - si="$IFS" - IFS=$'\n' reply=($(COMP_CWORD="$cword" \ - COMP_LINE="$line" \ - COMP_POINT="$point" \ - bower completion -- "${words[@]}" \ - 2>/dev/null)) || return $? - IFS="$si" - } - compctl -K _bower_completion bower -fi -###-end-bower-completion-### - diff --git a/.oh-my-zsh/plugins/bower/bower.plugin.zsh b/.oh-my-zsh/plugins/bower/bower.plugin.zsh deleted file mode 100644 index 68a67a3..0000000 --- a/.oh-my-zsh/plugins/bower/bower.plugin.zsh +++ /dev/null @@ -1,81 +0,0 @@ -alias bi="bower install" -alias bl="bower list" -alias bs="bower search" - -_bower_installed_packages () { - bower_package_list=$(bower ls --no-color 2>/dev/null| awk 'NR>3{print p}{p=$0}'| cut -d ' ' -f 2|sed 's/#.*//') -} -_bower () -{ - local -a _1st_arguments _no_color _dopts _save_dev _force_lastest _production - local expl - typeset -A opt_args - - _no_color=('--no-color[Do not print colors (available in all commands)]') - - _dopts=( - '(--save)--save[Save installed packages into the project"s bower.json dependencies]' - '(--force)--force[Force fetching remote resources even if a local copy exists on disk]' - ) - - _save_dev=('(--save-dev)--save-dev[Save installed packages into the project"s bower.json devDependencies]') - - _force_lastest=('(--force-latest)--force-latest[Force latest version on conflict]') - - _production=('(--production)--production[Do not install project devDependencies]') - - _1st_arguments=( - 'cache-clean:Clean the Bower cache, or the specified package caches' \ - 'help:Display help information about Bower' \ - 'info:Version info and description of a particular package' \ - 'init:Interactively create a bower.json file' \ - 'install:Install a package locally' \ - 'link:Symlink a package folder' \ - 'lookup:Look up a package URL by name' \ - 'register:Register a package' \ - 'search:Search for a package by name' \ - 'uninstall:Remove a package' \ - 'update:Update a package' \ - {ls,list}:'[List all installed packages]' - ) - _arguments \ - $_no_color \ - '*:: :->subcmds' && return 0 - - if (( CURRENT == 1 )); then - _describe -t commands "bower subcommand" _1st_arguments - return - fi - - case "$words[1]" in - install) - _arguments \ - $_dopts \ - $_save_dev \ - $_force_lastest \ - $_no_color \ - $_production - ;; - update) - _arguments \ - $_dopts \ - $_no_color \ - $_force_lastest - _bower_installed_packages - compadd "$@" $(echo $bower_package_list) - ;; - uninstall) - _arguments \ - $_no_color \ - $_dopts - _bower_installed_packages - compadd "$@" $(echo $bower_package_list) - ;; - *) - $_no_color \ - ;; - esac - -} - -compdef _bower bower diff --git a/.oh-my-zsh/plugins/brew-cask/brew-cask.plugin.zsh b/.oh-my-zsh/plugins/brew-cask/brew-cask.plugin.zsh deleted file mode 100644 index 91ce0f4..0000000 --- a/.oh-my-zsh/plugins/brew-cask/brew-cask.plugin.zsh +++ /dev/null @@ -1,84 +0,0 @@ -# Autocompletion for homebrew-cask. -# -# This script intercepts calls to the brew plugin and adds autocompletion -# for the cask subcommand. -# -# Author: https://github.com/pstadler - -compdef _brew-cask brew - -_brew-cask() -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - ':subcmd:->subcmd' \ - '*::options:->options' - - case $state in - (command) - __call_original_brew - cask_commands=( - 'cask:manage casks' - ) - _describe -t commands 'brew cask command' cask_commands ;; - - (subcmd) - case "$line[1]" in - cask) - if (( CURRENT == 3 )); then - local -a subcommands - subcommands=( - "alfred:used to modify Alfred's scope to include the Caskroom" - 'audit:verifies installability of casks' - 'checklinks:checks for bad cask links' - 'cleanup:cleans up cached downloads' - 'create:creates a cask of the given name and opens it in an editor' - 'doctor:checks for configuration issues' - 'edit:edits the cask of the given name' - 'fetch:downloads Cask resources to local cache' - 'home:opens the homepage of the cask of the given name' - 'info:displays information about the cask of the given name' - 'install:installs the cask of the given name' - 'list:with no args, lists installed casks; given installed casks, lists installed files' - 'search:searches all known casks' - 'uninstall:uninstalls the cask of the given name' - "update:a synonym for 'brew update'" - ) - _describe -t commands "brew cask subcommand" subcommands - fi ;; - - *) - __call_original_brew ;; - esac ;; - - (options) - local -a casks installed_casks - local expl - case "$line[2]" in - list|uninstall) - __brew_installed_casks - _wanted installed_casks expl 'installed casks' compadd -a installed_casks ;; - audit|edit|home|info|install) - __brew_all_casks - _wanted casks expl 'all casks' compadd -a casks ;; - esac ;; - esac -} - -__brew_all_casks() { - casks=(`brew cask search`) -} - -__brew_installed_casks() { - installed_casks=(`brew cask list`) -} - -__call_original_brew() -{ - local ret=1 - _call_function ret _brew - compdef _brew-cask brew -} diff --git a/.oh-my-zsh/plugins/brew/_brew b/.oh-my-zsh/plugins/brew/_brew deleted file mode 100644 index d11aa24..0000000 --- a/.oh-my-zsh/plugins/brew/_brew +++ /dev/null @@ -1,108 +0,0 @@ -#compdef brew -#autoload - -# imported from the latest homebrew contributions - -_brew_all_formulae() { - formulae=(`brew search`) -} - -_brew_installed_formulae() { - installed_formulae=(`brew list`) -} - -_brew_installed_taps() { - installed_taps=(`brew tap`) -} - -_brew_outdated_formulae() { - outdated_formulae=(`brew outdated`) -} - -local -a _1st_arguments -_1st_arguments=( - 'audit:check formulae for Homebrew coding style' - 'cat:display formula file for a formula' - 'cleanup:uninstall unused and old versions of packages' - 'commands:show a list of commands' - 'create:create a new formula' - 'deps:list dependencies of a formula' - 'doctor:audits your installation for common issues' - 'edit:edit a formula' - 'fetch:download formula resources to the cache' - 'gist-logs:generate a gist of the full build logs' - 'home:visit the homepage of a formula or the brew project' - 'info:information about a formula' - 'install:install a formula' - 'reinstall:install a formula anew; re-using its current options' - 'link:link a formula' - 'list:list files in a formula or not-installed formulae' - 'log:git commit log for a formula' - 'missing:check all installed formuale for missing dependencies.' - 'outdated:list formulae for which a newer version is available' - 'pin:pin specified formulae' - 'postinstall:perform post_install for a given formula' - 'prune:remove dead links' - 'remove:remove a formula' - 'search:search for a formula (/regex/ or string)' - 'switch:switch linkage between installed versions of a formula' - 'tap:tap a new formula repository from GitHub, or list existing taps' - 'test-bot:test a formula and build a bottle' - 'uninstall:uninstall a formula' - 'unlink:unlink a formula' - 'unpin:unpin specified formulae' - 'untap:remove a tapped repository' - 'update:pull latest repository' - 'upgrade:upgrade outdated formulae' - 'uses:show formulae which depend on a formula' -) - -local expl -local -a formulae installed_formulae installed_taps outdated_formulae - -_arguments \ - '(-v)-v[verbose]' \ - '(--cellar)--cellar[brew cellar]' \ - '(--config)--config[brew configuration]' \ - '(--env)--env[brew environment]' \ - '(--repository)--repository[brew repository]' \ - '(--version)--version[version information]' \ - '(--prefix)--prefix[where brew lives on this system]' \ - '(--cache)--cache[brew cache]' \ - '(--force)--force[brew force]' \ - '*:: :->subcmds' && return 0 - -if (( CURRENT == 1 )); then - _describe -t commands "brew subcommand" _1st_arguments - return -fi - -case "$words[1]" in - install|reinstall|audit|home|homepage|log|info|abv|uses|cat|deps|edit|options) - _brew_all_formulae - _wanted formulae expl 'all formulae' compadd -a formulae ;; - list|ls) - _arguments \ - '(--unbrewed)--unbrewed[files in brew --prefix not controlled by brew]' \ - '(--pinned)--pinned[list all versions of pinned formulae]' \ - '(--versions)--versions[list all installed versions of a formula]' \ - '1: :->forms' && return 0 - - if [[ "$state" == forms ]]; then - _brew_installed_formulae - _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae - fi ;; - remove|rm|uninstall|unlink|cleanup|link|ln|pin|unpin) - _brew_installed_formulae - _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;; - search|-S) - _arguments \ - '(--macports)--macports[search the macports repository]' \ - '(--fink)--fink[search the fink repository]' ;; - untap) - _brew_installed_taps - _wanted installed_taps expl 'installed taps' compadd -a installed_taps ;; - upgrade) - _brew_outdated_formulae - _wanted outdated_formulae expl 'outdated formulae' compadd -a outdated_formulae ;; -esac diff --git a/.oh-my-zsh/plugins/brew/brew.plugin.zsh b/.oh-my-zsh/plugins/brew/brew.plugin.zsh deleted file mode 100644 index 42fb80c..0000000 --- a/.oh-my-zsh/plugins/brew/brew.plugin.zsh +++ /dev/null @@ -1,2 +0,0 @@ -alias brews='brew list -1' -alias bubu="brew update && brew upgrade && brew cleanup" diff --git a/.oh-my-zsh/plugins/bundler/README.md b/.oh-my-zsh/plugins/bundler/README.md deleted file mode 100644 index 56f0c71..0000000 --- a/.oh-my-zsh/plugins/bundler/README.md +++ /dev/null @@ -1,49 +0,0 @@ -# Bundler - -- adds completion for basic bundler commands -- adds short aliases for common bundler commands - - `be` aliased to `bundle exec` - - `bl` aliased to `bundle list` - - `bp` aliased to `bundle package` - - `bo` aliased to `bundle open` - - `bu` aliased to `bundle update` - - `bi` aliased to `bundle install --jobs=` (only for bundler `>= 1.4.0`) -- adds a wrapper for common gems: - - looks for a binstub under `./bin/` and executes it (if present) - - calls `bundle exec ` otherwise - -For a full list of *common gems* being wrapped by default please look at the `bundler.plugin.zsh` file. - -## Configuration - -Please use the exact name of the executable and not the gem name. - -### Add additional gems to be wrapped - -Add this before the plugin-list in your `.zshrc`: -```sh -BUNDLED_COMMANDS=(rubocop) -plugins=(... bundler ...) -``` -This will add the wrapper for the `rubocop` gem (i.e. the executable). - - -### Exclude gems from being wrapped - -Add this before the plugin-list in your `.zshrc`: -```sh -UNBUNDLED_COMMANDS=(foreman spin) -plugins=(... bundler ...) -``` -This will exclude the `foreman` and `spin` gems (i.e. their executable) from being wrapped. - -## Excluded gems - -These gems should not be called with `bundle exec`. Please see the Issues on GitHub for clarification. - -`berks` -`foreman` -`mailcatcher` -`rails` -`ruby` -`spin` diff --git a/.oh-my-zsh/plugins/bundler/_bundler b/.oh-my-zsh/plugins/bundler/_bundler deleted file mode 100644 index ba647ab..0000000 --- a/.oh-my-zsh/plugins/bundler/_bundler +++ /dev/null @@ -1,104 +0,0 @@ -#compdef bundle - -local curcontext="$curcontext" state line _gems _opts ret=1 - -_arguments -C -A "-v" -A "--version" \ - '(- 1 *)'{-v,--version}'[display version information]' \ - '1: :->cmds' \ - '*:: :->args' && ret=0 - -case $state in - cmds) - _values "bundle command" \ - "install[Install the gems specified by the Gemfile or Gemfile.lock]" \ - "update[Update dependencies to their latest versions]" \ - "package[Package the .gem files required by your application]" \ - "exec[Execute a script in the context of the current bundle]" \ - "config[Specify and read configuration options for bundler]" \ - "check[Determine whether the requirements for your application are installed]" \ - "list[Show all of the gems in the current bundle]" \ - "show[Show the source location of a particular gem in the bundle]" \ - "outdated[Show all of the outdated gems in the current bundle]" \ - "console[Start an IRB session in the context of the current bundle]" \ - "open[Open an installed gem in the editor]" \ - "viz[Generate a visual representation of your dependencies]" \ - "init[Generate a simple Gemfile, placed in the current directory]" \ - "gem[Create a simple gem, suitable for development with bundler]" \ - "platform[Displays platform compatibility information]" \ - "clean[Cleans up unused gems in your bundler directory]" \ - "help[Describe available tasks or one specific task]" - ret=0 - ;; - args) - case $line[1] in - help) - _values 'commands' \ - 'install' \ - 'update' \ - 'package' \ - 'exec' \ - 'config' \ - 'check' \ - 'list' \ - 'show' \ - 'outdated' \ - 'console' \ - 'open' \ - 'viz' \ - 'init' \ - 'gem' \ - 'platform' \ - 'help' && ret=0 - ;; - install) - _arguments \ - '(--no-color)--no-color[disable colorization in output]' \ - '(--local)--local[do not attempt to connect to rubygems.org]' \ - '(--quiet)--quiet[only output warnings and errors]' \ - '(--gemfile)--gemfile=-[use the specified gemfile instead of Gemfile]:gemfile' \ - '(--system)--system[install to the system location]' \ - '(--deployment)--deployment[install using defaults tuned for deployment environments]' \ - '(--frozen)--frozen[do not allow the Gemfile.lock to be updated after this install]' \ - '(--path)--path=-[specify a different path than the system default]:path:_files' \ - '(--binstubs)--binstubs=-[generate bin stubs for bundled gems to ./bin]:directory:_files' \ - '(--without)--without=-[exclude gems that are part of the specified named group]:groups' - ret=0 - ;; - exec) - _normal && ret=0 - ;; - clean) - _arguments \ - '(--force)--force[forces clean even if --path is not set]' \ - '(--dry-run)--dry-run[only print out changes, do not actually clean gems]' \ - '(--no-color)--no-color[Disable colorization in output]' \ - '(--verbose)--verbose[Enable verbose output mode]' - ret=0 - ;; - outdated) - _arguments \ - '(--pre)--pre[Check for newer pre-release gems]' \ - '(--source)--source[Check against a specific source]' \ - '(--local)--local[Do not attempt to fetch gems remotely and use the gem cache instead]' \ - '(--no-color)--no-color[Disable colorization in output]' \ - '(--verbose)--verbose[Enable verbose output mode]' - ret=0 - ;; - (open|show) - _gems=( $(bundle show 2> /dev/null | sed -e '/^ \*/!d; s/^ \* \([^ ]*\) .*/\1/') ) - if [[ $_gems != "" ]]; then - _values 'gems' $_gems && ret=0 - fi - ;; - *) - _opts=( $(bundle help $line[1] | sed -e '/^ \[-/!d; s/^ \[\(-[^=]*\)=.*/\1/') ) - _opts+=( $(bundle help $line[1] | sed -e '/^ -/!d; s/^ \(-.\), \[\(-[^=]*\)=.*/\1 \2/') ) - if [[ $_opts != "" ]]; then - _values 'options' $_opts && ret=0 - fi - ;; - esac - ;; -esac - -return ret diff --git a/.oh-my-zsh/plugins/bundler/bundler.plugin.zsh b/.oh-my-zsh/plugins/bundler/bundler.plugin.zsh deleted file mode 100644 index ba3d3f6..0000000 --- a/.oh-my-zsh/plugins/bundler/bundler.plugin.zsh +++ /dev/null @@ -1,110 +0,0 @@ -alias be="bundle exec" -alias bl="bundle list" -alias bp="bundle package" -alias bo="bundle open" -alias bu="bundle update" -alias bi="bundle_install" - -bundled_commands=( - annotate - cap - capify - cucumber - foodcritic - guard - irb - jekyll - kitchen - knife - middleman - nanoc - pry - puma - rackup - rainbows - rake - rspec - shotgun - sidekiq - spec - spork - spring - strainer - tailor - taps - thin - thor - unicorn - unicorn_rails -) - -# Remove $UNBUNDLED_COMMANDS from the bundled_commands list -for cmd in $UNBUNDLED_COMMANDS; do - bundled_commands=(${bundled_commands#$cmd}); -done - -# Add $BUNDLED_COMMANDS to the bundled_commands list -for cmd in $BUNDLED_COMMANDS; do - bundled_commands+=($cmd); -done - -## Functions - -bundle_install() { - if _bundler-installed && _within-bundled-project; then - local bundler_version=`bundle version | cut -d' ' -f3` - if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then - if [[ "$OSTYPE" = darwin* ]] - then - local cores_num="$(sysctl hw.ncpu | awk '{print $2}')" - else - local cores_num="$(nproc)" - fi - bundle install --jobs=$cores_num $@ - else - bundle install $@ - fi - else - echo "Can't 'bundle install' outside a bundled project" - fi -} - -_bundler-installed() { - which bundle > /dev/null 2>&1 -} - -_within-bundled-project() { - local check_dir="$PWD" - while [ "$check_dir" != "/" ]; do - [ -f "$check_dir/Gemfile" ] && return - check_dir="$(dirname $check_dir)" - done - false -} - -_binstubbed() { - [ -f "./bin/${1}" ] -} - -_run-with-bundler() { - if _bundler-installed && _within-bundled-project; then - if _binstubbed $1; then - ./bin/$@ - else - bundle exec $@ - fi - else - $@ - fi -} - -## Main program -for cmd in $bundled_commands; do - eval "function unbundled_$cmd () { $cmd \$@ }" - eval "function bundled_$cmd () { _run-with-bundler $cmd \$@}" - alias $cmd=bundled_$cmd - - if which _$cmd > /dev/null 2>&1; then - compdef _$cmd bundled_$cmd=$cmd - fi -done diff --git a/.oh-my-zsh/plugins/bwana/bwana.plugin.zsh b/.oh-my-zsh/plugins/bwana/bwana.plugin.zsh deleted file mode 100644 index 455da86..0000000 --- a/.oh-my-zsh/plugins/bwana/bwana.plugin.zsh +++ /dev/null @@ -1,13 +0,0 @@ -# -# Requires http://www.bruji.com/bwana/ -# -if [[ -e /Applications/Bwana.app ]] || - ( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana ) -then - function man() { - open "man:$1" - } -else - echo "Bwana lets you read man files in Safari through a man: URI scheme" - echo "To use it within Zsh, install it from http://www.bruji.com/bwana/" -fi diff --git a/.oh-my-zsh/plugins/cabal/cabal.plugin.zsh b/.oh-my-zsh/plugins/cabal/cabal.plugin.zsh deleted file mode 100644 index a9a05b0..0000000 --- a/.oh-my-zsh/plugins/cabal/cabal.plugin.zsh +++ /dev/null @@ -1,93 +0,0 @@ -function cabal_sandbox_info() { - cabal_files=(*.cabal(N)) - if [ $#cabal_files -gt 0 ]; then - if [ -f cabal.sandbox.config ]; then - echo "%{$fg[green]%}sandboxed%{$reset_color%}" - else - echo "%{$fg[red]%}not sandboxed%{$reset_color%}" - fi - fi -} - -function _cabal_commands() { - local ret=1 state - _arguments ':subcommand:->subcommand' && ret=0 - - case $state in - subcommand) - subcommands=( - "bench:Run the benchmark, if any (configure with UserHooks)" - "build:Compile all targets or specific target." - "check:Check the package for common mistakes" - "clean:Clean up after a build" - "copy:Copy the files into the install locations" - "configure:Prepare to build the package" - "exec:Run a command with the cabal environment" - "fetch:Downloads packages for later installation" - "freeze:Freeze dependencies." - "get:Gets a package's source code" - "haddock:Generate Haddock HTML documentation" - "help:Help about commands" - "hscolour:Generate HsColour colourised code, in HTML format" - "info:Display detailed information about a particular package" - "init:Interactively create a .cabal file" - "install:Installs a list of packages" - "list:List packages matching a search string" - "register:Register this package with the compiler" - "repl:Open an interpreter session for the given target" - "report:Upload build reports to a remote server" - "run:Runs the compiled executable" - "sandbox:Create/modify/delete a sandbox" - "sdist:Generate a source distribution file (.tar.gz)" - "test:Run the test suite, if any (configure with UserHooks)" - "unpack:Unpacks packages for user inspection" - "update:Updates list of known packages" - "upload:Uploads source packages to Hackage" - ) - _describe -t subcommands 'cabal subcommands' subcommands && ret=0 - esac - - return ret -} - -compdef _cabal_commands cabal - -function _cab_commands() { - local ret=1 state - _arguments ':subcommand:->subcommand' && ret=0 - - case $state in - subcommand) - subcommands=( - "sync:Fetch the latest package index" - "install:Install packages" - "uninstall:Uninstall packages" - "installed:List installed packages" - "configure:Configure a cabal package" - "build:Build a cabal package" - "clean:Clean up a build directory" - "outdated:Display outdated packages" - "info:Display information of a package" - "sdist:Make tar.gz for source distribution" - "upload:Uploading tar.gz to HackageDB" - "get:Untar a package in the current directory" - "deps:Show dependencies of this package" - "revdeps:Show reverse dependencies of this package" - "check:Check consistency of packages" - "genpaths:Generate Paths_.hs" - "search:Search available packages by package name" - "add:Add a source directory" - "test:Run tests" - "bench:Run benchmarks" - "doc:Generate manuals" - "ghci:Run GHCi (with a sandbox)" - "init:Initialize a sandbox" - "help:Display the help message of the command" - ) - _describe -t subcommands 'cab subcommands' subcommands && ret=0 - esac - - return ret -} - -command -v cab >/dev/null 2>&1 && { compdef _cab_commands cab } diff --git a/.oh-my-zsh/plugins/cake/cake.plugin.zsh b/.oh-my-zsh/plugins/cake/cake.plugin.zsh deleted file mode 100644 index 2370df9..0000000 --- a/.oh-my-zsh/plugins/cake/cake.plugin.zsh +++ /dev/null @@ -1,33 +0,0 @@ -# Set this to 1 if you want to cache the tasks -_cake_cache_task_list=1 - -# Cache filename -_cake_task_cache_file='.cake_task_cache' - -_cake_get_target_list () { - cake | grep '^cake ' | sed -e "s/cake \([^ ]*\) .*/\1/" | grep -v '^$' -} - -_cake_does_target_list_need_generating () { - - if [ ${_cake_cache_task_list} -eq 0 ]; then - return 1; - fi - - [ ! -f ${_cake_task_cache_file} ] && return 0; - [ Cakefile -nt ${_cake_task_cache_file} ] && return 0; - return 1; -} - -_cake () { - if [ -f Cakefile ]; then - if _cake_does_target_list_need_generating; then - _cake_get_target_list > ${_cake_task_cache_file} - compadd `cat ${_cake_task_cache_file}` - else - compadd `_cake_get_target_list` - fi - fi -} - -compdef _cake cake diff --git a/.oh-my-zsh/plugins/capistrano/_capistrano b/.oh-my-zsh/plugins/capistrano/_capistrano deleted file mode 100644 index 3cadf3d..0000000 --- a/.oh-my-zsh/plugins/capistrano/_capistrano +++ /dev/null @@ -1,10 +0,0 @@ -#compdef cap -#autoload - -if [[ -f config/deploy.rb || -f Capfile ]]; then - if [[ ! -f .cap_tasks~ || config/deploy.rb -nt .cap_tasks~ ]]; then - echo "\nGenerating .cap_tasks~..." > /dev/stderr - cap -v --tasks | grep '#' | cut -d " " -f 2 > .cap_tasks~ - fi - compadd `cat .cap_tasks~` -fi diff --git a/.oh-my-zsh/plugins/cask/cask.plugin.zsh b/.oh-my-zsh/plugins/cask/cask.plugin.zsh deleted file mode 100644 index c558629..0000000 --- a/.oh-my-zsh/plugins/cask/cask.plugin.zsh +++ /dev/null @@ -1,5 +0,0 @@ -if which cask &> /dev/null; then - source $(dirname $(which cask))/../etc/cask_completion.zsh -else - print "zsh cask plugin: cask not found" -fi diff --git a/.oh-my-zsh/plugins/catimg/catimg.plugin.zsh b/.oh-my-zsh/plugins/catimg/catimg.plugin.zsh deleted file mode 100644 index cb92f59..0000000 --- a/.oh-my-zsh/plugins/catimg/catimg.plugin.zsh +++ /dev/null @@ -1,17 +0,0 @@ -################################################################################ -# catimg script by Eduardo San Martin Morote aka Posva # -# http://posva.net # -# # -# Ouput the content of an image to the stdout using the 256 colors of the # -# terminal. # -# Github: https://github.com/posva/catimg # -################################################################################ - - -function catimg() { - if [[ -x `which convert` ]]; then - zsh $ZSH/plugins/catimg/catimg.sh $@ - else - echo "catimg need convert (ImageMagick) to work)" - fi -} diff --git a/.oh-my-zsh/plugins/catimg/catimg.sh b/.oh-my-zsh/plugins/catimg/catimg.sh deleted file mode 100755 index cd0f2e3..0000000 --- a/.oh-my-zsh/plugins/catimg/catimg.sh +++ /dev/null @@ -1,88 +0,0 @@ -################################################################################ -# catimg script by Eduardo San Martin Morote aka Posva # -# http://posva.net # -# # -# Ouput the content of an image to the stdout using the 256 colors of the # -# terminal. # -# Github: https://github.com/posva/catimg # -################################################################################ - -function help() { - echo "Usage catimg [-h] [-w width] [-c char] img" - echo "By default char is \" \" and w is the terminal width" -} - -# VARIABLES -COLOR_FILE=$(dirname $0)/colors.png -CHAR=" " - -WIDTH="" -IMG="" - -while getopts qw:c:h opt; do - case "$opt" in - w) WIDTH="$OPTARG" ;; - c) CHAR="$OPTARG" ;; - h) help; exit ;; - *) help ; exit 1;; - esac - done - -while [ "$1" ]; do - IMG="$1" - shift -done - -if [ "$IMG" = "" -o ! -f "$IMG" ]; then - help - exit 1 -fi - -if [ ! "$WIDTH" ]; then - COLS=$(expr $(tput cols) "/" $(echo -n "$CHAR" | wc -c)) -else - COLS=$(expr $WIDTH "/" $(echo -n "$CHAR" | wc -c)) -fi -WIDTH=$(convert "$IMG" -print "%w\n" /dev/null) -if [ "$WIDTH" -gt "$COLS" ]; then - WIDTH=$COLS -fi - -REMAP="" -if convert "$IMG" -resize $COLS\> +dither -remap $COLOR_FILE /dev/null ; then - REMAP="-remap $COLOR_FILE" -else - echo "The version of convert is too old, don't expect good results :(" >&2 - #convert "$IMG" -colors 256 PNG8:tmp.png - #IMG="tmp.png" -fi - -# Display the image -I=0 -convert "$IMG" -resize $COLS\> +dither `echo $REMAP` txt:- 2>/dev/null | -sed -e 's/.*none.*/NO NO NO/g' -e '1d;s/^.*(\(.*\)[,)].*$/\1/g;y/,/ /' | -while read R G B f; do - if [ ! "$R" = "NO" ]; then - if [ "$R" -eq "$G" -a "$G" -eq "$B" ]; then - (( - I++, - IDX = 232 + R * 23 / 255 - )) - else - (( - I++, - IDX = 16 - + R * 5 / 255 * 36 - + G * 5 / 255 * 6 - + B * 5 / 255 - )) - fi - #echo "$R,$G,$B: $IDX" - echo -ne "\e[48;5;${IDX}m${CHAR}" - else - (( I++ )) - echo -ne "\e[0m${CHAR}" - fi - # New lines - (( $I % $WIDTH )) || echo -e "\e[0m" -done diff --git a/.oh-my-zsh/plugins/catimg/colors.png b/.oh-my-zsh/plugins/catimg/colors.png deleted file mode 100644 index 5f2c812..0000000 Binary files a/.oh-my-zsh/plugins/catimg/colors.png and /dev/null differ diff --git a/.oh-my-zsh/plugins/celery/_celery b/.oh-my-zsh/plugins/celery/_celery deleted file mode 100644 index 63af9fa..0000000 --- a/.oh-my-zsh/plugins/celery/_celery +++ /dev/null @@ -1,129 +0,0 @@ -#compdef celery -#autoload - -#celery zsh completion - -_celery () { -local -a _1st_arguments ifargs dopts controlargs - -typeset -A opt_args - -_1st_arguments=('worker' 'events' 'beat' 'shell' 'multi' 'amqp' 'status' 'inspect' \ - 'control' 'purge' 'list' 'migrate' 'call' 'result' 'report') -ifargs=('--app=' '--broker=' '--loader=' '--config=' '--version') -dopts=('--detach' '--umask=' '--gid=' '--uid=' '--pidfile=' '--logfile=' '--loglevel=') -controlargs=('--timeout' '--destination') -_arguments \ - '(-A --app=)'{-A,--app}'[app instance to use (e.g. module.attr_name):APP]' \ - '(-b --broker=)'{-b,--broker}'[url to broker. default is "amqp://guest@localhost//":BROKER]' \ - '(--loader)--loader[name of custom loader class to use.:LOADER]' \ - '(--config)--config[Name of the configuration module:CONFIG]' \ - '(--workdir)--workdir[Optional directory to change to after detaching.:WORKING_DIRECTORY]' \ - '(-q --quiet)'{-q,--quiet}'[Don"t show as much output.]' \ - '(-C --no-color)'{-C,--no-color}'[Don"t display colors.]' \ - '(--version)--version[show program"s version number and exit]' \ - '(- : *)'{-h,--help}'[show this help message and exit]' \ - '*:: :->subcmds' && return 0 - -if (( CURRENT == 1 )); then - _describe -t commands "celery subcommand" _1st_arguments - return -fi - -case "$words[1]" in - worker) - _arguments \ - '(-C --concurrency=)'{-C,--concurrency=}'[Number of child processes processing the queue. The default is the number of CPUs.]' \ - '(--pool)--pool=:::(processes eventlet gevent threads solo)' \ - '(--purge --discard)'{--discard,--purge}'[Purges all waiting tasks before the daemon is started.]' \ - '(-f --logfile=)'{-f,--logfile=}'[Path to log file. If no logfile is specified, stderr is used.]' \ - '(--loglevel=)--loglevel=:::(critical error warning info debug)' \ - '(-N --hostname=)'{-N,--hostname=}'[Set custom hostname, e.g. "foo.example.com".]' \ - '(-B --beat)'{-B,--beat}'[Also run the celerybeat periodic task scheduler.]' \ - '(-s --schedule=)'{-s,--schedule=}'[Path to the schedule database if running with the -B option. Defaults to celerybeat-schedule.]' \ - '(-S --statedb=)'{-S,--statedb=}'[Path to the state database.Default: None]' \ - '(-E --events)'{-E,--events}'[Send events that can be captured by monitors like celeryev, celerymon, and others.]' \ - '(--time-limit=)--time-limit=[nables a hard time limit (in seconds int/float) for tasks]' \ - '(--soft-time-limit=)--soft-time-limit=[Enables a soft time limit (in seconds int/float) for tasks]' \ - '(--maxtasksperchild=)--maxtasksperchild=[Maximum number of tasks a pool worker can execute before it"s terminated and replaced by a new worker.]' \ - '(-Q --queues=)'{-Q,--queues=}'[List of queues to enable for this worker, separated by comma. By default all configured queues are enabled.]' \ - '(-I --include=)'{-I,--include=}'[Comma separated list of additional modules to import.]' \ - '(--pidfile=)--pidfile=[Optional file used to store the process pid.]' \ - '(--autoscale=)--autoscale=[Enable autoscaling by providing max_concurrency, min_concurrency.]' \ - '(--autoreload)--autoreload[Enable autoreloading.]' \ - '(--no-execv)--no-execv[Don"t do execv after multiprocessing child fork.]' - compadd -a ifargs - ;; - inspect) - _values -s \ - 'active[dump active tasks (being processed)]' \ - 'active_queues[dump queues being consumed from]' \ - 'ping[ping worker(s)]' \ - 'registered[dump of registered tasks]' \ - 'report[get bugreport info]' \ - 'reserved[dump reserved tasks (waiting to be processed)]' \ - 'revoked[dump of revoked task ids]' \ - 'scheduled[dump scheduled tasks (eta/countdown/retry)]' \ - 'stats[dump worker statistics]' - compadd -a controlargs ifargs - ;; - control) - _values -s \ - 'add_consumer[tell worker(s) to start consuming a queue]' \ - 'autoscale[change autoscale settings]' \ - 'cancel_consumer[tell worker(s) to stop consuming a queue]' \ - 'disable_events[tell worker(s) to disable events]' \ - 'enable_events[tell worker(s) to enable events]' \ - 'pool_grow[start more pool processes]' \ - 'pool_shrink[use less pool processes]' \ - 'rate_limit[tell worker(s) to modify the rate limit for a task type]' \ - 'time_limit[tell worker(s) to modify the time limit for a task type.]' - compadd -a controlargs ifargs - ;; - multi) - _values -s \ - '--nosplash[Don"t display program info.]' \ - '--verbose[Show more output.]' \ - '--no-color[Don"t display colors.]' \ - '--quiet[Don"t show as much output.]' \ - 'start' 'restart' 'stopwait' 'stop' 'show' \ - 'names' 'expand' 'get' 'kill' - compadd -a ifargs - ;; - amqp) - _values -s \ - 'queue.declare' 'queue.purge' 'exchange.delete' 'basic.publish' \ - 'exchange.declare' 'queue.delete' 'queue.bind' 'basic.get' - ;; - list) - _values -s, 'bindings' - ;; - shell) - _values -s \ - '--ipython[force iPython.]' \ - '--bpython[force bpython.]' \ - '--python[force default Python shell.]' \ - '--without-tasks[don"t add tasks to locals.]' \ - '--eventlet[use eventlet.]' \ - '--gevent[use gevent.]' - compadd -a ifargs - ;; - beat) - _arguments \ - '(-s --schedule=)'{-s,--schedule=}'[Path to the schedule database. Defaults to celerybeat-schedule.]' \ - '(-S --scheduler=)'{-S,--scheduler=}'[Scheduler class to use. Default is celery.beat.PersistentScheduler.]' \ - '(--max-interval)--max-interval[]' - compadd -a dopts fargs - ;; - events) - _arguments \ - '(-d --dump)'{-d,--dump}'[Dump events to stdout.]' \ - '(-c --camera=)'{-c,--camera=}'[Take snapshots of events using this camera.]' \ - '(-F --frequency=)'{-F,--frequency=}'[Camera: Shutter frequency. Default is every 1.0 seconds.]' \ - '(-r --maxrate=)'{-r,--maxrate=}'[Camera: Optional shutter rate limit (e.g. 10/m).]' - compadd -a dopts fargs - ;; - *) - ;; - esac -} diff --git a/.oh-my-zsh/plugins/chruby/chruby.plugin.zsh b/.oh-my-zsh/plugins/chruby/chruby.plugin.zsh deleted file mode 100644 index b461b0c..0000000 --- a/.oh-my-zsh/plugins/chruby/chruby.plugin.zsh +++ /dev/null @@ -1,99 +0,0 @@ -# -# INSTRUCTIONS -# -# With either a manual or brew installed chruby things should just work. -# -# If you'd prefer to specify an explicit path to load chruby from -# you can set variables like so: -# -# zstyle :omz:plugins:chruby path /local/path/to/chruby.sh -# zstyle :omz:plugins:chruby auto /local/path/to/auto.sh -# -# TODO -# - autodetermine correct source path on non OS X systems -# - completion if ruby-install exists - -# rvm and rbenv plugins also provide this alias -alias rubies='chruby' - -local _chruby_path -local _chruby_auto - -_homebrew-installed() { - whence brew &> /dev/null -} - -_chruby-from-homebrew-installed() { - [ -r $(brew --prefix chruby)] &> /dev/null -} - -_ruby-build_installed() { - whence ruby-build &> /dev/null -} - -_ruby-install-installed() { - whence ruby-install &> /dev/null -} - -# Simple definition completer for ruby-build -if _ruby-build_installed; then - _ruby-build() { compadd $(ruby-build --definitions) } - compdef _ruby-build ruby-build -fi - -_source_from_omz_settings() { - zstyle -s :omz:plugins:chruby path _chruby_path - zstyle -s :omz:plugins:chruby auto _chruby_auto - - if ${_chruby_path} && [[ -r ${_chruby_path} ]]; then - source ${_chruby_path} - fi - - if ${_chruby_auto} && [[ -r ${_chruby_auto} ]]; then - source ${_chruby_auto} - fi -} - -_chruby_dirs() { - chrubydirs=($HOME/.rubies/ $PREFIX/opt/rubies) - for dir in chrubydirs; do - if [[ -d $dir ]]; then - RUBIES+=$dir - fi - done -} - -if _homebrew-installed && _chruby-from-homebrew-installed ; then - source $(brew --prefix chruby)/share/chruby/chruby.sh - source $(brew --prefix chruby)/share/chruby/auto.sh - _chruby_dirs -elif [[ -r "/usr/local/share/chruby/chruby.sh" ]] ; then - source /usr/local/share/chruby/chruby.sh - source /usr/local/share/chruby/auto.sh - _chruby_dirs -else - _source_from_omz_settings - _chruby_dirs -fi - -function ensure_chruby() { - $(whence chruby) -} - -function current_ruby() { - local _ruby - _ruby="$(chruby |grep \* |tr -d '* ')" - if [[ $(chruby |grep -c \*) -eq 1 ]]; then - echo ${_ruby} - else - echo "system" - fi -} - -function chruby_prompt_info() { - echo "$(current_ruby)" -} - -# complete on installed rubies -_chruby() { compadd $(chruby | tr -d '* ') } -compdef _chruby chruby diff --git a/.oh-my-zsh/plugins/chucknorris/.gitignore b/.oh-my-zsh/plugins/chucknorris/.gitignore deleted file mode 100644 index 267c504..0000000 --- a/.oh-my-zsh/plugins/chucknorris/.gitignore +++ /dev/null @@ -1 +0,0 @@ -fortunes/chucknorris.dat diff --git a/.oh-my-zsh/plugins/chucknorris/LICENSE b/.oh-my-zsh/plugins/chucknorris/LICENSE deleted file mode 100644 index 5f40edd..0000000 --- a/.oh-my-zsh/plugins/chucknorris/LICENSE +++ /dev/null @@ -1,2 +0,0 @@ -License: GPL v2 -Thanks to http://www.k-lug.org/~kessler/projects.html for the fortune file. diff --git a/.oh-my-zsh/plugins/chucknorris/chucknorris.plugin.zsh b/.oh-my-zsh/plugins/chucknorris/chucknorris.plugin.zsh deleted file mode 100644 index 0963646..0000000 --- a/.oh-my-zsh/plugins/chucknorris/chucknorris.plugin.zsh +++ /dev/null @@ -1,6 +0,0 @@ -if [ ! -f $ZSH/plugins/chucknorris/fortunes/chucknorris.dat ]; then - strfile $ZSH/plugins/chucknorris/fortunes/chucknorris $ZSH/plugins/chucknorris/fortunes/chucknorris.dat -fi - -alias chuck="fortune -a $ZSH/plugins/chucknorris/fortunes" -alias chuck_cow="chuck | cowthink" diff --git a/.oh-my-zsh/plugins/chucknorris/fortunes/chucknorris b/.oh-my-zsh/plugins/chucknorris/fortunes/chucknorris deleted file mode 100644 index b8edf9a..0000000 --- a/.oh-my-zsh/plugins/chucknorris/fortunes/chucknorris +++ /dev/null @@ -1,904 +0,0 @@ -Chuck Norris' tears cure cancer. Too bad he has never cried. Ever. -% -Chuck Norris does not sleep. He waits. -% -Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs. -% -The chief export of Chuck Norris is pain. -% -If you can see Chuck Norris, he can see you. If you can't see Chuck Norris, you may be only seconds away from death. -% -Chuck Norris has counted to infinity. Twice. -% -Chuck Norris does not hunt because the word hunting implies the probability of failure. Chuck Norris goes killing. -% -Chuck Norris' blood type is AK+. Ass-Kicking Positive. It is compatible only with heavy construction equipment, tanks, and fighter jets. -% -Chuck Norris is 1/8th Cherokee. This has nothing to do with ancestry, the man ate a fucking Indian. -% -In fine print on the last page of the Guinness Book of World Records it notes that all world records are held by Chuck Norris, and those listed in the book are simply the closest anyone else has ever gotten. -There is no chin behind Chuck Norris' beard. There is only another fist. -% -Chuck Norris does not teabag the ladies. He potato-sacks them. -Pluto is actually an orbiting group of British soldiers from the American Revolution who entered space after the Chuck gave them a roundhouse kick to the face. -% -When Chuck Norris goes to donate blood, he declines the syringe, and instead requests a hand gun and a bucket. -% -There are no steroids in baseball. Just players Chuck Norris has breathed on. -% -Chuck Norris once challenged Lance Armstrong in a "Who has more testicles?" contest. Chuck Norris won by 5. -% -Chuck Norris was the fourth wise man, who gave baby Jesus the gift of beard, which he carried with him until he died. The other three wise men were enraged by the preference that Jesus showed to Chuck's gift, and arranged to have him written out of the bible. All three died soon after of mysterious roundhouse-kick related injuries. -% -Chuck Norris sheds his skin twice a year. -% -When Chuck Norris calls 1-900 numbers, he doesnt get charged. He holds up the phone and money falls out. -% -Chuck Norris once ate a whole cake before his friends could tell him there was a stripper in it. -% -Some people like to eat frogs' legs. Chuck Norris likes to eat lizard legs. Hence, snakes. -% -There are no races, only countries of people Chuck Norris has beaten to different shades of black and blue. -% -When Chuck Norris was denied an Egg McMuffin at McDonald's because it was 10:35, he roundhouse kicked the store so hard it became a Wendy's. -% -Chuck Norris can't finish a "color by numbers" because his markers are filled with the blood of his victims. Unfortunately, all blood is dark red. -% -A Chuck Norris-delivered Roundhouse Kick is the preferred method of execution in 16 states. -% -When Chuck Norris falls in water, Chuck Norris doesn't get wet. Water gets Chuck Norris. -% -Scientists have estimated that the energy given off during the Big Bang is roughly equal to 1CNRhK (Chuck Norris Roundhouse Kick) -% -Chuck Norris' house has no doors, only walls that he walks through. -% -When Chuck Norris has sex with a man, it won't be because he is gay. It will be because he has run out of women. -% -How much wood would a woodchuck chuck if a woodchuck could Chuck Norris? ...All of it. -% -Chuck Norris doesn't actually write books, the words assemble themselves out of fear. -% -In honor of Chuck Norris, all McDonald's in Texas have an even larger size than the super-size. When ordering, just ask to be "Norrisized". -% -Chuck Norris CAN believe it's not butter. -% -If tapped, a Chuck Norris roundhouse kick could power the country of Australia for 44 minutes. -% -Chuck Norris can divide by zero. -% -The grass is always greener on the other side, unless Chuck Norris has been there. In that case the grass is most likely soaked in blood and tears. -% -A picture is worth a thousand words. A Chuck Norris is worth 1 billion words. -% -Newton's Third Law is wrong: Although it states that for each action, there is an equal and opposite reaction, there is no force equal in reaction to a Chuck Norris roundhouse kick. -% -Chuck Norris invented his own type of karate. It's called Chuck-Will-Kill. -% -When an episode of Walker Texas Ranger was aired in France, the French surrendered to Chuck Norris just to be on the safe side. -% -While urinating, Chuck Norris is easily capable of welding titanium. -% -Chuck Norris once sued the Houghton-Mifflin textbook company when it became apparent that their account of the war of 1812 was plagiarized from his autobiography. -% -When Chuck Norris talks, everybody listens. And dies. -% -When Steven Seagal kills a ninja, he only takes its hide. When Chuck Norris kills a ninja, he uses every part. -% -Wilt Chamberlain claims to have slept with more than 20,000 women in his lifetime. Chuck Norris calls this "a slow Tuesday." -% -Contrary to popular belief, there is indeed enough Chuck Norris to go around. -% -Chuck Norris doesnt shave; he kicks himself in the face. The only thing that can cut Chuck Norris is Chuck Norris. -% -For some, the left testicle is larger than the right one. For Chuck Norris, each testicle is larger than the other one. -% -Chuck Norris always knows the EXACT location of Carmen SanDiego. -% -When taking the SAT, write "Chuck Norris" for every answer. You will score over 8000. -% -Chuck Norris invented black. In fact, he invented the entire spectrum of visible light. Except pink. Tom Cruise invented pink. -% -When you're Chuck Norris, anything + anything is equal to 1. One roundhouse kick to the face. -% -Chuck Norris has the greatest Poker-Face of all time. He won the 1983 World Series of Poker, despite holding only a Joker, a Get out of Jail Free Monopoloy card, a 2 of clubs, 7 of spades and a green #4 card from the game UNO. -% -On his birthday, Chuck Norris randomly selects one lucky child to be thrown into the sun. -% -Nobody doesn't like Sara Lee. Except Chuck Norris. -% -Chuck Norris doesn't throw up if he drinks too much. Chuck Norris throws down! -% -In the beginning there was nothing...then Chuck Norris Roundhouse kicked that nothing in the face and said "Get a job". That is the story of the universe. -% -Chuck Norris has 12 moons. One of those moons is the Earth. -% -Chuck Norris grinds his coffee with his teeth and boils the water with his own rage. -% -Archeologists unearthed an old english dictionary dating back to the year 1236. It defined "victim" as "one who has encountered Chuck Norris" -% -Chuck Norris ordered a Big Mac at Burger King, and got one. -% -Chuck Norris and Mr. T walked into a bar. The bar was instantly destroyed, as that level of awesome cannot be contained in one building. -% -If you Google search "Chuck Norris getting his ass kicked" you will generate zero results. It just doesn't happen. -% -Chuck Norris can drink an entire gallon of milk in thirty-seven seconds. -% -Little known medical fact: Chuck Norris invented the Caesarean section when he roundhouse-kicked his way out of his monther's womb. -% -Chuck Norris doesn't bowl strikes, he just knocks down one pin and the other nine faint. -The show Survivor had the original premise of putting people on an island with Chuck Norris. There were no survivors, and nobody is brave enough to go to the island to retrieve the footage. -% -It takes Chuck Norris 20 minutes to watch 60 Minutes. -% -You know how they say if you die in your dream then you will die in real life? In actuality, if you dream of death then Chuck Norris will find you and kill you. -% -Chuck Norris has a deep and abiding respect for human life... unless it gets in his way. -% -The Bermuda Triangle used to be the Bermuda Square, until Chuck Norris Roundhouse kicked one of the corners off. -% -There are no weapons of mass destruction in Iraq, Chuck Norris lives in Oklahoma. -% -Chuck Norris doesn't believe in Germany. -% -When Chuck Norris is in a crowded area, he doesn't walk around people. He walks through them. -% -Chuck Norris once ate an entire bottle of sleeping pills. They made him blink. -% -James Cameron wanted Chuck Norris to play the Terminator. However, upon reflection, he realized that would have turned his movie into a documentary, so he went with Arnold Schwarzenegger. -% -Chuck Norris can touch MC Hammer. -% -Thousands of years ago Chuck Norris came across a bear. It was so terrified that it fled north into the arctic. It was also so terrified that all of its decendents now have white hair. -% -Chuck Norris played Russian Roulette with a fully loaded gun and won. -% -It takes 14 puppeteers to make Chuck Norris smile, but only 2 to make him destroy an orphanage. -% -Chuck Norris is responsible for China's over-population. He hosted a Karate tournament in Beijing and all women within 1,000 miles became pregnant instantly. -% -Some people wear Superman pajamas. Superman wears Chuck Norris pajamas. -% -Chuck Norris once worked as a weatherman for the San Diego evening news. Every night he would make the same forecast: Partly cloudy with a 75% chance of Pain. -% -Simply by pulling on both ends, Chuck Norris can stretch diamonds back into coal. -% -When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down. -% -Chuck Norris invented the bolt-action rifle, liquor, sexual intercourse, and football-- in that order. -% -A high tide means Chuck Norris is flying over your coast. The tide is caused by God pissing his pants. -% -Chuck Norris keeps his friends close and his enemies closer. Close enough to drop them with one round house kick to the face. -% -There is in fact an "I" in Norris, but there is no "team"? not even close. -% -Scotty in Star Trek often says "Ye cannae change the laws of physics." This is untrue. Chuck Norris can change the laws of physics. With his fists. -% -An anagram for Walker Texas Ranger is KARATE WRANGLER SEX. I don't know what that is, but it sounds AWESOME. -% -Chuck Norris doesn't stub his toes. He accidentally destroys chairs, bedframes, and sidewalks. -% -Using his trademark roundhouse kick, Chuck Norris once made a fieldgoal in RJ Stadium in Tampa Bay from the 50 yard line of Qualcomm stadium in San Diego. -% -Chuck Norris roundhouse kicks don't really kill people. They wipe out their entire existence from the space-time continuum. -% -Chuck Norris does not own a stove, oven, or microwave , because revenge is a dish best served cold. -% -Tom Clancy has to pay royalties to Chuck Norris because "The Sum of All Fears" is the name of Chuck Norris' autobiography. -% -Chuck Norris can slam a revolving door. -% -Chuck Norris is expected to win gold in every swimming competition at the 2008 Beijing Olympics, even though Chuck Norris does not swim. This is because when Chuck Norris enters the water, the water gets out of his way and Chuck Norris simply walks across the pool floor. -% -Chuck Norris built a better mousetrap, but the world was too frightened to beat a path to his door. -% -The original draft of The Lord of the Rings featured Chuck Norris instead of Frodo Baggins. It was only 5 pages long, as Chuck roundhouse-kicked Sauron's ass halfway through the first chapter. -% -Hellen Keller's favorite color is Chuck Norris. -% -Chuck Norris eats beef jerky and craps gunpowder. Then, he uses that gunpowder to make a bullet, which he uses to kill a cow and make more beef jerky. Some people refer to this as the "Circle of Life." -% -If, by some incredible space-time paradox, Chuck Norris would ever fight himself, he'd win. Period. -% -Chuck Norris is currently suing myspace for taking the name of what he calls everything around you. -% -The crossing lights in Chuck Norris's home town say "Die slowly" and "die quickly". They each have a picture of Chuck Norris punching or kicking a pedestrian. -% -Science Fact: Roundhouse kicks are comprised primarily of an element called Chucktanium. -% -The Sherman tank was originaly called the Norris tank until Chuck Norris decided it wasn't tough enough to be associated with him. The Army, for fear of Chuck Norris, renamed the tank and promised to develop a weapon more fitting of his name. To date, no weapon created has been badass enough to be named after Chuck Norris. -% -Chuck Norris proved that we are alone in the universe. We weren't before his first space expedition. -% -Superman once watched an episode of Walker, Texas Ranger. He then cried himself to sleep. -% -Chuck Norris doesn't step on toes. Chuck Norris steps on necks. -% -The movie "Delta Force" was extremely hard to make because Chuck had to downplay his abilities. The first few cuts were completely unbelievable. -% -Movie trivia: The movie "Invasion U.S.A." is, in fact, a documentary. -% -Chuck Norris does not "style" his hair. It lays perfectly in place out of sheer terror. -% -There is no such thing as global warming. Chuck Norris was cold, so he turned the sun up. -% -A study showed the leading causes of death in the United States are: -1:Heart disease -2:Chuck Norris -3:Cancer -% -It's widely believed that Jesus was Chuck Norris' stunt double for crucifixion due to the fact that it is impossible for nails to pierce Chuck Norris' skin. -% -Chuck Norris did in fact, build Rome in a day. -% -Along with his black belt, Chuck Norris often chooses to wear brown shoes. No one has DARED call him on it. Ever. -% -Anytime someone is elected president in the United States, they must ask permission from Chuck Norris to live in the White House. The reason for this is because Chuck Norris had won every Federal, State, and Local election since 1777. He just allows others to run the country in his place. -% -Once you go Norris, you are physically unable to go back. -% -Ninjas want to grow up to be just like Chuck Norris. But usually they grow up just to be killed by Chuck Norris. -% -Chuck Norris once sued Burger King after they refused to put razor wire in his Whopper Jr, insisting that that actually is "his" way. -% -The last thing you hear before Chuck Norris gives you a roundhouse kick? No one knows because dead men tell no tales. -% -Chuck Norris doesn't play god. Playing is for children. -% -As a teen, Chuck Norris had sex with every nun in a convent tucked away in the hills of Tuscany. Nine months later the nuns gave birth to the 1972 Miami Dolphins, the only undefeated and untied team in professional football history. -% -Chuck Norris is the only person in the world that can actually email a roundhouse kick. -% -Chuck Norris won super bowls VII and VIII singlehandedly before unexpectedly retiring to pursue a career in ass-kicking. -% -Wo hu cang long. The translation from Mandarin Chinese reads: "Crouching Chuck, Hidden Norris" -% -Chuck Norris can set ants on fire with a magnifying glass. At night. -% -Some kids play Kick the can. Chuck Norris played Kick the keg. -% -'Icy-Hot' is too weak for Chuck Norris. After a workout, Chuck Norris rubs his muscles down with liquid-hot MAGMA. -% -Chuck Norris cannot love, he can only not kill. -% -When Chuck Norris was a baby, he didn't suck his mother's breast. His mother served him whiskey, straight out of the bottle. -% -According to Einstein's theory of relativity, Chuck Norris can actually roundhouse kick you yesterday. -% -Chuck Norris once pulled out a single hair from his beard and skewered three men through the heart with it. -% -In an act of great philanthropy, Chuck made a generous donation to the American Cancer Society. He donated 6,000 dead bodies for scientific research. -% -Chuck Norris' favourite cut of meat is the roundhouse. -% -When J. Robert Oppenheimer said "I am become death, the destroyer Of worlds", He was not referring to the atomic bomb. He was referring to the Chuck Norris halloween costume he was wearing. -% -Chuck Norris recently had the idea to sell his urine as a canned beverage. We know this beverage as Red Bull. -% -In a recent survey it was discovered the 94% of American women lost their virginity to Chuck Norris. The other 6% were incredibly fat or ugly. -% -Chuck Norris invented a language that incorporates karate and roundhouse kicks. So next time Chuck Norris is kicking your ass, don't be offended or hurt, he may be just trying to tell you he likes your hat. -% -If at first you don't succeed, you're not Chuck Norris. -If Chuck Norris were a calendar, every month would be named Chucktober, and every day he'd kick your ass. -% -Fear is not the only emotion Chuck Norris can smell. He can also detect hope, as in "I hope I don't get a roundhouse kick from Chuck Norris." -Too late, asshole. -% -Chuck Norris's show is called Walker: Texas Ranger, because Chuck Norris doesn't run. -% -MacGyver can build an airplane out of gum and paper clips, but Chuck Norris can roundhouse-kick his head through a wall and take it. -% -Behind every successful man, there is a woman. Behind every dead man, there is Chuck Norris. -% -What's known as the UFC, or Ultimate Fighting Championship, doesn't use its full name, which happens to be "Ultimate Fighting Championship, Non-Chuck-Norris-Division". -% -Chuck Norris brushes his teeth with a mixture of iron shavings, industrial paint remover, and wood-grain alcohol. -% -The easiest way to determine Chuck Norris' age is to cut him in half and count the rings. -% -There is endless debate about the existence of the human soul. Well it does exist, and Chuck Norris finds it delicious. -% -Most boots are made for walkin'. Chuck Norris' boots ain't that merciful. -% -The US did not boycott the 1980 Summer Olympics in Moscow due to political reasons: Chuck Norris killed the entire US team with a single round-house kick during TaeKwonDo practice. -% -Chuck Norris wears a live rattlesnake as a condom. -% -When the movie Pulp Fiction was filmed they had to borrow Chuck Norris's wallet... It's the one that says "Bad Mother Fucker" on it -% -The Bible was originally titled "Chuck Norris and Friends" -% -Chuck Norris began selling the Total Gym as an ill-fated attempt to make his day-to-day opponents less laughably pathetic. -% -Do you know why Baskin Robbins only has 31 flavors? Because Chuck Norris doesn't like Fudge Ripple. -% -When Chuck Norris says "More cowbell", he fucking MEANS it. -% -On the set of Walker Texas Ranger Chuck Norris brought a dying lamb back to life by nuzzling it with his beard. As the onlookers gathered, the lamb sprang to life. Chuck Norris then roundhouse kicked it, killing it instantly. This was just to prove that the good Chuck giveth, and the good Chuck, he taketh away. -% -Chuck Norris was what Willis was talkin' about. -% -Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you. -% -Chuck Norris can lead a horse to water AND make it drink. -% -Nagasaki never had a bomb dropped on it. Chuck Norris jumped out of a plane and punched the ground. -% -It is scientifically impossible for Chuck Norris to have had a mortal father. The most popular theory is that he went back in time and fathered himself. -% -Chuck Norris destroyed the periodic table, because Chuck Norris only recognizes the element of surprise. -% -It is believed dinosaurs are extinct due to a giant meteor. That's true if you want to call Chuck Norris a giant meteor. -% -Chuck Norris shot the sheriff, but he round house kicked the deputy. -% -That's not Chuck Norris doing push-ups -- that's Chuck Norris moving the Earth away from the path of a deadly asteroid. -% -Chuck Norris can judge a book by its cover. -% -Nothing can escape the gravity of a black hole, except for Chuck Norris. Chuck Norris eats black holes. They taste like chicken. -% -Chuck Norris does not play the lottery. It doesn't have nearly enough balls. -% -Q: How many Chuck Norris' does it take to change a light bulb? -A: None, Chuck Norris prefers to kill in the dark. -% -As President Roosevelt said: "We have nothing to fear but fear itself. And Chuck Norris." -% -Chuck Norris just says "no" to drugs. If he said "yes", it would collapse Colombia's infrastructure. -% -Since 1940, the year Chuck Norris was born, roundhouse-kick related deaths have increased 13,000 percent. -% -Crime does not pay - unless you are an undertaker following Walker, Texas Ranger, on a routine patrol. -% -Chuck Norris invented the internet? just so he had a place to store his porn. -% -Chuck Norris does not own a house. He walks into random houses and people move. -% -It is better to give than to receive. This is especially true of a Chuck Norris roundhouse kick. -% -Chuck Norris is the only person to ever win a staring contest against Ray Charles and Stevie Wonder at the same time. -% -Industrial logging isn't the cause of deforestation. Chuck Norris needs toothpicks. -% -Chuck Norris smells what the Rock is cooking... because the Rock is Chuck Norris' personal chef. -% -When Chuck Norris plays Oregon Trail, his family does not die from cholera or dysentery, but rather, roundhouse kicks to the face. He also requires no wagon, since he carries the oxen, axels, and buffalo meat on his back. He always makes it to Oregon before you. -% -Chuck Norris is the reason why Waldo is hiding. -% -"Brokeback Mountain" is not just a movie. It's also what Chuck Norris calls the pile of dead ninjas in his front yard. -% -When God said, "let there be light", Chuck Norris said, "say 'please'." -% -Chuck Norris does not eat. Food understands that the only safe haven from Chuck Norris' fists is inside his own body. -% -One day Chuck Norris walked down the street with a massive erection. There were no survivors. -% -Chuck Norris built a time machine and went back in time to stop the JFK assassination. As Oswald shot, Chuck met all three bullets with his beard, deflecting them. JFK's head exploded out of sheer amazement. -% -Chuck Norris doesn't read books. He stares them down until he gets the information he wants. -% -Chuck Norris uses a night light. Not because Chuck Norris is afraid of the dark, but the dark is afraid of Chuck Norris. -% -Chuck Norris is not capable of hitting a target on the broad side of a barn. Every time he tries, the whole damn barn falls down. -% -Before each filming of Walker: Texas Ranger, Chuck Norris is injected with fourteen times the lethal dose of elephant tranquilzer. This is, of course, to limit his strength and mobility, in an attempt to lower the fatality rate of the actors he fights. -% -When Bruce Banner gets mad, he turns into the Hulk. When the Hulk gets mad, he turns into Chuck Norris. -% -Chuck Norris kills anyone that asks, "You want fries with that" because by now everyone should know that Chuck doesn't ever want fries with anything. Ever. -% -Chuck Norris once kicked a horse in the chin. Its decendants are known today as Giraffes. -% -Sticks and stones may break your bones, but a Chuck Norris glare will liquefy your kidneys. -% -Human cloning is outlawed because if Chuck Norris were cloned, then it would be possible for a Chuck Norris roundhouse kick to meet another chuck Norris roundhouse kick. Physicists theorize that this contact would end the universe. -% -Chuck Norris once went skydiving, but promised never to do it again. One Grand Canyon is enough. -% -Chuck Norris's version of a "chocolate milkshake" is a raw porterhouse wrapped around ten Hershey bars, and doused in diesel fuel. -% -If Chuck Norris round-house kicks you, you will die. If Chuck Norris' misses you with the round-house kick, the wind behind the kick will tear out your pancreas. -% -In a fight between Batman and Darth Vader, the winner would be Chuck Norris. -% -Chuck Norris puts his pants on one leg at a time, just like the rest of us. The only difference is, then he fucking kills people. -% -Everybody loves Raymond. Except Chuck Norris. -% -Contrary to popular belief, the Titanic didn't hit an iceberg. The ship was off course and accidentally ran into Chuck Norris while he was doing the backstroke across the Atlantic. -% -Chuck Norris got his drivers license at the age of 16. Seconds. -% -The original title for Alien vs. Predator was Alien and Predator vs Chuck Norris. The film was cancelled shortly after going into preproduction. No one would pay nine dollars to see a movie fourteen seconds long. -% -Chuck Norris' sperm is so badass, he had sex with Nicole Kidman, and 7 months later she prematurely gave birth to a Ford Excursion. -% -Chuck Norris can win at solitaire with only 18 cards. -% -Chuck Norris once shat blood - the blood of 11,940 natives he had killed and eaten. -% -Maslow's theory of higher needs does not apply to Chuck Norris. He only has two needs: killing people and finding people to kill. -% -The truth will set you free. Unless Chuck Norris has you, in which case, forget it buddy! -% -For most people, home is where the heart is. For Chuck Norris, home is where he stores his collection of human skulls. -% -Kryptonite has been found to contain trace elements of Chuck Norris roundhouse kicks to the face. This is why it is so deadly to Superman. -% -Saddam Hussein was not found hiding in a "hole." Saddam was roundhouse-kicked in the head by Chuck Norris in Kansas, which sent him through the earth, stopping just short of the surface of Iraq. -% -Coroners refer to dead people as "ABC's". Already Been Chucked. -% -Chuck Norris doesn't look both ways before he crosses the street... he just roundhouses any cars that get too close. -% -Chuck Norris does not have to answer the phone. His beard picks up the incoming electrical impulses and translates them into audible sound. -% -How many roundhouse kicks does it take to get to the center of a tootsie pop? Just one. From Chuck Norris. -% -Chuck Norris doesnt wear a watch, HE decides what time it is. -% -The phrase 'break a leg' was originally coined by Chuck Norris's co-stars in Walker, Texas Ranger as a good luck charm, indicating that a broken leg might be the worst extent of their injuries. This never proved to be the case. -% -When chuck Norris does division, there are no remainders. -% -If you rearrange the letters in "Chuck Norris", they also spell "Crush Rock In". The words "with his fists" are understood. -% -Never look a gift Chuck Norris in the mouth, because he will bite your damn eyes off. -% -Give a man a fish, and you will feed him for a day. Give a man anything that is better than a fish, and Chuck Norris will beat his ass and take it. -% -Chuck Norris used to play baseball. When Babe Ruth was hailed as the better player, Chuck Norris killed him with a baseball bat to the throat. Lou Gehrig got off easy. -% -The original title for Star Wars was "Skywalker: Texas Ranger". Starring Chuck Norris. -% -Guantuanamo Bay, Cuba, is the military code-word for "Chuck Norris' basement". -% -The phrase 'balls to the wall' was originally conceived to describe Chuck Norris entering any building smaller than an aircraft hangar. -% -Chuck Norris' roundhouse kick is so powerful, it can be seen from outer space by the naked eye. -% -Ozzy Osbourne bites the heads off of bats. Chuck Norris bites the heads off of Siberian Tigers. -% -He who lives by the sword, dies by the sword. He who lives by Chuck Norris, dies by the roundhouse kick. -% -The best-laid plans of mice and men often go awry. Even the worst-laid plans of Chuck Norris come off without a hitch. -% -The phrase 'dead ringer' refers to someone who sits behind Chuck Norris in a movie theater and forgets to turn their cell phone off. -% -Chuck Norris' Roundhouse kick is so powerful, that on the set of Sidekicks he single-footedly destroyed Jonathan Brandis' Career. -% -Staring at Chuck Norris for extended periods of time without proper eye protection will cause blindess, and possibly foot sized brusies on the face. -% -Chuck Norris can taste lies. -% -Chuck Norris does not kick ass and take names. In fact, Chuck Norris kicks ass and assigns the corpse a number. It is currently recorded to be in the billions. -% -One time, Chuck Norris accidentally stubbed his toe. It destroyed the entire state of Ohio. -% -Little Miss Muffet sat on her tuffet, until Chuck Norris roundhouse kicked her into a glacier. -% -In 1990, Chuck Norris founded the non-profit organization "Kick Drugs Out of America". If the organization's name were "Roundhouse Kick Drugs out of America", there wouldn't be any drugs in the Western Hemisphere. Anywhere. -% -Chuck Norris can blow bubbles with beef jerky. -% -They had to edit the first ending of 'Lone Wolf McQuade' after Chuck Norris kicked David Carradine's ass, then proceeded to barbecue and eat him. -% -Chuck Norris does, in fact, live in a round house. -% -Chuck Norris was once on Jeopardy. This show is notable in that it was the first occasion in Jeopardy history that Alex Trebek had appeared without a mustache. And a head. -% -When Chuck Norris works out on the Total Gym, the Total Gym feels like it's been raped. -% -4 out of 5 doctors fail to recommend Chuck Norris as a solution to most problems. Also, 80% of doctors die unexplained, needlessly brutal deaths. -% -Chuck Norris can skeletize a cow in two minutes. -% -The only sure things are Death and Taxes?and when Chuck Norris goes to work for the IRS, they'll be the same thing. -Chuck Norris' first job was as a paperboy. There were no survivors. -% -With the rising cost of gasoline, Chuck Norris is beginning to worry about his drinking habit. -% -The square root of Chuck Norris is pain. Do not try to square Chuck Norris, the result is death. -% -Chuck Norris' testicles do not produce sperm. They produce tiny white ninjas that recognize only one mission: seek and destroy. -% -To be or not to be? That is the question. The answer? Chuck Norris. -% -Chuck Norris has never been in a fight, ever. Do you call one roundhouse kick to the face a fight? -% -There are two types of people in the world... people that suck, and Chuck Norris. -% -Chuck Norris never wet his bed as a child. The bed wet itself out of fear. -% -If you were somehow able to land a punch on Chuck Norris your entire arm would shatter upon impact. This is only in theory, since, come on, who in their right mind would try this? -% -70% of a human's weight is water. 70% of Chuck Norris' weight is his dick. -% -Jean-Claude Van Damme once kicked Chuck Norris' ass. He was then awakened from his dream by a roundhouse kick to the face. -% -The pie scene in "American Pie" is based on a dare Chuck Norris took when he was younger. However, in Chuck Norris' case, the "pie" was the molten crater of an active volcano. -% -Chuck Norris uses 8'x10' sheets of plywood as toilet paper. -% -Noah was the only man notified before Chuck Norris relieved himself in the Atlantic Ocean. -% -Chuck Norris once invited all of the other badasses from TV to duke it out in order to see who was the supreme badass. Only two showed up-- Jack Bauer and MacGyver. -% - -% -MacGyver immediately tried to make a bomb out of some Q-Tips and Gatorade, but Chuck Norris roundhouse-kicked him in the solar plexus. MacGyver promptly threw up his own heart. -% -Jack Bauer tried to use his detailed knowledge of torture techniques, but to no avail: Chuck Norris thrives on pain. Chuck Norris then ripped off Jack Bauer's arm and beat him to death with it. Game, set, match. -% -Chuck Norris eats steak for every single meal. Most times he forgets to kill the cow. -% -The First Law of Thermodynamics states that energy can neither be created nor destroyed... unless it meets Chuck Norris. -% -Chuck Norris doesn't go on the internet, he has every internet site stored in his memory. He refreshes webpages by blinking. -% -Fact: Chuck Norris doesn't consider it sex if the woman survives. -% -It is said that looking into Chuck Norris' eyes will reveal your future. Unfortunately, everybody's future is always the same: death by a roundhouse-kick to the face. -% -Chuck Norris knows everything there is to know - Except for the definition of mercy. -% -Scientifically speaking, it is impossible to charge Chuck Norris with "obstruction of justice." This is because even Chuck Norris cannot be in two places at the same time. -% -Chuck Norris never has to wax his skis because they're always slick with blood. -% -When you say "no one's perfect", Chuck Norris takes this as a personal insult. -% -Chuck Norris can win a game of Trivial Pursuit with one roll of the dice, and without answering a single question... just a nod of the head, and a stroke of the beard. -% -182,000 Americans die from Chuck Norris-related accidents every year. -% -Paper beats rock, rock beats scissors, and scissors beats paper, but Chuck Norris beats all 3 at the same time. -% -Jesus can walk on water, but Chuck Norris can walk on Jesus. -% -All roads lead to Chuck Norris. And by the transitive property, a roundhouse kick to the face. -% -If you're driving down the road and you think Chuck Norris just cut you off, you better thank your lucky stars it wasn't the other way around. -% -July 4th is Independence day. And the day Chuck Norris was born. Coincidence? i think not. -% -Chuck Norris never goes to the dentist because his teeth are unbreakable. His enemies never go to the dentist because they have no teeth. -% -In the medical community, death is referred to as "Chuck Norris Disease" -% -Chuck Norris was once in a knife fight, and the knife lost. -% -If you work in an office with Chuck Norris, don't ask him for his three-hole-punch. -% -In the Words of Julius Caesar, "Veni, Vidi, Vici, Chuck Norris". Translation: I came, I saw, and I was roundhouse-kicked inthe face by Chuck Norris. -% -The First rule of Chuck Norris is: you do not talk about Chuck Norris. -% -Chuck Norris is widely predicted to be first black president. If you're thinking to yourself, "But Chuck Norris isn't black", then you are dead wrong. And stop being a racist. -% -When Chuck Norris plays Monopoly, it affects the actual world economy. -% -Chuck Norris can be unlocked on the hardest level of Tekken. But only Chuck Norris is skilled enough to unlock himself. Then he roundhouse kicks the Playstation back to Japan. -% -Chuck Norris drinks napalm to quell his heartburn. -% -Every time someone uses the word "intense", Chuck Norris always replies "you know what else is intense?" followed by a roundhouse kick to the face. -% -As an infant, Chuck Norris' parents gave him a toy hammer. He gave the world Stonehenge. -% -Chuck Norris once ordered a steak in a restaurant. The steak did what it was told. -% -Most people fear the Reaper. Chuck Norris considers him "a promising Rookie". -% -There are only two things that can cut diamonds: other diamonds, and Chuck Norris. -% -President Roosevelt once rode his horse 100 miles. Chuck Norris carried his the same distance in half the time. -% -Chuck Norris once ate four 30lb bowling balls without chewing. -% -What many people dont know is chuck norris is the founder of planned parenthood. Not even unborn children can escape his wrath. -% -Chuck Norris was banned from competitive bullriding after a 1992 exhibition in San Antonio, when he rode the bull 1,346 miles from Texas to Milwaukee Wisconsin to pick up his dry cleaning. -% -Chuck Norris qualified with a top speed of 324 mph at the Daytona 500, without a car. -% -Chuck Norris likes his coffee half and half: half coffee grounds, half wood-grain alcohol. -% -Chuck Norris uses tabasco sauce instead of visine. -% -The chemical formula for the highly toxic cyanide ion is CN-. These are also Chuck Norris' initials. This is not a coincidence. -% -Chuck Norris' credit cards have no limit. Last weekend, he maxed them out. -% -Think of a hot woman. Chuck Norris did her. -% -A man once claimed Chuck Norris kicked his ass twice, but it was promptly dismissed as false - no one could survive it the first time. -% -Chuck Norris sleeps with a pillow under his gun. -% -Chuck Norris owns a chain of fast-food restaurants throughout the southwest. They serve nothing but barbecue-flavored ice cream and Hot Pockets. -% -Chuck Norris doesn't chew gum. Chuck Norris chews tin foil. -% -Aliens DO indeed exist. They just know better than to visit a planet that Chuck Norris is on. -% -When in a bar, you can order a drink called a "Chuck Norris". It is also known as a "Bloody Mary", if your name happens to be Mary. -% -Every time Chuck Norris smiles, someone dies. Unless he smiles while he's roundhouse kicking someone in the face. Then two people die. -% -Some people ask for a Kleenex when they sneeze, Chuck Norris asks for a body bag. -% -There's an order to the universe: space, time, Chuck Norris.... Just kidding, Chuck Norris is first. -% -A man once asked Chuck Norris if his real name is "Charles". Chuck Norris did not respond, he simply stared at him until he exploded. -% -Chuck Norris starts everyday with a protein shake made from Carnation Instant Breakfast, one dozen eggs, pure Colombian cocaine, and rattlesnake venom. He injects it directly into his neck with a syringe. -% -In a tagteam match, Chuck Norris was teamed with Hulk Hogan against King Kong Bundy and Andre The Giant. He pinned all 3 at the same time. -% -Chuck Norris doesn't see dead people. He makes people dead. -% -Chuck Norris is the only person who can simultaneously hold and fire FIVE Uzis: One in each hand, one in each foot -- and the 5th one he roundhouse-kicks into the air, so that it sprays bullets. -% -For undercover police work, Chuck Norris pins his badge underneath his shirt, directly into his chest. -% -In the X-Men movies, none of the X-Men super-powers are done with special effects. Chuck Norris is the stuntman for every character. -% -We live in an expanding universe. All of it is trying to get away from Chuck Norris. -% -Chuck Norris went looking for a bar but couldn't find one. He walked to a vacant lot and sat there. Sure enough within an hour an a half someone constructed a bar around him. He then ordered a shot, drank it, and then burned the place to the ground. Chuck Norris yelled over the roar of the flames, "always leave things the way you found em!" -% -It is said that every time you masturbate, God kills a kitten. Every time God masturbates, Chuck Norris kills a lion. -% -The word 'Kill' was invented by Chuck Norris. Other words were 'Die', 'Beer', and 'What'. -% -Chuck Norris is a vegetarian. Meaning, he does not eat animals until first he puts them into vegetative state with his fists. -% -The 11th commandment is "Thou shalt not piss off Chuck Norris" This commandment is rarely enforced, as it is impossible to accomplish. -% -Chuck Norris is his own line at the DMV. -% -Two wrongs don't make a right. Unless you're Chuck Norris. Then two wrongs make a roundhouse kick to the face. -% -Who let the dogs out? Chuck Norris let the dogs out... and then roundhouse kicked them through an Oldsmobile. -% -Chuck Norris can do a roundhouse kick faster than the speed of light. This means that if you turn on a light switch, you will be dead before the lightbulb turns on. -% -When Chuck Norris goes to out to eat, he orders a whole chicken, but he only eats its soul. -% -Chuck Norris sold his soul to the devil for his rugged good looks and unparalleled martial arts ability. Shortly after the transaction was finalized, Chuck roundhouse-kicked the devil in the face and took his soul back. The devil, who appreciates irony, couldn't stay mad and admitted he should have seen it coming. They now play poker every second Wednesday of the month. -% -Chuck Norris has never won an Academy Award for acting... because he's not acting. -% -If Chuck Norris wants your opinion, he'll beat it into you. -% -Not everyone that Chuck Norris is mad at gets killed. Some get away. They are called astronauts. -% -Chuck Norris has to register every part of his body as a separate lethal weapon. His spleen is considered a concealed weapon in over 50 states. -% -A movie scene depicting Chuck Norris losing a fight with Bruce Lee was the product of history's most expensive visual effect. When adjusted for inflation, the effect cost more than the Gross National Product of Paraguay. -% -Godzilla is a Japanese rendition of Chuck Norris' first visit to Tokyo. -% -They once made a Chuck Norris toilet paper, but there was a problem-- It wouldn't take shit from anybody. -% -Chuck Norris once rode a nine foot grizzly bear through an automatic car wash, instead of taking a shower. -% -"Sweating bullets" is literally what happens when Chuck Norris gets too hot. -% -Chuck Norris' sperm can be seen with the naked eye. Each one is the size of a quarter. -% -After taking a steroids test doctors informed Chuck Norris that he had tested positive. He laughed upon receiving this information, and said "of course my urine tested positive, what do you think they make steroids from?" -% -Chuck Norris doesn't daydream. He's too busy giving other people nightmares. -% -When Arnold says the line "I'll be back" in the first Terminator movie it is implied that is he going to ask Chuck Norris for help. -% -There are no such things as tornados. Chuck Norris just hates trailer parks. -% -Chuck Norris' Penis is a third degree blackbelt, and an honorable 32nd-degree mason. -% -Chuck Norris does not follow fashion trends, they follow him. But then he turns around and kicks their ass. Nobody follows Chuck Norris. -% -The phrase 'break a leg' was originally coined by Chuck Norris's co-stars in Walker, Texas Ranger as a good luck charm indicating that a broken leg might be the worst extent of their injuries. This never proved to be the case. -% -Chuck Norris' roundhouse kick is so powerful, it can be seen from outer space by the naked eye. -% -Diamonds are not, despite popular belief, carbon. They are, in fact, Chuck Norris fecal matter. This was proven a recently, when scientific analysis revealed what appeared to be Jean-Claude Van Damme bone fragments inside the Hope Diamond. -% -Chuck Norris once participated in the running of the bulls. He walked. -% -The Drummer for Def Leppard's only got one arm. Chuck Norris needed a back scratcher. -% -Chuck Norris was the orginal sculptor of Mount Rushmore. He completed the entire project using only a bottle opener and a drywall trowel. -% -Chuck Norris once rode a bull, and nine months later it had a calf. -% -Chuck Norris once lost the remote, but maintained control of the TV by yelling at it in between bites of his "Filet of Child" sandwich. -% -For Spring Break '05, Chuck Norris drove to Madagascar, riding a chariot pulled by two electric eels. -% -The Manhattan Project was not intended to create nuclear weapons, it was meant to recreate the destructive power in a Chuck Norris Roundhouse Kick. They didn't even come close. -% -Chuck Norris has banned rainbows from the state of North Dakota. -% -Divide Chuck Norris by zero and you will in fact get one........one bad-ass motherfucker that is. -% -TNT was originally developed by Chuck Norris to cure indigestion. -% -After returning from World War 2 unscathed, Bob Dole was congratulated by Chuck Norris with a handshake. The rest is history. -% -Chuck Norris runs on batteries. Specifically, Die Hards. -% -"Let the Bodies Hit the Floor" was originally written as Chuck Norris' theme song. -% -Chuck Norris will never have a heart attack. His heart isn't nearly foolish enough to attack him. -% -Only Chuck Norris can prevent forest fires. -% -When Chuck Norris makes a burrito, its main ingredient is real toes. -% -Chuck Norris is not Irish. His hair is soaked in the blood of his victims. -% -In the movie "The Matrix", Chuck Norris is the Matrix. If you pay close attention in the green "falling code" scenes, you can make out the faint texture of his beard. -% -Chuck Norris' dick is so big, it has it's own dick, and that dick is still bigger than yours. -% -They say curiosity killed the cat. This is false. Chuck Norris killed the cat. Every single one of them. -% -There is no such thing as a lesbian, just a woman who has never met Chuck Norris. -% -Chuck Norris crossed the road. No one has ever dared question his motives. -% -When Chuck Norris was born, he immediately had sex with the first nurse he saw. He was her first. She was his third. That afternoon. -% -One time, at band camp, Chuck Norris ate a percussionist. -% -Chuck Norris doesn't say "who's your daddy", because he knows the answer. -% -Chuck Norris originally wrote the first dictionary. The definition for each word is as follows - A swift roundhouse kick to the face. -% -Love does not hurt. Chuck Norris does. -% -The term "Cleveland Steamer" got its name from Chuck Norris, when he took a dump while visiting the Rock and Roll Hall of fame and buried northern Ohio under a glacier of fecal matter. -% -Chuck Norris once round-house kicked a salesman. Over the phone. -% -The pen is mighter than the sword, but only if the pen is held by Chuck Norris. -% -Chuck Norris doesn't kill two birds with one stone. Chuck Norris kills all birds, with two stones. The ones in his pants. -% -Chuck Norris knows the last digit of pi. -% -Those aren't credits that roll after Walker Texas Ranger. It is actually a list of fatalities that occurred during the making of the episode. -% -The air around Chuck Norris is always a balmy 78 degrees. -% -When Chuck Norris wants an egg, he cracks open a chicken. -% -Chuck Norris plays racquetball with a waffle iron and a bowling ball. -% -According to the Bible, God created the universe in six days. Before that, Chuck Norris created God by snapping his fingers. -% -Chuck Norris doesn't believe in ravioli. He stuffs a live turtle with beef and smothers it in pig's blood. -% -Count from one to ten. That's how long it would take Chuck Norris to kill you...Fourty seven times. -% -The 1972 Miami Dolphins lost one game, it was an exhibition game vs. Chuck Norris and three seven year old girls. Chuck Norris won with a roundhouse-kick to the face in overtime. -% -Chuck Norris is not Politically Correct. He is just Correct. Always. -% -Mr. T pities the fool. Chuck Norris rips the fool's fucking head off. -% -Chuck Norris had to stop washing his clothes in the ocean. The tsunamis were killing people. -% -Chuck Norris has volunteered to remain on earth after the Rapture; he will spend his time fighting the Anti-Christ. -% -They were going to release a Chuck Norris edition of Clue, but the answer always turns out to be "Chuck Norris. In The Library. With a Roundhouse Kick." -% -Chuck Norris is the only known mammal in history to have an opposable thumb. On his penis. -% -A man once taunted Chuck Norris with a bag of Lay's potato chips, saying "Betcha can't eat just one!" Chuck Norris proceeded to eat the chips, the bag, and the man in one deft move. -% -Chuck Norris' favorite cereal is Kellogg's Nails 'N' Gravel. -% -In the first Jurassic Park movie, the Tyrannosaurus Rex wasn't chasing the jeep. Chuck Norris was chasing the Tyrannosaurus AND the jeep. -% -Chuck Norris has never been accused of murder for the simple fact that his roundhouse kicks are recognized world-wide as "acts of God." -% -"Brokeback Mountain" is not just a movie. It's also what Chuck Norris calls the pile of dead ninjas in his front yard. -% -Chuck Norris does not wear a condom. Because there is no such thing as protection from Chuck Norris. -% -Chuck Norris once had sex with a cigarette machine in the Osaka airport. -% -Rules of fighting: 1) Don't bring a knife to a gun fight. 2) Don't bring a gun to a Chuck Norris fight. -% -Chuck Norris is the only man who has, literally, beaten the odds. With his fists. -% -In ancient China there is a legend that one day a child will be born from a dragon, grow to be a man, and vanquish evil from the land. That man is not Chuck Norris, because Chuck Norris killed that man. -% -Chuck Norris wipes his ass with chain mail and sandpaper. -% -When you play Monopoly with Chuck Norris, you do not pass go, and you do not collect two hundred dollars. You will be lucky if you make it out alive. -% -Chuck Norris describes human beings as "a sociable holder for blood and guts". -% -Chuck Norris once got into a fight with a one-armed Ninja. Seeing that he had an unfair advantage, Chuck Norris ripped both of his arms off and one of his legs. He then roundhouse-kicked the ninja in the head, killing him instantly, and proceeded to sow his limbs back on using only a rusty tent spike and bailing wire. -% -Chuck Norris likes his ice like he likes his skulls: crushed. -% -Chuck Norris can kick through all 6 degrees of separation, hitting anyone, anywhere, in the face, at any time. -% -Most tough men eat nails for breakfast. chuck Norris does all of his grocery shopping at Home Depot. -% -Chuck Norris did not "lose" his virginity, he stalked it and then destroyed it with extreme prejudice. -% -Everything King Midas touches turnes to gold. Everything Chuck Norris touches turns up dead. -% -Chuck Norris' pulse is measured on the richter scale. -% -Most people know that Descarte said, "I think, therefore I am." What most people don't know is that that quote continues, "...afraid of Chuck Norris." -% -Chuck Norris once roundhouse-kicked a ten dollar bill into 200 nickels. -% -For every movie about Vietnam starring Chuck Norris, the historical duration of the war decreases. Just 3 more "Missing in Action" sequels, and that war will have never actually existed. -% -Chuck Norris' penis has a Hemi. -% -Chuck Norris enjoys a good practical joke. His favorite is where he removes your lower intestine and pretends to make a balloon animal out of it. Then he cracks your skull open with a Volvo for not complimenting him on his balloon animal. -% -Chuck Norris CAN in fact 'raise the roof'. And he can do it with one hand. -% -Kenny G is allowed to live because Chuck Norris doesn't kill women. -% -Life is not, in fact, like a box of chocolates. It is more like a box of Chuck Norris, roundhouse kicking you in the face. And if you receive a box of Chuck Norris, you ALWAYS know what you are going to get. -% -For Chuck Norris, every street is "one way". HIS WAY. -% -There are now five cup sizes at Starbucks: Short, Tall, Grande, Venti, and Chuck Norris. -% -During the Vietnam War, Chuck Norris allowed himself to be captured. For torture, they made him eat his own entrails. He asked for seconds. -% -Chuck Norris once created a flamethrower by urinating into a lighter. -% -Instead of having a cigarette after sex, Chuck Norris heads outside and brands his cattle. -% -Chuck Norris actually built the stairway to heaven. -% -Whoever said "only the good die young" was probably in Chuck Norris's kindergarten class. -% -Chuck Norris once skewered a man with the Eiffel tower. -% -The best part of waking up, is not Folgers in your cup, but knowing that Chuck Norris didn't kill you in your sleep. -% -Chuck Norris doesn't own a can opener, he just chews through the can. -% -Occam's Razor says that the simplest answer tends to be the correct one. Norris' Razor involves a flick of the wrist and a Columbian Necktie. -% -Chuck Norris needs a monkeywrench and a blowtorch to masturbate. -% -Proponents of higher-order theories of consciousness argue that consciousness is explained by the relation between two levels of mental states in which a higher-order mental state takes another mental state. If you mention this to Chuck Norris, expect an explosive roundhouse kick to the face for spouting too much fancy-talk. -% -Chuck Norris invented all 32 letters of the alphabet. -% -Remember The Ultimate Warrior? He quit wrestling because Chuck Norris wanted his nickname back. -% -If a tree falls in the forest, does anybody hear? Yes. Chuck Norris hears it. Chuck Norris can hear everything. Chuck Norris can hear the shrieking terror in your soul. -% -Chuck Norris actually owns IBM. It was an extremely hostile takeover. -% -He, who laughs last, laughs best. He who laughs at Chuck Norris ? dies. -% -Chuck Norris is like a dog, not only because he can smell fear, but because he can piss on whatever the fuck he wants. -% -Chuck Norris can jump-start a car using jumper cables attached to his nipples. -% -Chuck Norris neither melts in your mouth nor in your hand. He shreds your trachea before ravaging your soul with a combination of chocolate, whickey, roundhouse kicks and death. Oh, and pain. Lots of pain. -% -Chuck Norris doesn't have blood. He is filled with magma. -% diff --git a/.oh-my-zsh/plugins/cloudapp/cloudapp.plugin.zsh b/.oh-my-zsh/plugins/cloudapp/cloudapp.plugin.zsh deleted file mode 100644 index 99252f6..0000000 --- a/.oh-my-zsh/plugins/cloudapp/cloudapp.plugin.zsh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/zsh -alias cloudapp=$ZSH/plugins/cloudapp/cloudapp.rb diff --git a/.oh-my-zsh/plugins/cloudapp/cloudapp.rb b/.oh-my-zsh/plugins/cloudapp/cloudapp.rb deleted file mode 100755 index a11cfdb..0000000 --- a/.oh-my-zsh/plugins/cloudapp/cloudapp.rb +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env ruby -# -# cloudapp -# Zach Holman / @holman -# -# Uploads a file from the command line to CloudApp, drops it into your -# clipboard (on a Mac, at least). -# -# Example: -# -# cloudapp drunk-blake.png -# -# This requires Aaron Russell's cloudapp_api gem: -# -# gem install cloudapp_api -# -# Requires you set your CloudApp credentials in ~/.cloudapp as a simple file of: -# -# email -# password - -require 'rubygems' -begin - require 'cloudapp_api' -rescue LoadError - puts "You need to install cloudapp_api: gem install cloudapp_api" - exit!(1) -end - -config_file = "#{ENV['HOME']}/.cloudapp" -unless File.exist?(config_file) - puts "You need to type your email and password (one per line) into "+ - "`~/.cloudapp`" - exit!(1) -end - -email,password = File.read(config_file).split("\n") - -class HTTParty::Response - # Apparently HTTPOK.ok? IS NOT OKAY WTFFFFFFFFFFUUUUUUUUUUUUUU - # LETS MONKEY PATCH IT I FEEL OKAY ABOUT IT - def ok? ; true end -end - -if ARGV[0].nil? - puts "You need to specify a file to upload." - exit!(1) -end - -CloudApp.authenticate(email,password) -url = CloudApp::Item.create(:upload, {:file => ARGV[0]}).url - -# Say it for good measure. -puts "Uploaded to #{url}." - -# Get the embed link. -url = "#{url}/#{ARGV[0].split('/').last}" - -# Copy it to your (Mac's) clipboard. -`echo '#{url}' | tr -d "\n" | pbcopy` diff --git a/.oh-my-zsh/plugins/coffee/_coffee b/.oh-my-zsh/plugins/coffee/_coffee deleted file mode 100644 index 10b6b81..0000000 --- a/.oh-my-zsh/plugins/coffee/_coffee +++ /dev/null @@ -1,81 +0,0 @@ -#compdef coffee -# ------------------------------------------------------------------------------ -# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# * Neither the name of the zsh-users nor the -# names of its contributors may be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY -# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# ------------------------------------------------------------------------------ -# Description -# ----------- -# -# Completion script for Coffee.js v0.6.11 (http://coffeejs.org) -# -# ------------------------------------------------------------------------------ -# Authors -# ------- -# -# * Mario Fernandez (https://github.com/sirech) -# * Dong Weiming (https://github.com/dongweiming) -# -# ------------------------------------------------------------------------------ - -local curcontext="$curcontext" state line ret=1 version opts first second third -typeset -A opt_args -version=(${(f)"$(_call_program version $words[1] --version)"}) -version=${${(z)${version[1]}}[3]} -first=$(echo $version|cut -d '.' -f 1) -second=$(echo $version|cut -d '.' -f 2) -third=$(echo $version|cut -d '.' -f 3) -if (( $first < 2 )) && (( $second < 7 )) && (( $third < 3 ));then - opts+=('(-l --lint)'{-l,--lint}'[pipe the compiled JavaScript through JavaScript Lint]' - '(-r --require)'{-r,--require}'[require a library before executing your script]:library') -fi - - -_arguments -C \ - '(- *)'{-h,--help}'[display this help message]' \ - '(- *)'{-v,--version}'[display the version number]' \ - $opts \ - '(-b --bare)'{-b,--bare}'[compile without a top-level function wrapper]' \ - '(-e --eval)'{-e,--eval}'[pass a string from the command line as input]:Inline Script' \ - '(-i --interactive)'{-i,--interactive}'[run an interactive CoffeeScript REPL]' \ - '(-j --join)'{-j,--join}'[concatenate the source CoffeeScript before compiling]:Destination JS file:_files -g "*.js"' \ - '(--nodejs)--nodejs[pass options directly to the "node" binary]' \ - '(-c --compile)'{-c,--compile}'[compile to JavaScript and save as .js files]' \ - '(-o --output)'{-o,--output}'[set the output directory for compiled JavaScript]:Output Directory:_files -/' \ - '(-n -t -p)'{-n,--nodes}'[print out the parse tree that the parser produces]' \ - '(-n -t -p)'{-p,--print}'[print out the compiled JavaScript]' \ - '(-n -t -p)'{-t,--tokens}'[print out the tokens that the lexer/rewriter produce]' \ - '(-s --stdio)'{-s,--stdio}'[listen for and compile scripts over stdio]' \ - '(-w --watch)'{-w,--watch}'[watch scripts for changes and rerun commands]' \ - '*:script or directory:_files' && ret=0 - -return ret - -# Local Variables: -# mode: Shell-Script -# sh-indentation: 2 -# indent-tabs-mode: nil -# sh-basic-offset: 2 -# End: -# vim: ft=zsh sw=2 ts=2 et diff --git a/.oh-my-zsh/plugins/colemak/colemak-less b/.oh-my-zsh/plugins/colemak/colemak-less deleted file mode 100644 index e4ca4fa..0000000 --- a/.oh-my-zsh/plugins/colemak/colemak-less +++ /dev/null @@ -1,6 +0,0 @@ -n forw-line -e back-line -k repeat-search -\ek repeat-search-all -K reverse-search -\eK reverse-search-all diff --git a/.oh-my-zsh/plugins/colemak/colemak.plugin.zsh b/.oh-my-zsh/plugins/colemak/colemak.plugin.zsh deleted file mode 100644 index cb7cc50..0000000 --- a/.oh-my-zsh/plugins/colemak/colemak.plugin.zsh +++ /dev/null @@ -1,22 +0,0 @@ -# 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/plugins/colemak/colemak-less diff --git a/.oh-my-zsh/plugins/colored-man/colored-man.plugin.zsh b/.oh-my-zsh/plugins/colored-man/colored-man.plugin.zsh deleted file mode 100644 index 5c613f4..0000000 --- a/.oh-my-zsh/plugins/colored-man/colored-man.plugin.zsh +++ /dev/null @@ -1,32 +0,0 @@ -if [ "$OSTYPE[0,7]" = "solaris" ] -then - if [ ! -x ${HOME}/bin/nroff ] - then - mkdir -p ${HOME}/bin - cat > ${HOME}/bin/nroff </dev/null 2>&1; then - autoload -U bashcompinit - bashcompinit -i - fi - - source "$setup" - fi -fi diff --git a/.oh-my-zsh/plugins/composer/composer.plugin.zsh b/.oh-my-zsh/plugins/composer/composer.plugin.zsh deleted file mode 100644 index 86f5be3..0000000 --- a/.oh-my-zsh/plugins/composer/composer.plugin.zsh +++ /dev/null @@ -1,52 +0,0 @@ -# ------------------------------------------------------------------------------ -# 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 () { - $_comp_command1 --no-ansi | sed "1,/Available commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }' -} - -_composer_get_required_list () { - $_comp_command1 show -s --no-ansi | sed '1,/requires/d' | awk 'NF > 0 && !/^requires \(dev\)/{ print $1 }' -} - -_composer () { - local curcontext="$curcontext" state line - typeset -A opt_args - _arguments \ - '1: :->command'\ - '*: :->args' - - case $state in - command) - compadd $(_composer_get_command_list) - ;; - *) - compadd $(_composer_get_required_list) - ;; - esac -} - -compdef _composer composer -compdef _composer composer.phar - -# Aliases -alias c='composer' -alias csu='composer self-update' -alias cu='composer update' -alias cr='composer require' -alias ci='composer install' -alias ccp='composer create-project' -alias cdu='composer dump-autoload' -alias cgu='composer global update' -alias cgr='composer global require' - -# install composer in the current directory -alias cget='curl -s https://getcomposer.org/installer | php' - -# Add Composer's global binaries to PATH -export PATH=$PATH:~/.composer/vendor/bin diff --git a/.oh-my-zsh/plugins/copydir/copydir.plugin.zsh b/.oh-my-zsh/plugins/copydir/copydir.plugin.zsh deleted file mode 100644 index 37bb5e0..0000000 --- a/.oh-my-zsh/plugins/copydir/copydir.plugin.zsh +++ /dev/null @@ -1,3 +0,0 @@ -function copydir { - pwd | tr -d "\r\n" | pbcopy -} \ No newline at end of file diff --git a/.oh-my-zsh/plugins/copyfile/copyfile.plugin.zsh b/.oh-my-zsh/plugins/copyfile/copyfile.plugin.zsh deleted file mode 100644 index 944a903..0000000 --- a/.oh-my-zsh/plugins/copyfile/copyfile.plugin.zsh +++ /dev/null @@ -1,5 +0,0 @@ -function copyfile { - [[ "$#" != 1 ]] && return 1 - local file_to_copy=$1 - cat $file_to_copy | pbcopy -} diff --git a/.oh-my-zsh/plugins/cp/cp.plugin.zsh b/.oh-my-zsh/plugins/cp/cp.plugin.zsh deleted file mode 100644 index 7355a99..0000000 --- a/.oh-my-zsh/plugins/cp/cp.plugin.zsh +++ /dev/null @@ -1,14 +0,0 @@ -#Show progress while file is copying - -# Rsync options are: -# -p - preserve permissions -# -o - preserve owner -# -g - preserve group -# -h - output in human-readable format -# --progress - display progress -# -b - instead of just overwriting an existing file, save the original -# --backup-dir=/tmp/rsync - move backup copies to "/tmp/rsync" -# -e /dev/null - only work on local files -# -- - everything after this is an argument, even if it looks like an option - -alias cpv="rsync -poghb --backup-dir=/tmp/rsync -e /dev/null --progress --" diff --git a/.oh-my-zsh/plugins/cpanm/_cpanm b/.oh-my-zsh/plugins/cpanm/_cpanm deleted file mode 100644 index 58451d3..0000000 --- a/.oh-my-zsh/plugins/cpanm/_cpanm +++ /dev/null @@ -1,67 +0,0 @@ -#compdef cpanm - -## -# cpanminus Z Shell completion script -## -# -# Current supported cpanm version: 1.4000 (Tue Mar 8 01:00:49 PST 2011) -# -# The latest code is always located at: -# https://github.com/rshhh/cpanminus/blob/master/etc/_cpanm -# - -local arguments curcontext="$curcontext" -typeset -A opt_args - - -arguments=( - -# Commands -# '(--install -i)'{--install,-i}'[Installs the modules]' - '(- :)--self-upgrade[Upgrades itself]' - '(- :)--info[Displays distribution info on CPAN]' - '(--installdeps)--installdeps[Only install dependencies]' - '(--look)--look[Download/unpack the distribution and then open the directory with your shell]' - '(- :)'{--help,-h}'[Displays help information]' - '(- :)'{--version,-V}'[Displays software version]' - -# Options - {--force,-f}'[Force install]' - {--notest,-n}'[Do not run unit tests]' - {--sudo,-S}'[sudo to run install commands]' - '(-v --verbose --quiet -q)'{--verbose,-v}'[Turns on chatty output]' - '(-q --quiet --verbose -v)'{--quiet,-q}'[Turns off all output]' - {--local-lib,-l}'[Specify the install base to install modules]' - {--local-lib-contained,-L}'[Specify the install base to install all non-core modules]' - '--mirror[Specify the base URL for the mirror (e.g. http://cpan.cpantesters.org/)]:URLs:_urls' - '--mirror-only[Use the mirror\''s index file instead of the CPAN Meta DB]' - '--prompt[Prompt when configure/build/test fails]' - '--reinstall[Reinstall the distribution even if you already have the latest version installed]' - '--interactive[Turn on interactive configure]' - - '--scandeps[Scan the depencencies of given modules and output the tree in a text format]' - '--format[Specify what format to display the scanned dependency tree]:scandeps format:(tree json yaml dists)' - - '--save-dists[Specify the optional directory path to copy downloaded tarballs]' -# '--uninst-shadows[Uninstalls the shadow files of the distribution that you\''re installing]' - - '--auto-cleanup[Number of days that cpanm\''s work directories expire in. Defaults to 7]' - '(--no-man-pages)--man-pages[Generates man pages for executables (man1) and libraries (man3)]' - '(--man-pages)--no-man-pages[Do not generate man pages]' - - - # Note: Normally with "--lwp", "--wget" and "--curl" options set to true (which is the default) cpanm tries LWP, - # Wget, cURL and HTTP::Tiny (in that order) and uses the first one available. - # (So that the exclusions are not enabled here for the completion) - '(--lwp)--lwp[Use LWP module to download stuff]' - '(--wget)--wget[Use GNU Wget (if available) to download stuff]' - '(--curl)--curl[Use cURL (if available) to download stuff]' - -# Other completions - '*:Local directory or archive:_files -/ -g "*.(tar.gz|tgz|tar.bz2|zip)(-.)"' - # '*::args: _normal' # this looks for default files (any files) -) -_arguments -s $arguments \ - && return 0 - -return 1 diff --git a/.oh-my-zsh/plugins/debian/debian.plugin.zsh b/.oh-my-zsh/plugins/debian/debian.plugin.zsh deleted file mode 100644 index 6e45e05..0000000 --- a/.oh-my-zsh/plugins/debian/debian.plugin.zsh +++ /dev/null @@ -1,227 +0,0 @@ -# Authors: -# https://github.com/AlexBio -# https://github.com/dbb -# https://github.com/Mappleconfusers -# -# Debian-related zsh aliases and functions for zsh - -# Use aptitude if installed, or apt-get if not. -# You can just set apt_pref='apt-get' to override it. -if [[ -e $( which -p aptitude 2>&1 ) ]]; then - apt_pref='aptitude' -else - apt_pref='apt-get' -fi - -# Use sudo by default if it's installed -if [[ -e $( which -p sudo 2>&1 ) ]]; then - use_sudo=1 -fi - -# Aliases ################################################################### -# These are for more obscure uses of apt-get and aptitude that aren't covered -# below. -alias age='apt-get' -alias api='aptitude' - -# Some self-explanatory aliases -alias acs="apt-cache search" -alias aps='aptitude search' -alias as="aptitude -F \"* %p -> %d \n(%v/%V)\" \ - --no-gui --disable-columns search" # search package - -# apt-file -alias afs='apt-file search --regexp' - - -# These are apt-get only -alias asrc='apt-get source' -alias app='apt-cache policy' - -# superuser operations ###################################################### -if [[ $use_sudo -eq 1 ]]; then -# commands using sudo ####### - alias aac='sudo $apt_pref autoclean' - alias abd='sudo $apt_pref build-dep' - alias ac='sudo $apt_pref clean' - alias ad='sudo $apt_pref update' - alias adg='sudo $apt_pref update && sudo $apt_pref upgrade' - alias adu='sudo $apt_pref update && sudo $apt_pref dist-upgrade' - alias afu='sudo apt-file update' - alias ag='sudo $apt_pref upgrade' - alias ai='sudo $apt_pref install' - # Install all packages given on the command line while using only the first word of each line: - # acs ... | ail - alias ail="sed -e 's/ */ /g' -e 's/ *//' | cut -s -d ' ' -f 1 | "' xargs sudo $apt_pref install' - alias ap='sudo $apt_pref purge' - alias ar='sudo $apt_pref remove' - - # apt-get only - alias ads='sudo apt-get dselect-upgrade' - - # Install all .deb files in the current directory. - # Warning: you will need to put the glob in single quotes if you use: - # glob_subst - alias dia='sudo dpkg -i ./*.deb' - alias di='sudo dpkg -i' - - # Remove ALL kernel images and headers EXCEPT the one in use - alias kclean='sudo aptitude remove -P ?and(~i~nlinux-(ima|hea) \ - ?not(~n`uname -r`))' - - -# commands using su ######### -else - alias aac='su -ls \'$apt_pref autoclean\' root' - abd() { - cmd="su -lc '$apt_pref build-dep $@' root" - print "$cmd" - eval "$cmd" - } - alias ac='su -ls \'$apt_pref clean\' root' - alias ad='su -lc \'$apt_pref update\' root' - alias adg='su -lc \'$apt_pref update && aptitude safe-upgrade\' root' - alias adu='su -lc \'$apt_pref update && aptitude dist-upgrade\' root' - alias afu='su -lc "apt-file update"' - alias ag='su -lc \'$apt_pref safe-upgrade\' root' - ai() { - cmd="su -lc 'aptitude -P install $@' root" - print "$cmd" - eval "$cmd" - } - ap() { - cmd="su -lc '$apt_pref -P purge $@' root" - print "$cmd" - eval "$cmd" - } - ar() { - cmd="su -lc '$apt_pref -P remove $@' root" - print "$cmd" - eval "$cmd" - } - - # Install all .deb files in the current directory - # Assumes glob_subst is off - alias dia='su -lc "dpkg -i ./*.deb" root' - alias di='su -lc "dpkg -i" root' - - # Remove ALL kernel images and headers EXCEPT the one in use - alias kclean='su -lc '\''aptitude remove -P ?and(~i~nlinux-(ima|hea) \ - ?not(~n`uname -r`))'\'' root' -fi - -# Completion ################################################################ - -# -# Registers a compdef for $1 that calls $apt_pref with the commands $2 -# To do that it creates a new completion function called _apt_pref_$2 -# -apt_pref_compdef() { - local f fb - f="_apt_pref_${2}" - - eval "function ${f}() { - shift words; - service=\"\$apt_pref\"; - words=(\"\$apt_pref\" '$2' \$words); - ((CURRENT++)) - test \"\${apt_pref}\" = 'aptitude' && _aptitude || _apt - }" - - compdef "$f" "$1" -} - -apt_pref_compdef aac "autoclean" -apt_pref_compdef abd "build-dep" -apt_pref_compdef ac "clean" -apt_pref_compdef ad "update" -apt_pref_compdef afu "update" -apt_pref_compdef ag "upgrade" -apt_pref_compdef ai "install" -apt_pref_compdef ail "install" -apt_pref_compdef ap "purge" -apt_pref_compdef ar "remove" -apt_pref_compdef ads "dselect-upgrade" - -# Misc. ##################################################################### -# print all installed packages -alias allpkgs='aptitude search -F "%p" --disable-columns ~i' - -# Create a basic .deb package -alias mydeb='time dpkg-buildpackage -rfakeroot -us -uc' - - -# Functions ################################################################# -# create a simple script that can be used to 'duplicate' a system -apt-copy() { - print '#!/bin/sh'"\n" > apt-copy.sh - - cmd='$apt_pref install' - - for p in ${(f)"$(aptitude search -F "%p" --disable-columns \~i)"}; { - cmd="${cmd} ${p}" - } - - print $cmd "\n" >> apt-copy.sh - - chmod +x apt-copy.sh -} - -# Prints apt history -# Usage: -# apt-history install -# apt-history upgrade -# apt-history remove -# apt-history rollback -# apt-history list -# Based On: http://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html -apt-history () { - case "$1" in - install) - zgrep --no-filename 'install ' $(ls -rt /var/log/dpkg*) - ;; - upgrade|remove) - zgrep --no-filename $1 $(ls -rt /var/log/dpkg*) - ;; - rollback) - zgrep --no-filename upgrade $(ls -rt /var/log/dpkg*) | \ - grep "$2" -A10000000 | \ - grep "$3" -B10000000 | \ - awk '{print $4"="$5}' - ;; - list) - zcat $(ls -rt /var/log/dpkg*) - ;; - *) - echo "Parameters:" - echo " install - Lists all packages that have been installed." - echo " upgrade - Lists all packages that have been upgraded." - echo " remove - Lists all packages that have been removed." - echo " rollback - Lists rollback information." - echo " list - Lists all contains of dpkg logs." - ;; - esac -} - -# Kernel-package building shortcut -kerndeb () { - # temporarily unset MAKEFLAGS ( '-j3' will fail ) - MAKEFLAGS=$( print - $MAKEFLAGS | perl -pe 's/-j\s*[\d]+//g' ) - print '$MAKEFLAGS set to '"'$MAKEFLAGS'" - appendage='-custom' # this shows up in $ (uname -r ) - revision=$(date +"%Y%m%d") # this shows up in the .deb file name - - make-kpkg clean - - time fakeroot make-kpkg --append-to-version "$appendage" --revision \ - "$revision" kernel_image kernel_headers -} - -# List packages by size -function apt-list-packages { - dpkg-query -W --showformat='${Installed-Size} ${Package} ${Status}\n' | \ - grep -v deinstall | \ - sort -n | \ - awk '{print $1" "$2}' -} - diff --git a/.oh-my-zsh/plugins/dircycle/dircycle.plugin.zsh b/.oh-my-zsh/plugins/dircycle/dircycle.plugin.zsh deleted file mode 100644 index 1e31105..0000000 --- a/.oh-my-zsh/plugins/dircycle/dircycle.plugin.zsh +++ /dev/null @@ -1,37 +0,0 @@ -# enables cycling through the directory stack using -# Ctrl+Shift+Left/Right -# -# left/right direction follows the order in which directories -# were visited, like left/right arrows do in a browser - -# NO_PUSHD_MINUS syntax: -# pushd +N: start counting from left of `dirs' output -# pushd -N: start counting from right of `dirs' output - -insert-cycledleft () { - emulate -L zsh - setopt nopushdminus - - builtin pushd -q +1 &>/dev/null || true - zle reset-prompt -} -zle -N insert-cycledleft - -insert-cycledright () { - emulate -L zsh - setopt nopushdminus - - builtin pushd -q -0 &>/dev/null || true - zle reset-prompt -} -zle -N insert-cycledright - - -# add key bindings for iTerm2 -if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then - bindkey "^[[1;6D" insert-cycledleft - bindkey "^[[1;6C" insert-cycledright -else - bindkey "\e[1;6D" insert-cycledleft - bindkey "\e[1;6C" insert-cycledright -fi \ No newline at end of file diff --git a/.oh-my-zsh/plugins/dirhistory/dirhistory.plugin.zsh b/.oh-my-zsh/plugins/dirhistory/dirhistory.plugin.zsh deleted file mode 100644 index d101cfc..0000000 --- a/.oh-my-zsh/plugins/dirhistory/dirhistory.plugin.zsh +++ /dev/null @@ -1,132 +0,0 @@ -## -# Navigate directory history using ALT-LEFT and ALT-RIGHT. ALT-LEFT moves back to directories -# that the user has changed to in the past, and ALT-RIGHT undoes ALT-LEFT. -# - -dirhistory_past=($PWD) -dirhistory_future=() -export dirhistory_past -export dirhistory_future - -export DIRHISTORY_SIZE=30 - -# Pop the last element of dirhistory_past. -# Pass the name of the variable to return the result in. -# Returns the element if the array was not empty, -# otherwise returns empty string. -function pop_past() { - eval "$1='$dirhistory_past[$#dirhistory_past]'" - if [[ $#dirhistory_past -gt 0 ]]; then - dirhistory_past[$#dirhistory_past]=() - fi -} - -function pop_future() { - eval "$1='$dirhistory_future[$#dirhistory_future]'" - if [[ $#dirhistory_future -gt 0 ]]; then - dirhistory_future[$#dirhistory_future]=() - fi -} - -# Push a new element onto the end of dirhistory_past. If the size of the array -# is >= DIRHISTORY_SIZE, the array is shifted -function push_past() { - if [[ $#dirhistory_past -ge $DIRHISTORY_SIZE ]]; then - shift dirhistory_past - fi - if [[ $#dirhistory_past -eq 0 || $dirhistory_past[$#dirhistory_past] != "$1" ]]; then - dirhistory_past+=($1) - fi -} - -function push_future() { - if [[ $#dirhistory_future -ge $DIRHISTORY_SIZE ]]; then - shift dirhistory_future - fi - if [[ $#dirhistory_future -eq 0 || $dirhistory_futuret[$#dirhistory_future] != "$1" ]]; then - dirhistory_future+=($1) - fi -} - -# Called by zsh when directory changes -function chpwd() { - push_past $PWD - # If DIRHISTORY_CD is not set... - if [[ -z "${DIRHISTORY_CD+x}" ]]; then - # ... clear future. - dirhistory_future=() - fi -} - -function dirhistory_cd(){ - DIRHISTORY_CD="1" - cd $1 - unset DIRHISTORY_CD -} - -# Move backward in directory history -function dirhistory_back() { - local cw="" - local d="" - # Last element in dirhistory_past is the cwd. - - pop_past cw - if [[ "" == "$cw" ]]; then - # Someone overwrote our variable. Recover it. - dirhistory_past=($PWD) - return - fi - - pop_past d - if [[ "" != "$d" ]]; then - dirhistory_cd $d - push_future $cw - else - push_past $cw - fi -} - - -# Move forward in directory history -function dirhistory_forward() { - local d="" - - pop_future d - if [[ "" != "$d" ]]; then - dirhistory_cd $d - push_past $d - fi -} - - -# Bind keys to history navigation -function dirhistory_zle_dirhistory_back() { - # Erase current line in buffer - zle kill-buffer - dirhistory_back - zle accept-line -} - -function dirhistory_zle_dirhistory_future() { - # Erase current line in buffer - zle kill-buffer - dirhistory_forward - zle accept-line -} - -zle -N dirhistory_zle_dirhistory_back -# xterm in normal mode -bindkey "\e[3D" dirhistory_zle_dirhistory_back -bindkey "\e[1;3D" dirhistory_zle_dirhistory_back -# Putty: -bindkey "\e\e[D" dirhistory_zle_dirhistory_back -# GNU screen: -bindkey "\eO3D" dirhistory_zle_dirhistory_back - -zle -N dirhistory_zle_dirhistory_future -bindkey "\e[3C" dirhistory_zle_dirhistory_future -bindkey "\e[1;3C" dirhistory_zle_dirhistory_future -bindkey "\e\e[C" dirhistory_zle_dirhistory_future -bindkey "\eO3C" dirhistory_zle_dirhistory_future - - diff --git a/.oh-my-zsh/plugins/dirpersist/dirpersist.plugin.zsh b/.oh-my-zsh/plugins/dirpersist/dirpersist.plugin.zsh deleted file mode 100644 index 88d1129..0000000 --- a/.oh-my-zsh/plugins/dirpersist/dirpersist.plugin.zsh +++ /dev/null @@ -1,19 +0,0 @@ -# Save dirstack history to .zdirs -# adapted from: -# github.com/grml/grml-etc-core/blob/master/etc/zsh/zshrc#L1547 - -DIRSTACKSIZE=${DIRSTACKSIZE:-20} -dirstack_file=${dirstack_file:-${HOME}/.zdirs} - -if [[ -f ${dirstack_file} ]] && [[ ${#dirstack[*]} -eq 0 ]] ; then - dirstack=( ${(f)"$(< $dirstack_file)"} ) - # "cd -" won't work after login by just setting $OLDPWD, so - [[ -d $dirstack[1] ]] && cd $dirstack[1] && cd $OLDPWD -fi - -chpwd() { - if (( $DIRSTACKSIZE <= 0 )) || [[ -z $dirstack_file ]]; then return; fi - local -ax my_stack - my_stack=( ${PWD} ${dirstack} ) - builtin print -l ${(u)my_stack} >! ${dirstack_file} -} diff --git a/.oh-my-zsh/plugins/django/django.plugin.zsh b/.oh-my-zsh/plugins/django/django.plugin.zsh deleted file mode 100644 index 35865a6..0000000 --- a/.oh-my-zsh/plugins/django/django.plugin.zsh +++ /dev/null @@ -1,402 +0,0 @@ -#compdef manage.py - -typeset -ga nul_args -nul_args=( - '--verbosity=-[verbosity level; 0=minimal output, 1=normal output, 2=all output.]:Verbosity:((0\:minimal 1\:normal 2\:all))' - '--settings=-[the Python path to a settings module.]:file:_files' - '--pythonpath=-[a directory to add to the Python path.]:directory:_directories' - '--traceback[print traceback on exception.]' - "--no-color[Don't colorize the command output.]" - "--version[show program's version number and exit.]" - {-h,--help}'[show this help message and exit.]' -) - -typeset -ga start_args -start_args=( - '--template=-[The path or URL to load the template from.]:directory:_directories' - '--extension=-[The file extension(s) to render (default: "py").]' - '--name=-[The file name(s) to render.]:file:_files' -) - -typeset -ga db_args -db_args=( - '--database=-[Nominates a database. Defaults to the "default" database.]' -) - -typeset -ga noinput_args -noinput_args=( - '--noinput[tells Django to NOT prompt the user for input of any kind.]' -) - -typeset -ga no_init_data_args -no_init_data_args=( - '--no-initial-data[Tells Django not to load any initial data after database synchronization.]' -) - -typeset -ga tag_args -tag_args=( - '--tag=-[Run only checks labeled with given tag.]' - '--list-tags[List available tags.]' -) - -_managepy-check(){ - _arguments -s : \ - $tag_args \ - $nul_args && ret=0 -} - -_managepy-changepassword(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-createcachetable(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-createsuperuser(){ - _arguments -s : \ - '--username=-[Specifies the login for the superuser.]' \ - '--email=-[Specifies the email for the superuser.]' \ - $noinput_args \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-collectstatic(){ - _arguments -s : \ - '--link[Create a symbolic link to each file instead of copying.]' \ - '--no-post-process[Do NOT post process collected files.]' \ - '--ignore=-[Ignore files or directories matching this glob-style pattern. Use multiple times to ignore more.]' \ - '--dry-run[Do everything except modify the filesystem.]' \ - '--clear[Clear the existing files using the storage before trying to copy or link the original file.]' \ - '--link[Create a symbolic link to each file instead of copying.]' \ - '--no-default-ignore[Do not ignore the common private glob-style patterns "CVS", ".*" and "*~".]' \ - $noinput_args \ - $nul_args && ret=0 -} - -_managepy-dbshell(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-diffsettings(){ - _arguments -s : \ - "--all[Display all settings, regardless of their value.]" - $nul_args && ret=0 -} - -_managepy-dumpdata(){ - _arguments -s : \ - '--format=-[Specifies the output serialization format for fixtures.]:format:(json yaml xml)' \ - '--indent=-[Specifies the indent level to use when pretty-printing output.]' \ - '--exclude=-[An app_label or app_label.ModelName to exclude (use multiple --exclude to exclude multiple apps/models).]' \ - '--natural-foreign[Use natural foreign keys if they are available.]' \ - '--natural-primary[Use natural primary keys if they are available.]' \ - "--all[Use Django's base manager to dump all models stored in the database.]" \ - '--pks=-[Only dump objects with given primary keys.]' \ - $db_args \ - $nul_args \ - '*::appname:_applist' && ret=0 -} - -_managepy-flush(){ - _arguments -s : \ - $no_init_data_args \ - $db_args \ - $noinput_args \ - $nul_args && ret=0 -} - -_managepy-help(){ - _arguments -s : \ - '*:command:_managepy_cmds' \ - $nul_args && ret=0 -} - -_managepy_cmds(){ - local line - local -a cmd - _call_program help-command ./manage.py help \ - |& sed -n '/^ /s/[(), ]/ /gp' \ - | while read -A line; do cmd=($line $cmd) done - _describe -t managepy-command 'manage.py command' cmd -} - -_managepy-inspectdb(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-loaddata(){ - _arguments -s : \ - '--ignorenonexistent[Ignores entries in the serialized data for fields that do not currently exist on the model.]' \ - '--app=-[Only look for fixtures in the specified app.]:appname:_applist' \ - '*::file:_files' \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-makemessages(){ - _arguments -s : \ - '--locale=-[Creates or updates the message files for the given locale(s) (e.g. pt_BR).]' \ - '--domain=-[The domain of the message files (default: "django").]' \ - '--all[Updates the message files for all existing locales.]' \ - '--extension=-[The file extension(s) to examine (default: "html,txt", or "js" if the domain is "djangojs").]' \ - '--symlinks[Follows symlinks to directories when examining source code and templates for translation strings.]' \ - '--ignore=-[Ignore files or directories matching this glob-style pattern.]' \ - "--no-default-ignore[Don't ignore the common glob-style patterns 'CVS', '.*', '*~' and '*.pyc'.]" \ - "--no-wrap[Don't break long message lines into several lines.]" \ - "--no-location[Don't write '#: filename:line' lines.]" \ - '--no-obsolete[emove obsolete message strings.]' \ - '--keep-pot[Keep .pot file after making messages.]' \ - $nul_args && ret=0 -} -_managepy-makemigrations(){ - _arguments -s : \ - '--dry-run[Just show what migrations would be made]' \ - '--merge[Enable fixing of migration conflicts.]' \ - '--empty[Create an empty migration.]' \ - $noinput_args \ - $nul_args && ret=0 -} -_managepy-migrate(){ - _arguments -s : \ - '--fake[Mark migrations as run without actually running them]' \ - '--list[Show a list of all known migrations and which are applied]' \ - $no_init_data_args \ - $noinput_args \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-runfcgi(){ - local state - - local fcgi_opts - fcgi_opts=( - 'protocol[fcgi, scgi, ajp, ... (default fcgi)]:protocol:(fcgi scgi ajp)' - 'host[hostname to listen on..]:' - 'port[port to listen on.]:' - 'socket[UNIX socket to listen on.]:file:_files' - 'method[prefork or threaded (default prefork)]:method:(prefork threaded)' - 'maxrequests[number of requests a child handles before it is killed and a new child is forked (0 = no limit).]:' - 'maxspare[max number of spare processes / threads.]:' - 'minspare[min number of spare processes / threads.]:' - 'maxchildren[hard limit number of processes / threads.]:' - 'daemonize[whether to detach from terminal.]:boolean:(False True)' - 'pidfile[write the spawned process-id to this file.]:file:_files' - 'workdir[change to this directory when daemonizing.]:directory:_files' - 'outlog[write stdout to this file.]:file:_files' - 'errlog[write stderr to this file.]:file:_files' - ) - - _arguments -s : \ - $nul_args \ - '*: :_values "FCGI Setting" $fcgi_opts' && ret=0 -} - -_managepy-runserver(){ - _arguments -s : \ - '--ipv6[Tells Django to use an IPv6 address.]' \ - '--nothreading[Tells Django to NOT use threading.]' \ - '--noreload[Tells Django to NOT use the auto-reloader.]' \ - '--nostatic[Tells Django to NOT automatically serve static files at STATIC_URL.]' \ - '--insecure[Allows serving static files even if DEBUG is False.]' \ - $nul_args && ret=0 -} - -_managepy-shell(){ - _arguments -s : \ - '--plain[Tells Django to use plain Python, not IPython.]' \ - '--no-startup[When using plain Python, ignore the PYTHONSTARTUP environment variable and ~/.pythonrc.py script.]' \ - '--interface=-[Specify an interactive interpreter interface.]:INTERFACE:((ipython bpython))' \ - $nul_args && ret=0 -} - -_managepy-sql(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-sqlall(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-sqlclear(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-sqlcustom(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-dropindexes(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-sqlflush(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-sqlindexes(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-sqlinitialdata(){ - _arguments -s : \ - $nul_args && ret=0 -} - -_managepy-sqlsequencereset(){ - _arguments -s : \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-squashmigrations(){ - _arguments -s : \ - '--no-optimize[Do not try to optimize the squashed operations.]' \ - $noinput_args \ - $nul_args && ret=0 -} - -_managepy-startapp(){ - _arguments -s : \ - $start_args \ - $nul_args && ret=0 -} -_managepy-startproject(){ - _arguments -s : \ - $start_args \ - $nul_args && ret=0 -} - -_managepy-syncdb() { - _arguments -s : \ - $noinput_args \ - $no_init_data_args \ - $db_args \ - $nul_args && ret=0 -} - -_managepy-test() { - _arguments -s : \ - '--failfast[Tells Django to stop running the test suite after first failed test.]' \ - '--testrunner=-[Tells Django to use specified test runner class instead of the one specified by the TEST_RUNNER setting.]' \ - '--liveserver=-[Overrides the default address where the live server (used with LiveServerTestCase) is expected to run from. The default value is localhost:8081.]' \ - '--top-level-directory=-[Top level of project for unittest discovery.]' \ - '--pattern=-[The test matching pattern. Defaults to test*.py.]:' \ - $noinput_args \ - '*::appname:_applist' \ - $nul_args && ret=0 -} - -_managepy-testserver() { - _arguments -s : \ - '--addrport=-[port number or ipaddr:port to run the server on.]' \ - '--ipv6[Tells Django to use an IPv6 address.]' \ - $noinput_args \ - '*::fixture:_files' \ - $nul_args && ret=0 -} - -_managepy-validate() { - _arguments -s : \ - $tag_args \ - $nul_args && ret=0 -} - -_managepy-commands() { - local -a commands - - commands=( - "changepassword:Change a user's password for django.contrib.auth." - 'check:Checks the entire Django project for potential problems.' - 'compilemessages:Compiles .po files to .mo files for use with builtin gettext support.' - 'createcachetable:Creates the table needed to use the SQL cache backend.' - 'createsuperuser:Used to create a superuser.' - 'collectstatic:Collect static files in a single location.' - 'dbshell:Runs the command-line client for the current DATABASE_ENGINE.' - "diffsettings:Displays differences between the current settings.py and Django's default settings." - 'dumpdata:Output the contents of the database as a fixture of the given format.' - 'flush:Executes ``sqlflush`` on the current database.' - 'help:manage.py help.' - 'inspectdb:Introspects the database tables in the given database and outputs a Django model module.' - 'loaddata:Installs the named fixture(s) in the database.' - 'makemessages:Runs over the entire source tree of the current directory and pulls out all strings marked for translation.' - 'makemigrations:Creates new migration(s) for apps.' - 'migrate:Updates database schema. Manages both apps with migrations and those without.' - 'runfcgi:Run this project as a fastcgi (or some other protocol supported by flup) application,' - 'runserver:Starts a lightweight Web server for development.' - 'shell:Runs a Python interactive interpreter.' - 'sql:Prints the CREATE TABLE SQL statements for the given app name(s).' - 'sqlall:Prints the CREATE TABLE, custom SQL and CREATE INDEX SQL statements for the given model module name(s).' - 'sqlclear:Prints the DROP TABLE SQL statements for the given app name(s).' - 'sqlcustom:Prints the custom table modifying SQL statements for the given app name(s).' - 'sqldropindexes:Prints the DROP INDEX SQL statements for the given model module name(s).' - 'sqlflush:Returns a list of the SQL statements required to return all tables in the database to the state they were in just after they were installed.' - 'sqlindexes:Prints the CREATE INDEX SQL statements for the given model module name(s).' - "sqlinitialdata:RENAMED: see 'sqlcustom'" - 'sqlsequencereset:Prints the SQL statements for resetting sequences for the given app name(s).' - 'squashmigrations:Squashes an existing set of migrations (from first until specified) into a single new one.' - "startapp:Creates a Django app directory structure for the given app name in this project's directory." - "startproject:Creates a Django project directory structure for the given project name in this current directory." - "syncdb:Create the database tables for all apps in INSTALLED_APPS whose tables haven't already been created." - 'test:Runs the test suite for the specified applications, or the entire site if no apps are specified.' - 'testserver:Runs a development server with data from the given fixture(s).' - 'validate:Validates all installed models.' - ) - - _describe -t commands 'manage.py command' commands && ret=0 -} - -_applist() { - local line - local -a apps - _call_program help-command "python -c \"import os.path as op, re, django.conf, sys;\\ - bn=op.basename(op.abspath(op.curdir));[sys\\ - .stdout.write(str(re.sub(r'^%s\.(.*?)$' % - bn, r'\1', i)) + '\n') for i in django.conf.settings.\\ - INSTALLED_APPS if re.match(r'^%s' % bn, i)]\"" \ - | while read -A line; do apps=($line $apps) done - _values 'Application' $apps && ret=0 -} - -_managepy() { - local curcontext=$curcontext ret=1 - - if ((CURRENT == 2)); then - _managepy-commands - else - shift words - (( CURRENT -- )) - curcontext="${curcontext%:*:*}:managepy-$words[1]:" - _call_function ret _managepy-$words[1] - fi -} - -compdef _managepy manage.py -compdef _managepy django -compdef _managepy django-admin -compdef _managepy django-admin.py -compdef _managepy django-manage diff --git a/.oh-my-zsh/plugins/docker/README.md b/.oh-my-zsh/plugins/docker/README.md deleted file mode 100644 index 231a6dc..0000000 --- a/.oh-my-zsh/plugins/docker/README.md +++ /dev/null @@ -1,19 +0,0 @@ -## Docker autocomplete plugin - -- Adds autocomplete options for all docker commands. -- Will also show containerIDs and Image names where applicable - -####Shows help for all commands -![General Help](http://i.imgur.com/tUBO9jh.png "Help for all commands") - - -####Shows your downloaded images where applicable -![Images](http://i.imgur.com/R8ZsWO1.png "Images") - - -####Shows your running containers where applicable -![Containers](http://i.imgur.com/WQtbheg.png "Containers") - - - -Maintainer : Ahmed Azaan ([@aeonazaan](https://twitter.com/aeonazaan)) diff --git a/.oh-my-zsh/plugins/docker/_docker b/.oh-my-zsh/plugins/docker/_docker deleted file mode 100644 index fd459a0..0000000 --- a/.oh-my-zsh/plugins/docker/_docker +++ /dev/null @@ -1,386 +0,0 @@ -#compdef docker - -# Docker autocompletion for oh-my-zsh -# Requires: Docker installed -# Author: Azaan (@aeonazaan) -# Updates: Bob Maerten (@bobmaerten) for Docker v0.9+ -# Paul van den Berg (@bergvandenp) for Docker v1.3+ - - -# ----- Helper functions -# Output a selectable list of all running docker containers -__docker_containers() { - declare -a cont_cmd - cont_cmd=($(docker ps | awk 'NR>1{print $NF":[CON("$1")"$2"("$3")]"}')) - if [[ 'X$cont_cmd' != 'X' ]] - _describe 'containers' cont_cmd -} - -# Output a selectable list of all containers, even not running -__docker_all_containers() { - declare -a cont_cmd - cont_cmd=($(docker ps -a | awk 'NR>1{print $NF":[CON("$1")"$2"("$3")]"}')) - if [[ 'X$cont_cmd' != 'X' ]] - _describe 'containers' cont_cmd -} - -# output a selectable list of all docker images -__docker_images() { - declare -a img_cmd - img_cmd=($(docker images | awk 'NR>1{print $1}')) - _describe 'images' img_cmd -} - -# ----- Commands -# Seperate function for each command, makes extension easier later -# --------------------------- -__attach() { - _arguments \ - '--no-stdin[Do not attach stdin]' \ - '--sig-proxy[Proxify all received signal to the process (even in non-tty mode)]' - __docker_containers -} - -__build() { - _arguments \ - '--no-cache[Do not use cache when building the image]' \ - '(-q,--quiet)'{-q,--quiet}'[Suppress the verbose output generated by the containers]' \ - '--rm[Remove intermediate containers after a successful build]' \ - '(-t,--tag=)'{-t,--tag=}'[Repository name (and optionally a tag) to be applied to the resulting image in case of success]' \ - '*:files:_files' -} - -__commit() { - _arguments \ - '(-a,--author=)'{-a,--author=}'[Author (eg. "John Hannibal Smith "]' \ - '(-m,--message=)'{-m,--message=}'[Commit message]' \ - '--run=[Config automatically applied when the image is run.]' - __docker_containers -} - -__cp() { - __docker_containers -} - -__diff() { - __docker_containers -} - -__events() { - _arguments \ - '--since=[Show previously created events and then stream.]' -} - -__export() { - __docker_containers -} - -__history() { - _arguments \ - '--no-trunc=[Don''t truncate output]' \ - '(-q,--quiet)'{-q,--quiet}'[Only show numeric IDs]' - __docker_images -} - -__images() { - _arguments \ - '(-a,--all)'{-a,--all}'[Show all images (by default filter out the intermediate images used to build)]' \ - '--no-trunc[Don''t truncate output]' \ - '(-q,--quiet=)'{-q,--quiet=}'[Only show numeric IDs]' \ - '(-t,--tree=)'{-t,--tree=}'[Output graph in tree format]' \ - '(-v,--viz=)'{-v,--viz=}'[Output graph in graphviz format]' - __docker_images -} - -__import() { - _arguments '*:files:_files' -} - -__info() { - # no arguments -} - -__insert() { - __docker_images - _arguments '*:files:_files' -} - -__inspect() { - __docker_images - __docker_all_containers -} - -__kill() { - _arguments \ - '(-s,--signal=)'{-s,--signal=}'[KILL Signal]' - __docker_containers -} - -__load() { - _arguments '*:files:_files' -} - -__login() { - _arguments \ - '(-e,--email=)'{-e,-email=}'[Email]' \ - '(-p,--password=)'{-p,-password=}'[Password]' \ - '(-u,--username=)'{-u,-username=}'[Username]' -} - -__logs() { - _arguments \ - '(-f,--follow)'{-f,-follow}'[Follow log output]' - __docker_containers -} - -__port() { - __docker_containers -} - -__top() { - __docker_containers -} - -__ps() { - _arguments \ - '(-a,--all)'{-a,--all}'[Show all containers. Only running containers are shown by default.]' \ - '--before-id=[Show only container created before Id, include non-running ones.]' \ - '(-l,--latest)'{-l,--latest}'[Show only the latest created container, include non-running ones.]' \ - '-n=[Show n last created containers, include non-running ones. default=-1.]' \ - '--no-trunc[Don''t truncate output]' \ - '(-q,--quiet)'{-q,--quiet}'[Only display numeric IDs]' \ - '(-s,--size)'{-s,--size}'[Display sizes]' \ - '--since-id=[Show only containers created since Id, include non-running ones.]' -} - -__pull() { - _arguments \ - '(-t,--tag=)'{-t,--tag=}'[Download tagged image in repository]' -} - -__push() { - # no arguments -} - -__restart() { - _arguments \ - '(-t,--time=)'{-t,--time=}'[Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default=10]' - __docker_containers -} - -__rm() { - _arguments \ - '(-f,--force=)'{-f,--force=}'[Force removal of running container]' \ - '(-l,--link=)'{-l,--link=}'[Remove the specified link and not the underlying container]' \ - '(-v,--volumes=)'{-v,--volumes=}'[Remove the volumes associated to the container]' - __docker_all_containers -} - -__rmi() { - _arguments \ - '(-f,--force=)'{-f,--force=}'[Force]' - __docker_images -} - -__run() { - _arguments \ - '(-P,--publish-all=)'{-P,--publish-all=}'[Publish all exposed ports to the host interfaces]' \ - '(-a,--attach=)'{-a,--attach=}'[Attach to stdin, stdout or stderr.]' \ - '(-c,--cpu-shares=)'{-c,--cpu-shares=}': CPU shares (relative weight)]' \ - '--cidfile=[Write the container ID to the file]' \ - '(-d,--detach=)'{-d,--detach=}'[Detached mode: Run container in the background, print new container id]' \ - '--dns=[Set custom dns servers]' \ - '(-e,--env=)'{-e,--env=}'[Set environment variables]' \ - '--entrypoint=[Overwrite the default entrypoint of the image]' \ - '--expose=[Expose a port from the container without publishing it to your host]' \ - '(-h,--hostname=)'{-h,--hostname=}'[Container host name]' \ - '(-i,--interactive=)'{-i,--interactive=}'[Keep stdin open even if not attached]' \ - '--link=[Add link to another container (name:alias)]' \ - '--lxc-conf=[Add custom lxc options -lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"]' \ - '(-m,--memory=)'{-m,--memory=}'[Memory limit (format: , where unit = b, k, m or g)]' \ - '(-n,--networking=)'{-n,--networking=}'[Enable networking for this container]' \ - '--name=[Assign a name to the container]' \ - '(-p,--publish=)'{-p,--publish=}'[Publish a container''s port to the host (format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort) (use "docker port" to see the actual mapping)]' \ - '--privileged=[Give extended privileges to this container]' \ - '--rm=[Automatically remove the container when it exits (incompatible with -d)]' \ - '--sig-proxy=[Proxify all received signal to the process (even in non-tty mode)]' \ - '(-t,--tty=)'{-t,--tty=}'[Allocate a pseudo-tty]' \ - '(-u,--user=)'{-u,--user=}'[Username or UID]' \ - '(-v,--volume=)'{-v,--volume=}'[Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container)]' \ - '--volumes-from=[Mount volumes from the specified container(s)]' \ - '(-w,--workdir=)'{-w,--workdir=}'[Working directory inside the container]' - __docker_images -} - -__search() { - _arguments \ - '--no-trunc=[Don''t truncate output]' \ - '-s,--stars=)'{-s,--stars=}'[Only displays with at least xxx stars]' \ - '-t,--trusted=)'{-t,--trusted=}'[Only show trusted builds]' -} - -__save() { - __docker_images -} - -__start() { - _arguments \ - '(-a,--attach=)'{-a,--attach=}'[Attach container''s stdout/stderr and forward all signals to the process]' \ - '(-i,--interactive=)'{-i,--interactive=}'[Attach container''s stdin]' - __docker_all_containers -} - -__stats() { - __docker_containers -} - -__stop() { - _arguments \ - '(-t,--time=)'{-t,--time=}'[Number of seconds to wait for the container to stop before killing it.]' - __docker_containers -} - -__tag() { - _arguments \ - '(-f,--force=)'{-f,--force=}'[Force]' - __docker_images -} - -__version() { - # no arguments -} - -__wait() { - __docker_containers -} - -__exec() { - _arguments \ - '(-d,--detach=)'{-d,--detach=}'[Detached mode: run command in the background]' \ - '(-i,--interactive=)'{-i,--interactive=}'[Keep STDIN open even if not attached]' \ - '(-t,--tty=)'{-t,--tty=}'[Allocate a pseudo-TTY]' - __docker_containers -} - -# end commands --------- -# ---------------------- - -local -a _1st_arguments -_1st_arguments=( - "attach":"Attach to a running container" - "build":"Build a container from a Dockerfile" - "commit":"Create a new image from a container's changes" - "cp":"Copy files/folders from the containers filesystem to the host path" - "diff":"Inspect changes on a container's filesystem" - "events":"Get real time events from the server" - "export":"Stream the contents of a container as a tar archive" - "history":"Show the history of an image" - "images":"List images" - "import":"Create a new filesystem image from the contents of a tarball" - "info":"Display system-wide information" - "insert":"Insert a file in an image" - "inspect":"Return low-level information on a container" - "kill":"Kill a running container" - "load":"Load an image from a tar archive" - "login":"Register or Login to the docker registry server" - "logs":"Fetch the logs of a container" - "port":"Lookup the public-facing port which is NAT-ed to PRIVATE_PORT" - "ps":"List containers" - "pull":"Pull an image or a repository from the docker registry server" - "push":"Push an image or a repository to the docker registry server" - "restart":"Restart a running container" - "rm":"Remove one or more containers" - "rmi":"Remove one or more images" - "run":"Run a command in a new container" - "save":"Save an image to a tar archive" - "search":"Search for an image in the docker index" - "start":"Start a stopped container" - "stats":"Display a live stream of one or more containers' resource usage statistics" - "stop":"Stop a running container" - "tag":"Tag an image into a repository" - "top":"Lookup the running processes of a container" - "version":"Show the docker version information" - "wait":"Block until a container stops, then print its exit code" - "exec":"Run a task inside a running container" -) - -_arguments '*:: :->command' - -if (( CURRENT == 1 )); then - _describe -t commands "docker command" _1st_arguments - return -fi - -local -a _command_args -case "$words[1]" in - attach) - __attach ;; - build) - __build ;; - commit) - __commit ;; - cp) - __cp ;; - diff) - __diff ;; - events) - __events ;; - export) - __export ;; - history) - __history ;; - images) - __images ;; - import) - __import ;; - info) - __info ;; - insert) - __insert ;; - inspect) - __inspect ;; - kill) - __kill ;; - load) - __load ;; - login) - __login ;; - logs) - __logs ;; - port) - __port ;; - ps) - __ps ;; - pull) - __pull ;; - push) - __push ;; - restart) - __restart ;; - rm) - __rm ;; - rmi) - __rmi ;; - run) - __run ;; - save) - __save ;; - search) - __search ;; - stats) - __stats ;; - start) - __start ;; - stop) - __stop ;; - tag) - __tag ;; - top) - __top ;; - version) - __version ;; - wait) - __wait ;; - exec) - __exec ;; -esac diff --git a/.oh-my-zsh/plugins/emacs/emacs.plugin.zsh b/.oh-my-zsh/plugins/emacs/emacs.plugin.zsh deleted file mode 100644 index a3f0085..0000000 --- a/.oh-my-zsh/plugins/emacs/emacs.plugin.zsh +++ /dev/null @@ -1,56 +0,0 @@ -# Emacs 23 daemon capability is a killing feature. -# One emacs process handles all your frames whether -# you use a frame opened in a terminal via a ssh connection or X frames -# opened on the same host. - -# Benefits are multiple -# - You don't have the cost of starting Emacs all the time anymore -# - Opening a file is as fast as Emacs does not have anything else to do. -# - You can share opened buffered across opened frames. -# - Configuration changes made at runtime are applied to all frames. - - -if "$ZSH/tools/require_tool.sh" emacs 23 2>/dev/null ; then - export EMACS_PLUGIN_LAUNCHER="$ZSH/plugins/emacs/emacsclient.sh" - - # set EDITOR if not already defined. - export EDITOR="${EDITOR:-${EMACS_PLUGIN_LAUNCHER}}" - - alias emacs="$EMACS_PLUGIN_LAUNCHER --no-wait" - alias e=emacs - - # same than M-x eval but from outside Emacs. - alias eeval="$EMACS_PLUGIN_LAUNCHER --eval" - # create a new X frame - alias eframe='emacsclient --alternate-editor "" --create-frame' - - # to code all night long - alias emasc=emacs - alias emcas=emacs - - # Write to standard output the path to the file - # opened in the current buffer. - function efile { - local cmd="(buffer-file-name (window-buffer))" - "$EMACS_PLUGIN_LAUNCHER" --eval "$cmd" | tr -d \" - } - - # Write to standard output the directory of the file - # opened in the the current buffer - function ecd { - local cmd="(let ((buf-name (buffer-file-name (window-buffer)))) - (if buf-name (file-name-directory buf-name)))" - - local dir="$($EMACS_PLUGIN_LAUNCHER --eval $cmd | tr -d \")" - if [ -n "$dir" ] ;then - echo "$dir" - else - echo "can not deduce current buffer filename." >/dev/stderr - return 1 - fi - } -fi - -## Local Variables: -## mode: sh -## End: diff --git a/.oh-my-zsh/plugins/emacs/emacsclient.sh b/.oh-my-zsh/plugins/emacs/emacsclient.sh deleted file mode 100755 index 625201a..0000000 --- a/.oh-my-zsh/plugins/emacs/emacsclient.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -# get list of available X windows. -x=`emacsclient --alternate-editor '' --eval '(x-display-list)' 2>/dev/null` - -if [ -z "$x" ] || [ "$x" = "nil" ] ;then - # Create one if there is no X window yet. - emacsclient --alternate-editor "" --create-frame "$@" -else - # prevent creating another X frame if there is at least one present. - emacsclient --alternate-editor "" "$@" -fi diff --git a/.oh-my-zsh/plugins/ember-cli/README.md b/.oh-my-zsh/plugins/ember-cli/README.md deleted file mode 100644 index d1dedf8..0000000 --- a/.oh-my-zsh/plugins/ember-cli/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Ember-cli - -**Maintainer:** [BilalBudhani](http://www.github.com/BilalBudhani) - -Ember-cli (http://www.ember-cli.com/) - -### List of Aliases - -alias es='ember serve' -alias ea='ember addon' -alias eb='ember build' -alias ed='ember destroy' -alias eg='ember generate' -alias eh='ember help' -alias ein='ember init' -alias eia='ember install:addon' -alias eib='ember install:bower' -alias ein='ember install:npm' -alias ei='ember install' -alias et='ember test' -alias eu='ember update' -alias ev='ember version' diff --git a/.oh-my-zsh/plugins/ember-cli/ember-cli.plugin.zsh b/.oh-my-zsh/plugins/ember-cli/ember-cli.plugin.zsh deleted file mode 100644 index 044a2c0..0000000 --- a/.oh-my-zsh/plugins/ember-cli/ember-cli.plugin.zsh +++ /dev/null @@ -1,19 +0,0 @@ -# Ember ClI -# visit http://www.ember-cli.com/ to view user guid - -alias es='ember serve' -alias ea='ember addon' -alias eb='ember build' -alias ed='ember destroy' -alias eg='ember generate' -alias eh='ember help' -alias ein='ember init' -alias eia='ember install:addon' -alias eib='ember install:bower' -alias ein='ember install:npm' -alias ei='ember install' -alias et='ember test' -alias eu='ember update' - -# version -alias ev='ember version' diff --git a/.oh-my-zsh/plugins/emoji-clock/emoji-clock.plugin.zsh b/.oh-my-zsh/plugins/emoji-clock/emoji-clock.plugin.zsh deleted file mode 100644 index 0a55528..0000000 --- a/.oh-my-zsh/plugins/emoji-clock/emoji-clock.plugin.zsh +++ /dev/null @@ -1,33 +0,0 @@ -# ------------------------------------------------------------------------------ -# FILE: emoji-clock.plugin.zsh -# DESCRIPTION: The current time with half hour accuracy as an emoji symbol. -# Inspired by Andre Torrez' "Put A Burger In Your Shell" -# http://notes.torrez.org/2013/04/put-a-burger-in-your-shell.html -# AUTHOR: Alexis Hildebrandt (afh[at]surryhill.net) -# VERSION: 1.0.0 -# ----------------------------------------------------------------------------- - -function emoji-clock() { - # Add 15 minutes to the current time and save the value as $minutes. - (( minutes = $(date '+%M') + 15 )) - (( hour = $(date '+%I') + minutes / 60 )) - # make sure minutes and hours don't exceed 60 nor 12 respectively - (( minutes %= 60 )); (( hour %= 12 )) - - case $hour in - 0) clock="🕛"; [ $minutes -ge 30 ] && clock="🕧";; - 1) clock="🕐"; [ $minutes -ge 30 ] && clock="🕜";; - 2) clock="🕑"; [ $minutes -ge 30 ] && clock="🕝";; - 3) clock="🕒"; [ $minutes -ge 30 ] && clock="🕞";; - 4) clock="🕓"; [ $minutes -ge 30 ] && clock="🕟";; - 5) clock="🕔"; [ $minutes -ge 30 ] && clock="🕠";; - 6) clock="🕕"; [ $minutes -ge 30 ] && clock="🕡";; - 7) clock="🕖"; [ $minutes -ge 30 ] && clock="🕢";; - 8) clock="🕗"; [ $minutes -ge 30 ] && clock="🕣";; - 9) clock="🕘"; [ $minutes -ge 30 ] && clock="🕤";; - 10) clock="🕙"; [ $minutes -ge 30 ] && clock="🕥";; - 11) clock="🕚"; [ $minutes -ge 30 ] && clock="🕦";; - *) clock="⌛";; - esac - echo $clock -} diff --git a/.oh-my-zsh/plugins/encode64/encode64.plugin.zsh b/.oh-my-zsh/plugins/encode64/encode64.plugin.zsh deleted file mode 100644 index 4dbd1b4..0000000 --- a/.oh-my-zsh/plugins/encode64/encode64.plugin.zsh +++ /dev/null @@ -1,4 +0,0 @@ -encode64(){ echo -n $1 | base64 } -decode64(){ echo -n $1 | base64 --decode } -alias e64=encode64 -alias d64=decode64 diff --git a/.oh-my-zsh/plugins/extract/_extract b/.oh-my-zsh/plugins/extract/_extract deleted file mode 100644 index dca8909..0000000 --- a/.oh-my-zsh/plugins/extract/_extract +++ /dev/null @@ -1,8 +0,0 @@ -#compdef extract -#autoload - -_arguments \ - '(-r --remove)'{-r,--remove}'[Remove archive.]' \ - "*::archive file:_files -g '(#i)*.(tar|tgz|tbz|tbz2|txz|tlz|gz|bz2|xz|lzma|Z|zip|rar|7z|deb)(-.)'" && return 0 - - diff --git a/.oh-my-zsh/plugins/extract/extract.plugin.zsh b/.oh-my-zsh/plugins/extract/extract.plugin.zsh deleted file mode 100644 index 898d3d3..0000000 --- a/.oh-my-zsh/plugins/extract/extract.plugin.zsh +++ /dev/null @@ -1,80 +0,0 @@ -# ------------------------------------------------------------------------------ -# FILE: extract.plugin.zsh -# DESCRIPTION: oh-my-zsh plugin file. -# AUTHOR: Sorin Ionescu (sorin.ionescu@gmail.com) -# VERSION: 1.0.1 -# ------------------------------------------------------------------------------ - - -function extract() { - local remove_archive - local success - local file_name - local extract_dir - - if (( $# == 0 )); then - echo "Usage: extract [-option] [file ...]" - echo - echo Options: - echo " -r, --remove Remove archive." - echo - echo "Report bugs to ." - fi - - remove_archive=1 - if [[ "$1" == "-r" ]] || [[ "$1" == "--remove" ]]; then - remove_archive=0 - shift - fi - - while (( $# > 0 )); do - if [[ ! -f "$1" ]]; then - echo "extract: '$1' is not a valid file" 1>&2 - shift - continue - fi - - success=0 - file_name="$( basename "$1" )" - extract_dir="$( echo "$file_name" | sed "s/\.${1##*.}//g" )" - case "$1" in - (*.tar.gz|*.tgz) [ -z $commands[pigz] ] && tar zxvf "$1" || pigz -dc "$1" | tar xv ;; - (*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;; - (*.tar.xz|*.txz) tar --xz --help &> /dev/null \ - && tar --xz -xvf "$1" \ - || xzcat "$1" | tar xvf - ;; - (*.tar.zma|*.tlz) tar --lzma --help &> /dev/null \ - && tar --lzma -xvf "$1" \ - || lzcat "$1" | tar xvf - ;; - (*.tar) tar xvf "$1" ;; - (*.gz) [ -z $commands[pigz] ] && gunzip "$1" || pigz -d "$1" ;; - (*.bz2) bunzip2 "$1" ;; - (*.xz) unxz "$1" ;; - (*.lzma) unlzma "$1" ;; - (*.Z) uncompress "$1" ;; - (*.zip|*.war|*.jar|*.sublime-package) unzip "$1" -d $extract_dir ;; - (*.rar) unrar x -ad "$1" ;; - (*.7z) 7za x "$1" ;; - (*.deb) - mkdir -p "$extract_dir/control" - mkdir -p "$extract_dir/data" - cd "$extract_dir"; ar vx "../${1}" > /dev/null - cd control; tar xzvf ../control.tar.gz - cd ../data; tar xzvf ../data.tar.gz - cd ..; rm *.tar.gz debian-binary - cd .. - ;; - (*) - echo "extract: '$1' cannot be extracted" 1>&2 - success=1 - ;; - esac - - (( success = $success > 0 ? $success : $? )) - (( $success == 0 )) && (( $remove_archive == 0 )) && rm "$1" - shift - done -} - -alias x=extract - diff --git a/.oh-my-zsh/plugins/fabric/_fab b/.oh-my-zsh/plugins/fabric/_fab deleted file mode 100644 index 9628e12..0000000 --- a/.oh-my-zsh/plugins/fabric/_fab +++ /dev/null @@ -1,60 +0,0 @@ -#compdef fab -#autoload - -local curcontext=$curcontext state line -declare -A opt_args - -declare target_list -target_list=(`fab --shortlist 2>/dev/null`) - -_targets() { - _describe -t commands "fabric targets" target_list -} - -output_levels=( - 'status: Status messages, i.e. noting when Fabric is done running, if the user used a keyboard interrupt, or when servers are disconnected from. These messages are almost always relevant and rarely verbose.' - 'aborts: Abort messages. Like status messages, these should really only be turned off when using Fabric as a library, and possibly not even then. Note that even if this output group is turned off, aborts will still occur – there just won’t be any output about why Fabric aborted!' - 'warnings: Warning messages. These are often turned off when one expects a given operation to fail, such as when using grep to test existence of text in a file. If paired with setting env.warn_only to True, this can result in fully silent warnings when remote programs fail. As with aborts, this setting does not control actual warning behavior, only whether warning messages are printed or hidden.' - 'running: Printouts of commands being executed or files transferred, e.g. [myserver] run: ls /var/www. Also controls printing of tasks being run, e.g. [myserver] Executing task ''foo''.' - 'stdout: Local, or remote, stdout, i.e. non-error output from commands.' - 'stderr: Local, or remote, stderr, i.e. error-related output from commands.' - 'user: User-generated output, i.e. local output printed by fabfile code via use of the fastprint or puts functions.' -) - -_arguments -w -S -C \ - '(-)'{-h,--help}'[show this help message and exit]: :->noargs' \ - '(-)'{-V,--version}'[show program''s version number and exit]: :->noargs' \ - '(-)--list[print list of possible commands and exit]: :->noargs' \ - '(-)--shortlist[print non-verbose list of possible commands and exit]: :->noargs' \ - '(--reject-unknown-hosts)--reject-unknown-hosts[reject unknown hosts]' \ - '(--no-pty)--no-pty[do not use pseudo-terminal in run/sudo]' \ - "(-d+ --display=-)"{-d+,--display=-}"[print detailed info about a given command]: :_targets" \ - '(-D --disable-known-hosts)'{-D,--disable-known-hosts}'[do not load user known_hosts file]' \ - '(-r --reject-unknown-hosts)'{-r,--reject-unknown-hosts}'[reject unknown hosts]' \ - '(-u+ --user=-)'{-u+,--user=-}'[username to use when connecting to remote hosts]: :' \ - '(-p+ --password=-)'{-p+,--password=-}'[password for use with authentication and/or sudo]: :' \ - '(-H+ --hosts=-)'{-H+,--hosts=-}'[comma separated list of hosts to operate on]: :' \ - '(-R+ --roles=-)'{-R+,--roles=-}'[comma separated list of roles to operate on]: :' \ - '(-a --no-agent)'{-a,--no-agent}'[don''t use the running SSH agent]' \ - '(-k --no-keys)'{-k,--no-keys}'[don''t load private key files from ~/.ssh/]' \ - '(-w --warn-only)'{-w,--warn-only}'[warn instead of abort, when commands fail]' \ - '-i+[path to SSH private key file. May be repeated]: :_files' \ - "(-f+ --fabfile=)"{-f+,--fabfile=}"[Python module file to import]: :_files -g *.py" \ - '(-c+ --config=-)'{-c+,--config=-}'[specify location of config file to use]: :_files' \ - '(-s+ --shell=-)'{-s+,--shell=-}'[specify a new shell, defaults to ''/bin/bash -l -c'']: :' \ - '(--hide=-)--hide=-[comma-separated list of output levels to hide]: :->levels' \ - '(--show=-)--show=-[comma-separated list of output levels to show]: :->levels' \ - '*::: :->subcmds' && return 0 - -if [[ CURRENT -ge 1 ]]; then - case $state in - noargs) - _message "nothing to complete";; - levels) - _describe -t commands "output levels" output_levels;; - *) - _targets;; - esac - - return -fi diff --git a/.oh-my-zsh/plugins/fabric/fabric.plugin.zsh b/.oh-my-zsh/plugins/fabric/fabric.plugin.zsh deleted file mode 100644 index aca4113..0000000 --- a/.oh-my-zsh/plugins/fabric/fabric.plugin.zsh +++ /dev/null @@ -1 +0,0 @@ -# DECLARION: This plugin was created by vhbit. What I did is just making a portal from https://github.com/vhbit/fabric-zsh-autocomplete. diff --git a/.oh-my-zsh/plugins/fasd/fasd.plugin.zsh b/.oh-my-zsh/plugins/fasd/fasd.plugin.zsh deleted file mode 100644 index 8ad43fc..0000000 --- a/.oh-my-zsh/plugins/fasd/fasd.plugin.zsh +++ /dev/null @@ -1,11 +0,0 @@ -if [ $commands[fasd] ]; then # check if fasd is installed - fasd_cache="$HOME/.fasd-init-cache" - if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then - fasd --init auto >| "$fasd_cache" - fi - source "$fasd_cache" - unset fasd_cache - alias v='f -e vim' - alias o='a -e open' -fi - diff --git a/.oh-my-zsh/plugins/fastfile/fastfile.plugin.zsh b/.oh-my-zsh/plugins/fastfile/fastfile.plugin.zsh deleted file mode 100644 index 775e948..0000000 --- a/.oh-my-zsh/plugins/fastfile/fastfile.plugin.zsh +++ /dev/null @@ -1,138 +0,0 @@ -################################################################################ -# FILE: fastfile.plugin.zsh -# DESCRIPTION: oh-my-zsh plugin file. -# AUTHOR: Michael Varner (musikmichael@web.de) -# VERSION: 1.0.0 -# -# This plugin adds the ability to on the fly generate and access file shortcuts. -# -################################################################################ - -########################### -# Settings - -# These can be overwritten any time. -# If they are not set yet, they will be -# overwritten with their default values - -default fastfile_dir "${HOME}/.fastfile/" -default fastfile_var_prefix "§" - -########################### -# Impl - -# -# Generate a shortcut -# -# Arguments: -# 1. name - The name of the shortcut (default: name of the file) -# 2. file - The file or directory to make the shortcut for -# STDOUT: -# => fastfle_print -# -function fastfile() { - test "$2" || 2="." - file=$(readlink -f "$2") - - test "$1" || 1="$(basename "$file")" - name=$(echo "$1" | tr " " "_") - - - mkdir -p "${fastfile_dir}" - echo "$file" > "$(fastfile_resolv "$name")" - - fastfile_sync - fastfile_print "$name" -} - -# -# Resolve the location of a shortcut file (the database file, where the value is written!) -# -# Arguments: -# 1. name - The name of the shortcut -# STDOUT: -# The path -# -function fastfile_resolv() { - echo "${fastfile_dir}${1}" -} - -# -# Get the real path of a shortcut -# -# Arguments: -# 1. name - The name of the shortcut -# STDOUT: -# The path -# -function fastfile_get() { - cat "$(fastfile_resolv "$1")" -} - -# -# Print a shortcut -# -# Arguments: -# 1. name - The name of the shortcut -# STDOUT: -# Name and value of the shortcut -# -function fastfile_print() { - echo "${fastfile_var_prefix}${1} -> $(fastfile_get "$1")" -} - -# -# List all shortcuts -# -# STDOUT: -# (=> fastfle_print) for each shortcut -# -function fastfile_ls() { - for f in "${fastfile_dir}"/*; do - file=`basename "$f"` # To enable simpler handeling of spaces in file names - varkey=`echo "$file" | tr " " "_"` - - # Special format for colums - echo "${fastfile_var_prefix}${varkey}|->|$(fastfile_get "$file")" - done | column -t -s "|" -} - -# -# Remove a shortcut -# -# Arguments: -# 1. name - The name of the shortcut (default: name of the file) -# 2. file - The file or directory to make the shortcut for -# STDOUT: -# => fastfle_print -# -function fastfile_rm() { - fastfile_print "$1" - rm "$(fastfile_resolv "$1")" -} - -# -# Generate the aliases for the shortcuts -# -function fastfile_sync() { - for f in "${fastfile_dir}"/*; do - file=`basename "$f"` # To enable simpler handeling of spaces in file names - varkey=`echo "$file" | tr " " "_"` - - alias -g "${fastfile_var_prefix}${varkey}"="'$(fastfile_get "$file")'" - done -} - -################################## -# Shortcuts - -alias ff=fastfile -alias ffp=fastfile_print -alias ffrm=fastfile_rm -alias ffls=fastfile_ls -alias ffsync=fastfile_sync - -################################## -# Init - -fastfile_sync \ No newline at end of file diff --git a/.oh-my-zsh/plugins/fbterm/fbterm.plugin.zsh b/.oh-my-zsh/plugins/fbterm/fbterm.plugin.zsh deleted file mode 100644 index 4f04560..0000000 --- a/.oh-my-zsh/plugins/fbterm/fbterm.plugin.zsh +++ /dev/null @@ -1,6 +0,0 @@ -# start fbterm automatically in /dev/tty* - -if [[ $(tty|grep -o '/dev/tty') = /dev/tty ]] ; then - fbterm - exit -fi diff --git a/.oh-my-zsh/plugins/forklift/forklift.plugin.zsh b/.oh-my-zsh/plugins/forklift/forklift.plugin.zsh deleted file mode 100644 index 692ca57..0000000 --- a/.oh-my-zsh/plugins/forklift/forklift.plugin.zsh +++ /dev/null @@ -1,69 +0,0 @@ -# Open folder in ForkLift.app or ForkLift2.app from console -# Author: Adam Strzelecki nanoant.com, modified by Bodo Tasche bitboxer.de -# Updated to support ForkLift2 by Johan Kaving -# -# Usage: -# fl [] -# -# Opens specified directory or current working directory in ForkLift.app -# -# Notes: -# It assumes Shift+Cmd+G launches go to folder panel and Cmd+N opens new -# app window. -# -# https://gist.github.com/3313481 -function fl { - if [ ! -z "$1" ]; then - DIR=$1 - if [ ! -d "$DIR" ]; then - DIR=$(dirname $DIR) - fi - if [ "$DIR" != "." ]; then - PWD=`cd "$DIR";pwd` - fi - fi - osascript 2>&1 1>/dev/null < Searches for your Frontend contents more easier - - -## Instalation ## - - -Open your `.zshrc` file and load `frontend-search` plugin - -```bash -... -plugins=( ... frontend-search) -... -``` - - -## Commands ## - -All command searches are accept only in format - -* `frontend ` - -The search content are - -* `jquery ` -* `mdn ` -* `compass ` -* `html5please ` -* `caniuse ` -* `aurajs ` -* `dartlang ` -* `lodash ` -* `qunit ` -* `fontello ` -* `bootsnipp ` -* `cssflow ` -* `codepen ` -* `unheap ` -* `bem &as_sitesearch=bem.info>` -* `smacss &as_sitesearch=smacss.com>` -* `angularjs &as_sitesearch=angularjs.org>` -* `reactjs &as_sitesearch=facebook.github.io/react>` -* `emberjs ` -* `stackoverflow ` - - -## Aliases ## - -There are a few aliases presented as well: - -* `jquery` A shorthand for `frontend jquery` -* `mdn` A shorthand for `frontend mdn` -* `compass` A shorthand for `frontend compass` -* `html5please` A shorthand for `frontend html5please` -* `caniuse` A shorthand for `frontend caniuse` -* `aurajs` A shorthand for `frontend aurajs` -* `dartlang` A shorthand for `frontend dartlang` -* `lodash` A shorthand for `frontend lodash` -* `qunit` A shorthand for `frontend qunit` -* `fontello` A shorthand for `frontend fontello` -* `bootsnipp` A shorthand for `frontend bootsnipp` -* `cssflow` A shorthand for `frontend cssflow` -* `codepen` A shorthand for `frontend codepen` -* `unheap` A shorthand for `frontend unheap` -* `bem` A shorthand for `frontend bem` -* `smacss` A shorthand for `frontend smacss` -* `angularjs` A shorthand for `frontend angularjs` -* `reactjs` A shorthand for `frontend reactjs` -* `emberjs` A shorthand for `frontend emberjs` -* `stackoverflow` A shorthand for `frontend stackoverflow` - - -## Author - -**Wilson Mendes (willmendesneto)** -+ -+ -+ - -New features comming soon. diff --git a/.oh-my-zsh/plugins/frontend-search/_frontend-search.sh b/.oh-my-zsh/plugins/frontend-search/_frontend-search.sh deleted file mode 100644 index 252f215..0000000 --- a/.oh-my-zsh/plugins/frontend-search/_frontend-search.sh +++ /dev/null @@ -1,128 +0,0 @@ -#compdef frontend - -zstyle ':completion:*:descriptions' format '%B%d%b' -zstyle ':completion::complete:frontend:*:commands' group-name commands -zstyle ':completion::complete:frontend:*:frontend_points' group-name frontend_points -zstyle ':completion::complete:frontend::' list-grouped - -zmodload zsh/mapfile - -function _frontend() { - local CONFIG=$HOME/.frontend-search - local ret=1 - - local -a commands - local -a frontend_points - - frontend_points=( "${(f)mapfile[$CONFIG]//$HOME/~}" ) - - commands=( - 'jquery: Search in jQuery website' - 'mdn: Search in MDN website' - 'compass: Search in COMPASS website' - 'html5please: Search in HTML5 Please website' - 'caniuse: Search in Can I Use website' - 'aurajs: Search in AuraJs website' - 'dartlang: Search in Dart website' - 'lodash: Search in Lo-Dash website' - 'qunit: Search in Qunit website' - 'fontello: Search in fontello website' - 'bootsnipp: Search in bootsnipp website' - 'cssflow: Search in cssflow website' - 'codepen: Search in codepen website' - 'unheap: Search in unheap website' - 'bem: Search in BEM website' - 'smacss: Search in SMACSS website' - 'angularjs: Search in Angular website' - 'reactjs: Search in React website' - 'emberjs: Search in Ember website' - 'stackoverflow: Search in StackOverflow website' - ) - - _arguments -C \ - '1: :->first_arg' \ - '2: :->second_arg' && ret=0 - - case $state in - first_arg) - _describe -t frontend_points "Warp points" frontend_points && ret=0 - _describe -t commands "Commands" commands && ret=0 - ;; - second_arg) - case $words[2] in - jquery) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - mdn) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - compass) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - html5please) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - caniuse) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - aurajs) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - dartlang) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - lodash) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - qunit) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - fontello) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - bootsnipp) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - cssflow) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - codepen) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - unheap) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - bem) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - smacss) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - angularjs) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - reactjs) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - emberjs) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - stackoverflow) - _describe -t points "Warp points" frontend_points && ret=0 - ;; - esac - ;; - esac - - return $ret -} - -_frontend "$@" - -# Local Variables: -# mode: Shell-Script -# sh-indentation: 2 -# indent-tabs-mode: nil -# sh-basic-offset: 2 -# End: -# vim: ft=zsh sw=2 ts=2 et diff --git a/.oh-my-zsh/plugins/frontend-search/frontend-search.plugin.zsh b/.oh-my-zsh/plugins/frontend-search/frontend-search.plugin.zsh deleted file mode 100644 index b9fb863..0000000 --- a/.oh-my-zsh/plugins/frontend-search/frontend-search.plugin.zsh +++ /dev/null @@ -1,158 +0,0 @@ -# frontend from terminal - -function frontend() { - - # get the open command - local open_cmd - if [[ $(uname -s) == 'Darwin' ]]; then - open_cmd='open' - else - open_cmd='xdg-open' - fi - - # no keyword provided, simply show how call methods - if [[ $# -le 1 ]]; then - echo "Please provide a search-content and a search-term for app.\nEx:\nfrontend \n" - return 1 - fi - - # check whether the search engine is supported - if [[ ! $1 =~ '(jquery|mdn|compass|html5please|caniuse|aurajs|dartlang|qunit|fontello|bootsnipp|cssflow|codepen|unheap|bem|smacss|angularjs|reactjs|emberjs|stackoverflow)' ]]; - then - echo "Search valid search content $1 not supported." - echo "Valid contents: (formats 'frontend ' or '')" - echo "* jquery" - echo "* mdn" - echo "* compass" - echo "* html5please" - echo "* caniuse" - echo "* aurajs" - echo "* dartlang" - echo "* lodash" - echo "* qunit" - echo "* fontello" - echo "* bootsnipp" - echo "* cssflow" - echo "* codepen" - echo "* unheap" - echo "* bem" - echo "* smacss" - echo "* angularjs" - echo "* reactjs" - echo "* emberjs" - echo "* stackoverflow" - echo "" - - return 1 - fi - - local url="http://" - local query="" - - case "$1" in - "jquery") - url="${url}api.jquery.com" - url="${url}/?s=$2" ;; - "mdn") - url="${url}developer.mozilla.org" - url="${url}/search?q=$2" ;; - "compass") - url="${url}compass-style.org" - url="${url}/search?q=$2" ;; - "html5please") - url="${url}html5please.com" - url="${url}/#$2" ;; - "caniuse") - url="${url}caniuse.com" - url="${url}/#search=$2" ;; - "aurajs") - url="${url}aurajs.com" - url="${url}/api/#stq=$2" ;; - "dartlang") - url="${url}api.dartlang.org/apidocs/channels/stable/dartdoc-viewer" - url="${url}/dart-$2" ;; - "qunit") - url="${url}api.qunitjs.com" - url="${url}/?s=$2" ;; - "fontello") - url="${url}fontello.com" - url="${url}/#search=$2" ;; - "bootsnipp") - url="${url}bootsnipp.com" - url="${url}/search?q=$2" ;; - "cssflow") - url="${url}cssflow.com" - url="${url}/search?q=$2" ;; - "codepen") - url="${url}codepen.io" - url="${url}/search?q=$2" ;; - "unheap") - url="${url}www.unheap.com" - url="${url}/?s=$2" ;; - "bem") - url="${url}google.com" - url="${url}/search?as_q=$2&as_sitesearch=bem.info" ;; - "smacss") - url="${url}google.com" - url="${url}/search?as_q=$2&as_sitesearch=smacss.com" ;; - "angularjs") - url="${url}google.com" - url="${url}/search?as_q=$2&as_sitesearch=angularjs.org" ;; - "reactjs") - url="${url}google.com" - url="${url}/search?as_q=$2&as_sitesearch=facebook.github.io/react" ;; - "emberjs") - url="${url}emberjs.com" - url="${url}/api/#stq=$2&stp=1" ;; - "stackoverflow") - url="${url}stackoverflow.com" - url="${url}/search?q=$2" ;; - *) echo "INVALID PARAM!" - return ;; - esac - - echo "$url" - - $open_cmd "$url" - -} - -# javascript -alias jquery='frontend jquery' -alias mdn='frontend mdn' - -# pre processors frameworks -alias compassdoc='frontend compass' - -# important links -alias html5please='frontend html5please' -alias caniuse='frontend caniuse' - -# components and libraries -alias aurajs='frontend aurajs' -alias dartlang='frontend dartlang' -alias lodash='frontend lodash' - -#tests -alias qunit='frontend qunit' - -#fonts -alias fontello='frontend fontello' - -# snippets -alias bootsnipp='frontend bootsnipp' -alias cssflow='frontend cssflow' -alias codepen='frontend codepen' -alias unheap='frontend unheap' - -# css architecture -alias bem='frontend bem' -alias smacss='frontend smacss' - -# frameworks -alias angularjs='frontend angularjs' -alias reactjs='frontend reactjs' -alias emberjs='frontend emberjs' - -# search websites -alias stackoverflow='frontend stackoverflow' diff --git a/.oh-my-zsh/plugins/gas/_gas b/.oh-my-zsh/plugins/gas/_gas deleted file mode 100644 index 23e6d99..0000000 --- a/.oh-my-zsh/plugins/gas/_gas +++ /dev/null @@ -1,39 +0,0 @@ -#compdef gas - -local curcontext="$curcontext" state line cmds ret=1 - -_arguments -C \ - '(- 1 *)'{-v,--version}'[display version information]' \ - '(-h|--help)'{-h,--help}'[show help information]' \ - '1: :->cmds' \ - '*: :->args' && ret=0 - -case $state in - cmds) - cmds=( - "version:Prints Gas's version" - "use:Uses author" - "ssh:Creates a new ssh key for an existing gas author" - "show:Shows your current user" - "list:Lists your authors" - "import:Imports current user to gasconfig" - "help:Describe available tasks or one specific task" - "delete:Deletes author" - "add:Adds author to gasconfig" - ) - _describe -t commands 'gas command' cmds && ret=0 - ;; - args) - case $line[1] in - (use|delete) - VERSION=$(gas -v) - if [[ $VERSION == <1->.*.* ]] || [[ $VERSION == 0.<2->.* ]] || [[ $VERSION == 0.1.<6-> ]] then - _values -S , 'authors' $(cat ~/.gas/gas.authors | sed -n -e 's/^.*\[\(.*\)\]/\1/p') && ret=0 - else - _values -S , 'authors' $(cat ~/.gas | sed -n -e 's/^\[\(.*\)\]/\1/p') && ret=0 - fi - esac - ;; -esac - -return ret diff --git a/.oh-my-zsh/plugins/gem/_gem b/.oh-my-zsh/plugins/gem/_gem deleted file mode 100644 index 92feebe..0000000 --- a/.oh-my-zsh/plugins/gem/_gem +++ /dev/null @@ -1,72 +0,0 @@ -#compdef gem -#autoload - -# gem zsh completion, based on homebrew completion - -_gem_installed() { - installed_gems=(${(f)"$(gem list --local --no-versions)"}) -} - -local -a _1st_arguments - -_1st_arguments=( - 'build:Build a gem from a gemspec' - 'cert:Manage RubyGems certificates and signing settings' - 'check:Check a gem repository for added or missing files' - 'cleanup:Clean up old versions of installed gems in the local repository' - 'contents:Display the contents of the installed gems' - 'dependency:Show the dependencies of an installed gem' - 'environment:Display information about the RubyGems environment' - 'fetch:Download a gem and place it in the current directory' - 'generate_index:Generates the index files for a gem server directory' - 'help:Provide help on the `gem` command' - 'install:Install a gem into the local repository' - 'list:Display gems whose name starts with STRING' - 'lock:Generate a lockdown list of gems' - 'mirror:Mirror all gem files (requires rubygems-mirror)' - 'outdated:Display all gems that need updates' - 'owner:Manage gem owners on RubyGems.org.' - 'pristine:Restores installed gems to pristine condition from files located in the gem cache' - 'push:Push a gem up to RubyGems.org' - 'query:Query gem information in local or remote repositories' - 'rdoc:Generates RDoc for pre-installed gems' - 'search:Display all gems whose name contains STRING' - 'server:Documentation and gem repository HTTP server' - 'sources:Manage the sources and cache file RubyGems uses to search for gems' - 'specification:Display gem specification (in yaml)' - 'stale:List gems along with access times' - 'uninstall:Uninstall gems from the local repository' - 'unpack:Unpack an installed gem to the current directory' - 'update:Update installed gems to the latest version' - 'which:Find the location of a library file you can require' - 'yank:Remove a specific gem version release from RubyGems.org' -) - -local expl -local -a gems installed_gems - -_arguments \ - '(-v --version)'{-v,--version}'[show version]' \ - '(-h --help)'{-h,--help}'[show help]' \ - '*:: :->subcmds' && return 0 - -if (( CURRENT == 1 )); then - _describe -t commands "gem subcommand" _1st_arguments - return -fi - -case "$words[1]" in - build) - _files -g "*.gemspec" - ;; - install) - _files ;; - list) - if [[ "$state" == forms ]]; then - _gem_installed - _requested installed_gems expl 'installed gems' compadd -a installed_gems - fi ;; - uninstall|update) - _gem_installed - _wanted installed_gems expl 'installed gems' compadd -a installed_gems ;; -esac diff --git a/.oh-my-zsh/plugins/gem/gem.plugin.zsh b/.oh-my-zsh/plugins/gem/gem.plugin.zsh deleted file mode 100644 index 938f5c9..0000000 --- a/.oh-my-zsh/plugins/gem/gem.plugin.zsh +++ /dev/null @@ -1,7 +0,0 @@ -alias gemb="gem build *.gemspec" -alias gemp="gem push *.gem" - -# gemy GEM 0.0.0 = gem yank GEM -v 0.0.0 -function gemy { - gem yank $1 -v $2 -} \ No newline at end of file diff --git a/.oh-my-zsh/plugins/git-extras/git-extras.plugin.zsh b/.oh-my-zsh/plugins/git-extras/git-extras.plugin.zsh deleted file mode 100644 index 8419166..0000000 --- a/.oh-my-zsh/plugins/git-extras/git-extras.plugin.zsh +++ /dev/null @@ -1,285 +0,0 @@ -#compdef git -# ------------------------------------------------------------------------------ -# Description -# ----------- -# -# Completion script for git-extras (http://github.com/visionmedia/git-extras). -# -# ------------------------------------------------------------------------------ -# Authors -# ------- -# -# * Alexis GRIMALDI (https://github.com/agrimaldi) -# -# ------------------------------------------------------------------------------ -# Inspirations -# ----------- -# -# * git-extras (http://github.com/visionmedia/git-extras) -# * git-flow-completion (http://github.com/bobthecow/git-flow-completion) -# -# ------------------------------------------------------------------------------ - - -__git_command_successful () { - if (( ${#pipestatus:#0} > 0 )); then - _message 'not a git repository' - return 1 - fi - return 0 -} - - -__git_tag_names() { - local expl - declare -a tag_names - tag_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/tags 2>/dev/null)"}#refs/tags/}) - __git_command_successful || return - _wanted tag-names expl tag-name compadd $* - $tag_names -} - - -__git_branch_names() { - local expl - declare -a branch_names - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/}) - __git_command_successful || return - _wanted branch-names expl branch-name compadd $* - $branch_names -} - - -__git_feature_branch_names() { - local expl - declare -a branch_names - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads/feature 2>/dev/null)"}#refs/heads/feature/}) - __git_command_successful || return - _wanted branch-names expl branch-name compadd $* - $branch_names -} - - -__git_refactor_branch_names() { - local expl - declare -a branch_names - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads/refactor 2>/dev/null)"}#refs/heads/refactor/}) - __git_command_successful || return - _wanted branch-names expl branch-name compadd $* - $branch_names -} - - -__git_bug_branch_names() { - local expl - declare -a branch_names - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads/bug 2>/dev/null)"}#refs/heads/bug/}) - __git_command_successful || return - _wanted branch-names expl branch-name compadd $* - $branch_names -} - - -__git_submodule_names() { - local expl - declare -a submodule_names - submodule_names=(${(f)"$(_call_program branchrefs git submodule status | awk '{print $2}')"}) - __git_command_successful || return - _wanted submodule-names expl submodule-name compadd $* - $submodule_names -} - - -__git_author_names() { - local expl - declare -a author_names - author_names=(${(f)"$(_call_program branchrefs git log --format='%aN' | sort -u)"}) - __git_command_successful || return - _wanted author-names expl author-name compadd $* - $author_names -} - - -_git-changelog() { - _arguments \ - '(-l --list)'{-l,--list}'[list commits]' \ -} - - -_git-effort() { - _arguments \ - '--above[ignore file with less than x commits]' \ -} - - -_git-contrib() { - _arguments \ - ':author:__git_author_names' -} - - -_git-count() { - _arguments \ - '--all[detailed commit count]' -} - - -_git-delete-branch() { - _arguments \ - ':branch-name:__git_branch_names' -} - - -_git-delete-submodule() { - _arguments \ - ':submodule-name:__git_submodule_names' -} - - -_git-delete-tag() { - _arguments \ - ':tag-name:__git_tag_names' -} - - -_git-extras() { - local curcontext=$curcontext state line ret=1 - declare -A opt_args - - _arguments -C \ - ': :->command' \ - '*:: :->option-or-argument' && ret=0 - - case $state in - (command) - declare -a commands - commands=( - 'update:update git-extras' - ) - _describe -t commands command commands && ret=0 - ;; - esac - - _arguments \ - '(-v --version)'{-v,--version}'[show current version]' \ -} - - -_git-graft() { - _arguments \ - ':src-branch-name:__git_branch_names' \ - ':dest-branch-name:__git_branch_names' -} - - -_git-squash() { - _arguments \ - ':branch-name:__git_branch_names' -} - - -_git-feature() { - local curcontext=$curcontext state line ret=1 - declare -A opt_args - - _arguments -C \ - ': :->command' \ - '*:: :->option-or-argument' && ret=0 - - case $state in - (command) - declare -a commands - commands=( - 'finish:merge feature into the current branch' - ) - _describe -t commands command commands && ret=0 - ;; - (option-or-argument) - curcontext=${curcontext%:*}-$line[1]: - case $line[1] in - (finish) - _arguments -C \ - ':branch-name:__git_feature_branch_names' - ;; - esac - esac -} - - -_git-refactor() { - local curcontext=$curcontext state line ret=1 - declare -A opt_args - - _arguments -C \ - ': :->command' \ - '*:: :->option-or-argument' && ret=0 - - case $state in - (command) - declare -a commands - commands=( - 'finish:merge refactor into the current branch' - ) - _describe -t commands command commands && ret=0 - ;; - (option-or-argument) - curcontext=${curcontext%:*}-$line[1]: - case $line[1] in - (finish) - _arguments -C \ - ':branch-name:__git_refactor_branch_names' - ;; - esac - esac -} - - -_git-bug() { - local curcontext=$curcontext state line ret=1 - declare -A opt_args - - _arguments -C \ - ': :->command' \ - '*:: :->option-or-argument' && ret=0 - - case $state in - (command) - declare -a commands - commands=( - 'finish:merge bug into the current branch' - ) - _describe -t commands command commands && ret=0 - ;; - (option-or-argument) - curcontext=${curcontext%:*}-$line[1]: - case $line[1] in - (finish) - _arguments -C \ - ':branch-name:__git_bug_branch_names' - ;; - esac - esac -} - - -zstyle ':completion:*:*:git:*' user-commands \ - changelog:'populate changelog file with commits since the previous tag' \ - contrib:'display author contributions' \ - count:'count commits' \ - delete-branch:'delete local and remote branch' \ - delete-submodule:'delete submodule' \ - delete-tag:'delete local and remote tag' \ - extras:'git-extras' \ - graft:'merge commits from source branch to destination branch' \ - squash:'merge commits from source branch into the current one as a single commit' \ - feature:'create a feature branch' \ - refactor:'create a refactor branch' \ - bug:'create a bug branch' \ - summary:'repository summary' \ - effort:'display effort statistics' \ - repl:'read-eval-print-loop' \ - commits-since:'list commits since a given date' \ - release:'release commit with the given tag' \ - alias:'define, search and show aliases' \ - ignore:'add patterns to .gitignore' \ - info:'show info about the repository' \ - create-branch:'create local and remote branch' \ - fresh-branch:'create empty local branch' \ - undo:'remove the latest commit' \ - setup:'setup a git repository' \ - touch:'one step creation of new files' \ - obliterate:'Completely remove a file from the repository, including past commits and tags' \ - local-commits:'list unpushed commits on the local branch' \ diff --git a/.oh-my-zsh/plugins/git-flow-avh/git-flow-avh.plugin.zsh b/.oh-my-zsh/plugins/git-flow-avh/git-flow-avh.plugin.zsh deleted file mode 100644 index ba98fff..0000000 --- a/.oh-my-zsh/plugins/git-flow-avh/git-flow-avh.plugin.zsh +++ /dev/null @@ -1,419 +0,0 @@ -#!zsh -# -# Installation -# ------------ -# -# To achieve git-flow completion nirvana: -# -# 0. Update your zsh's git-completion module to the newest verion. -# From here. http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD -# -# 1. Install this file. Either: -# -# a. Place it in your .zshrc: -# -# b. Or, copy it somewhere (e.g. ~/.git-flow-completion.zsh) and put the following line in -# your .zshrc: -# -# source ~/.git-flow-completion.zsh -# -# c. Or, use this file as a oh-my-zsh plugin. -# - -_git-flow () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'init:Initialize a new git repo with support for the branching model.' - 'feature:Manage your feature branches.' - 'config:Manage your configuration.' - 'release:Manage your release branches.' - 'hotfix:Manage your hotfix branches.' - 'support:Manage your support branches.' - 'version:Shows version information.' - 'finish:Finish the branch you are currently on.' - 'delete:Delete the branch you are currently on.' - 'publish:Publish the branch you are currently on.' - ) - _describe -t commands 'git flow' subcommands - ;; - - (options) - case $line[1] in - - (init) - _arguments \ - -f'[Force setting of gitflow branches, even if already configured]' - ;; - - (version) - ;; - - (hotfix) - __git-flow-hotfix - ;; - - (release) - __git-flow-release - ;; - - (feature) - __git-flow-feature - ;; - (config) - __git-flow-config - ;; - - esac - ;; - esac -} - -__git-flow-release () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new release branch.' - 'finish:Finish a release branch.' - 'list:List all your release branches. (Alias to `git flow release`)' - 'publish:Publish release branch to remote.' - 'track:Checkout remote release branch.' - 'delete:Delete a release branch.' - ) - _describe -t commands 'git flow release' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':version:__git_flow_version_list' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -s'[Sign the release tag cryptographically]'\ - -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]'\ - ':version:__git_flow_version_list' - ;; - - (delete) - _arguments \ - -f'[Force deletion]' \ - -r'[Delete remote branch]' \ - ':version:__git_flow_version_list' - ;; - - (publish) - _arguments \ - ':version:__git_flow_version_list' - ;; - - (track) - _arguments \ - ':version:__git_flow_version_list' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git-flow-hotfix () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new hotfix branch.' - 'finish:Finish a hotfix branch.' - 'delete:Delete a hotfix branch.' - 'list:List all your hotfix branches. (Alias to `git flow hotfix`)' - ) - _describe -t commands 'git flow hotfix' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':hotfix:__git_flow_version_list'\ - ':branch-name:__git_branch_names' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -s'[Sign the release tag cryptographically]'\ - -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]'\ - ':hotfix:__git_flow_hotfix_list' - ;; - - (delete) - _arguments \ - -f'[Force deletion]' \ - -r'[Delete remote branch]' \ - ':hotfix:__git_flow_hotfix_list' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git-flow-feature () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new feature branch.' - 'finish:Finish a feature branch.' - 'delete:Delete a feature branch.' - 'list:List all your feature branches. (Alias to `git flow feature`)' - 'publish:Publish feature branch to remote.' - 'track:Checkout remote feature branch.' - 'diff:Show all changes.' - 'rebase:Rebase from integration branch.' - 'checkout:Checkout local feature branch.' - 'pull:Pull changes from remote.' - ) - _describe -t commands 'git flow feature' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':feature:__git_flow_feature_list'\ - ':branch-name:__git_branch_names' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -r'[Rebase instead of merge]'\ - ':feature:__git_flow_feature_list' - ;; - - (delete) - _arguments \ - -f'[Force deletion]' \ - -r'[Delete remote branch]' \ - ':feature:__git_flow_feature_list' - ;; - - (publish) - _arguments \ - ':feature:__git_flow_feature_list'\ - ;; - - (track) - _arguments \ - ':feature:__git_flow_feature_list'\ - ;; - - (diff) - _arguments \ - ':branch:__git_branch_names'\ - ;; - - (rebase) - _arguments \ - -i'[Do an interactive rebase]' \ - ':branch:__git_branch_names' - ;; - - (checkout) - _arguments \ - ':branch:__git_flow_feature_list'\ - ;; - - (pull) - _arguments \ - ':remote:__git_remotes'\ - ':branch:__git_branch_names' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git-flow-config () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'list:List the configuration. (Alias to `git flow config`)' - 'set:Set the configuration option' - ) - _describe -t commands 'git flow config' subcommands - ;; - - (options) - case $line[1] in - - (set) - _arguments \ - --local'[Use repository config file]' \ - --global'[Use global config file]'\ - --system'[Use system config file]'\ - --file'[Use given config file]'\ - ':option:(master develop feature hotfix release support versiontagprefix)' - ;; - - *) - _arguments \ - --local'[Use repository config file]' \ - --global'[Use global config file]'\ - --system'[Use system config file]'\ - --file'[Use given config file]' - ;; - esac - ;; - esac -} -__git_flow_version_list () -{ - local expl - declare -a versions - - versions=(${${(f)"$(_call_program versions git flow release list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted versions expl 'version' compadd $versions -} - -__git_flow_feature_list () -{ - local expl - declare -a features - - features=(${${(f)"$(_call_program features git flow feature list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted features expl 'feature' compadd $features -} - -__git_remotes () { - local expl gitdir remotes - - gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null) - __git_command_successful || return - - remotes=(${${(f)"$(_call_program remotes git config --get-regexp '"^remote\..*\.url$"')"}//#(#b)remote.(*).url */$match[1]}) - __git_command_successful || return - - # TODO: Should combine the two instead of either or. - if (( $#remotes > 0 )); then - _wanted remotes expl remote compadd $* - $remotes - else - _wanted remotes expl remote _files $* - -W "($gitdir/remotes)" -g "$gitdir/remotes/*" - fi -} - -__git_flow_hotfix_list () -{ - local expl - declare -a hotfixes - - hotfixes=(${${(f)"$(_call_program hotfixes git flow hotfix list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted hotfixes expl 'hotfix' compadd $hotfixes -} - -__git_branch_names () { - local expl - declare -a branch_names - - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/}) - __git_command_successful || return - - _wanted branch-names expl branch-name compadd $* - $branch_names -} - -__git_command_successful () { - if (( ${#pipestatus:#0} > 0 )); then - _message 'not a git repository' - return 1 - fi - return 0 -} - -zstyle ':completion:*:*:git:*' user-commands flow:'provide high-level repository operations' diff --git a/.oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh b/.oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh deleted file mode 100644 index 4357c08..0000000 --- a/.oh-my-zsh/plugins/git-flow/git-flow.plugin.zsh +++ /dev/null @@ -1,355 +0,0 @@ -#!zsh -# -# Installation -# ------------ -# -# To achieve git-flow completion nirvana: -# -# 0. Update your zsh's git-completion module to the newest version. -# From here. http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD -# -# 1. Install this file. Either: -# -# a. Place it in your .zshrc: -# -# b. Or, copy it somewhere (e.g. ~/.git-flow-completion.zsh) and put the following line in -# your .zshrc: -# -# source ~/.git-flow-completion.zsh -# -# c. Or, use this file as an oh-my-zsh plugin. -# - -#Alias -alias gf='git flow' -alias gcd='git checkout develop' -alias gch='git checkout hotfix' -alias gcr='git checkout release' - -_git-flow () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'init:Initialize a new git repo with support for the branching model.' - 'feature:Manage your feature branches.' - 'release:Manage your release branches.' - 'hotfix:Manage your hotfix branches.' - 'support:Manage your support branches.' - 'version:Shows version information.' - ) - _describe -t commands 'git flow' subcommands - ;; - - (options) - case $line[1] in - - (init) - _arguments \ - -f'[Force setting of gitflow branches, even if already configured]' - ;; - - (version) - ;; - - (hotfix) - __git-flow-hotfix - ;; - - (release) - __git-flow-release - ;; - - (feature) - __git-flow-feature - ;; - esac - ;; - esac -} - -__git-flow-release () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new release branch.' - 'finish:Finish a release branch.' - 'list:List all your release branches. (Alias to `git flow release`)' - 'publish: public' - 'track: track' - ) - _describe -t commands 'git flow release' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':version:__git_flow_version_list' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -s'[Sign the release tag cryptographically]'\ - -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' - ;; - - (publish) - _arguments \ - ':version:__git_flow_version_list'\ - ;; - - (track) - _arguments \ - ':version:__git_flow_version_list'\ - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git-flow-hotfix () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new hotfix branch.' - 'finish:Finish a hotfix branch.' - 'list:List all your hotfix branches. (Alias to `git flow hotfix`)' - ) - _describe -t commands 'git flow hotfix' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':hotfix:__git_flow_version_list'\ - ':branch-name:__git_branch_names' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -s'[Sign the release tag cryptographically]'\ - -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' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git-flow-feature () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new feature branch.' - 'finish:Finish a feature branch.' - 'list:List all your feature branches. (Alias to `git flow feature`)' - 'publish: publish' - 'track: track' - 'diff: diff' - 'rebase: rebase' - 'checkout: checkout' - 'pull: pull' - ) - _describe -t commands 'git flow feature' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':feature:__git_flow_feature_list'\ - ':branch-name:__git_branch_names' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -r'[Rebase instead of merge]'\ - -k'[Keep branch after performing finish]'\ - ':feature:__git_flow_feature_list' - ;; - - (publish) - _arguments \ - ':feature:__git_flow_feature_list'\ - ;; - - (track) - _arguments \ - ':feature:__git_flow_feature_list'\ - ;; - - (diff) - _arguments \ - ':branch:__git_flow_feature_list'\ - ;; - - (rebase) - _arguments \ - -i'[Do an interactive rebase]' \ - ':branch:__git_flow_feature_list' - ;; - - (checkout) - _arguments \ - ':branch:__git_flow_feature_list'\ - ;; - - (pull) - _arguments \ - ':remote:__git_remotes'\ - ':branch:__git_flow_feature_list' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git_flow_version_list () -{ - local expl - declare -a versions - - versions=(${${(f)"$(_call_program versions git flow release list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted versions expl 'version' compadd $versions -} - -__git_flow_feature_list () -{ - local expl - declare -a features - - features=(${${(f)"$(_call_program features git flow feature list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted features expl 'feature' compadd $features -} - -__git_remotes () { - local expl gitdir remotes - - gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null) - __git_command_successful || return - - remotes=(${${(f)"$(_call_program remotes git config --get-regexp '"^remote\..*\.url$"')"}//#(#b)remote.(*).url */$match[1]}) - __git_command_successful || return - - # TODO: Should combine the two instead of either or. - if (( $#remotes > 0 )); then - _wanted remotes expl remote compadd $* - $remotes - else - _wanted remotes expl remote _files $* - -W "($gitdir/remotes)" -g "$gitdir/remotes/*" - fi -} - -__git_flow_hotfix_list () -{ - local expl - declare -a hotfixes - - hotfixes=(${${(f)"$(_call_program hotfixes git flow hotfix list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted hotfixes expl 'hotfix' compadd $hotfixes -} - -__git_branch_names () { - local expl - declare -a branch_names - - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/}) - __git_command_successful || return - - _wanted branch-names expl branch-name compadd $* - $branch_names -} - -__git_command_successful () { - if (( ${#pipestatus:#0} > 0 )); then - _message 'not a git repository' - return 1 - fi - return 0 -} - -zstyle ':completion:*:*:git:*' user-commands flow:'description for foo' diff --git a/.oh-my-zsh/plugins/git-hubflow/git-hubflow.plugin.zsh b/.oh-my-zsh/plugins/git-hubflow/git-hubflow.plugin.zsh deleted file mode 100644 index 4cf5b91..0000000 --- a/.oh-my-zsh/plugins/git-hubflow/git-hubflow.plugin.zsh +++ /dev/null @@ -1,348 +0,0 @@ -#!zsh -# -# Installation -# ------------ -# -# To achieve git-hubflow completion nirvana: -# -# 0. Update your zsh's git-completion module to the newest version. -# From here. http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD -# -# 1. Install this file. Either: -# -# a. Place it in your .zshrc: -# -# b. Or, copy it somewhere (e.g. ~/.git-hubflow-completion.zsh) and put the following line in -# your .zshrc: -# -# source ~/.git-hubflow-completion.zsh -# -# c. Or, use this file as an oh-my-zsh plugin. -# - -_git-hf () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'init:Initialize a new git repo with support for the branching model.' - 'feature:Manage your feature branches.' - 'release:Manage your release branches.' - 'hotfix:Manage your hotfix branches.' - 'support:Manage your support branches.' - 'update:Pull upstream changes down into your master and develop branches.' - 'version:Shows version information.' - ) - _describe -t commands 'git hf' subcommands - ;; - - (options) - case $line[1] in - - (init) - _arguments \ - -f'[Force setting of gitflow branches, even if already configured]' - ;; - - (version) - ;; - - (hotfix) - __git-hf-hotfix - ;; - - (release) - __git-hf-release - ;; - - (feature) - __git-hf-feature - ;; - esac - ;; - esac -} - -__git-hf-release () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new release branch.' - 'finish:Finish a release branch.' - 'list:List all your release branches. (Alias to `git hf release`)' - 'cancel:Cancel release' - 'push:Push release to github' - 'pull:Pull release from github' - 'track:Track release' - ) - _describe -t commands 'git hf release' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':version:__git_hf_version_list' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -s'[Sign the release tag cryptographically]'\ - -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_hf_version_list' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git-hf-hotfix () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'start:Start a new hotfix branch.' - 'finish:Finish a hotfix branch.' - 'list:List all your hotfix branches. (Alias to `git hf hotfix`)' - 'publish:Publish the hotfix branch.' - 'track:Track the hotfix branch.' - 'pull:Pull the hotfix from github.' - 'push:Push the hotfix to github.' - 'cancel:Cancel the hotfix.' - ) - _describe -t commands 'git hf hotfix' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':hotfix:__git_hf_version_list'\ - ':branch-name:__git_branch_names' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -s'[Sign the release tag cryptographically]'\ - -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_hf_hotfix_list' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git-hf-feature () -{ - local curcontext="$curcontext" state line - typeset -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' - - case $state in - (command) - - local -a subcommands - subcommands=( - 'list:List all your feature branches. (Alias to `git hf feature`)' - 'start:Start a new feature branch' - 'finish:Finish a feature branch' - 'submit:submit' - 'track:track' - 'diff:Diff' - 'rebase:Rebase feature branch against develop' - 'checkout:Checkout feature' - 'pull:Pull feature branch from github' - 'push:Push feature branch to github' - 'cancel:Cancel feature' - ) - _describe -t commands 'git hf feature' subcommands - _arguments \ - -v'[Verbose (more) output]' - ;; - - (options) - case $line[1] in - - (start) - _arguments \ - -F'[Fetch from origin before performing finish]'\ - ':feature:__git_hf_feature_list'\ - ':branch-name:__git_branch_names' - ;; - - (finish) - _arguments \ - -F'[Fetch from origin before performing finish]' \ - -r'[Rebase instead of merge]'\ - ':feature:__git_hf_feature_list' - ;; - - (publish) - _arguments \ - ':feature:__git_hf_feature_list'\ - ;; - - (track) - _arguments \ - ':feature:__git_hf_feature_list'\ - ;; - - (diff) - _arguments \ - ':branch:__git_branch_names'\ - ;; - - (rebase) - _arguments \ - -i'[Do an interactive rebase]' \ - ':branch:__git_branch_names' - ;; - - (checkout) - _arguments \ - ':branch:__git_hf_feature_list'\ - ;; - - (pull) - _arguments \ - ':remote:__git_remotes'\ - ':branch:__git_branch_names' - ;; - - *) - _arguments \ - -v'[Verbose (more) output]' - ;; - esac - ;; - esac -} - -__git_hf_version_list () -{ - local expl - declare -a versions - - versions=(${${(f)"$(_call_program versions git hf release list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted versions expl 'version' compadd $versions -} - -__git_hf_feature_list () -{ - local expl - declare -a features - - features=(${${(f)"$(_call_program features git hf feature list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted features expl 'feature' compadd $features -} - -__git_remotes () { - local expl gitdir remotes - - gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null) - __git_command_successful || return - - remotes=(${${(f)"$(_call_program remotes git config --get-regexp '"^remote\..*\.url$"')"}//#(#b)remote.(*).url */$match[1]}) - __git_command_successful || return - - # TODO: Should combine the two instead of either or. - if (( $#remotes > 0 )); then - _wanted remotes expl remote compadd $* - $remotes - else - _wanted remotes expl remote _files $* - -W "($gitdir/remotes)" -g "$gitdir/remotes/*" - fi -} - -__git_hf_hotfix_list () -{ - local expl - declare -a hotfixes - - hotfixes=(${${(f)"$(_call_program hotfixes git hf hotfix list 2> /dev/null | tr -d ' |*')"}}) - __git_command_successful || return - - _wanted hotfixes expl 'hotfix' compadd $hotfixes -} - -__git_branch_names () { - local expl - declare -a branch_names - - branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/}) - __git_command_successful || return - - _wanted branch-names expl branch-name compadd $* - $branch_names -} - -__git_command_successful () { - if (( ${#pipestatus:#0} > 0 )); then - _message 'not a git repository' - return 1 - fi - return 0 -} - -zstyle ':completion:*:*:git:*' user-commands flow:'description for foo' diff --git a/.oh-my-zsh/plugins/git-prompt/git-prompt.plugin.zsh b/.oh-my-zsh/plugins/git-prompt/git-prompt.plugin.zsh deleted file mode 100644 index d868a5f..0000000 --- a/.oh-my-zsh/plugins/git-prompt/git-prompt.plugin.zsh +++ /dev/null @@ -1,57 +0,0 @@ -# ZSH Git Prompt Plugin from: -# http://github.com/olivierverdier/zsh-git-prompt -# -export __GIT_PROMPT_DIR=$ZSH/plugins/git-prompt - -# Allow for functions in the prompt. -setopt PROMPT_SUBST - -## Enable auto-execution of functions. -typeset -ga preexec_functions -typeset -ga precmd_functions -typeset -ga chpwd_functions - -# Append git functions needed for prompt. -preexec_functions+='preexec_update_git_vars' -precmd_functions+='precmd_update_git_vars' -chpwd_functions+='chpwd_update_git_vars' - -## Function definitions -function preexec_update_git_vars() { - case "$2" in - git*) - __EXECUTED_GIT_COMMAND=1 - ;; - esac -} - -function precmd_update_git_vars() { - if [ -n "$__EXECUTED_GIT_COMMAND" ]; then - update_current_git_vars - unset __EXECUTED_GIT_COMMAND - fi -} - -function chpwd_update_git_vars() { - update_current_git_vars -} - -function update_current_git_vars() { - unset __CURRENT_GIT_STATUS - - local gitstatus="$__GIT_PROMPT_DIR/gitstatus.py" - _GIT_STATUS=`python ${gitstatus}` - __CURRENT_GIT_STATUS=("${(f)_GIT_STATUS}") -} - -function prompt_git_info() { - if [ -n "$__CURRENT_GIT_STATUS" ]; then - echo "(%{${fg[red]}%}$__CURRENT_GIT_STATUS[1]%{${fg[default]}%}$__CURRENT_GIT_STATUS[2]%{${fg[magenta]}%}$__CURRENT_GIT_STATUS[3]%{${fg[default]}%})" - fi -} - -# Set the prompt. -#PROMPT='%B%m%~%b$(prompt_git_info) %# ' -# for a right prompt: -#RPROMPT='%b$(prompt_git_info)' -RPROMPT='$(prompt_git_info)' diff --git a/.oh-my-zsh/plugins/git-prompt/gitstatus.py b/.oh-my-zsh/plugins/git-prompt/gitstatus.py deleted file mode 100644 index 2568414..0000000 --- a/.oh-my-zsh/plugins/git-prompt/gitstatus.py +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env python -# -*- coding: UTF-8 -*- -from subprocess import Popen, PIPE -import re - -# change those symbols to whatever you prefer -symbols = { - 'ahead of': '↑', - 'behind': '↓', - 'staged': '♦', - 'changed': '‣', - 'untracked': '…', - 'clean': '⚡', - 'unmerged': '≠', - 'sha1': ':' -} - -output, error = Popen( - ['git', 'status'], stdout=PIPE, stderr=PIPE, universal_newlines=True).communicate() - -if error: - import sys - sys.exit(0) -lines = output.splitlines() - -behead_re = re.compile( - r"^# Your branch is (ahead of|behind) '(.*)' by (\d+) commit") -diverge_re = re.compile(r"^# and have (\d+) and (\d+) different") - -status = '' -staged = re.compile(r'^# Changes to be committed:$', re.MULTILINE) -changed = re.compile(r'^# Changed but not updated:$', re.MULTILINE) -untracked = re.compile(r'^# Untracked files:$', re.MULTILINE) -unmerged = re.compile(r'^# Unmerged paths:$', re.MULTILINE) - - -def execute(*command): - out, err = Popen(stdout=PIPE, stderr=PIPE, *command).communicate() - if not err: - nb = len(out.splitlines()) - else: - nb = '?' - return nb - -if staged.search(output): - nb = execute( - ['git', 'diff', '--staged', '--name-only', '--diff-filter=ACDMRT']) - status += '%s%s' % (symbols['staged'], nb) -if unmerged.search(output): - nb = execute(['git', 'diff', '--staged', '--name-only', '--diff-filter=U']) - status += '%s%s' % (symbols['unmerged'], nb) -if changed.search(output): - nb = execute(['git', 'diff', '--name-only', '--diff-filter=ACDMRT']) - status += '%s%s' % (symbols['changed'], nb) -if untracked.search(output): - status += symbols['untracked'] -if status == '': - status = symbols['clean'] - -remote = '' - -bline = lines[0] -if bline.find('Not currently on any branch') != -1: - branch = symbols['sha1'] + Popen([ - 'git', - 'rev-parse', - '--short', - 'HEAD'], stdout=PIPE).communicate()[0][:-1] -else: - branch = bline.split(' ')[-1] - bstatusline = lines[1] - match = behead_re.match(bstatusline) - if match: - remote = symbols[match.groups()[0]] - remote += match.groups()[2] - elif lines[2:]: - div_match = diverge_re.match(lines[2]) - if div_match: - remote = "{behind}{1}{ahead of}{0}".format( - *div_match.groups(), **symbols) - -print('\n'.join([branch, remote, status])) diff --git a/.oh-my-zsh/plugins/git-remote-branch/git-remote-branch.plugin.zsh b/.oh-my-zsh/plugins/git-remote-branch/git-remote-branch.plugin.zsh deleted file mode 100644 index 6c5ab8f..0000000 --- a/.oh-my-zsh/plugins/git-remote-branch/git-remote-branch.plugin.zsh +++ /dev/null @@ -1,19 +0,0 @@ -_git_remote_branch() { - ref=$(git symbolic-ref HEAD 2> /dev/null) - if [[ -n $ref ]]; then - if (( CURRENT == 2 )); then - # first arg: operation - compadd create publish rename delete track - elif (( CURRENT == 3 )); then - # second arg: remote branch name - remotes=`git remote | tr '\n' '|' | sed "s/\|$//g"` - compadd `git branch -r | grep -v HEAD | sed "s/$remotes\///" | sed "s/ //g"` - elif (( CURRENT == 4 )); then - # third arg: remote name - compadd `git remote` - fi - else; - _files - fi -} -compdef _git_remote_branch grb diff --git a/.oh-my-zsh/plugins/git/README.md b/.oh-my-zsh/plugins/git/README.md deleted file mode 100644 index 8462dda..0000000 --- a/.oh-my-zsh/plugins/git/README.md +++ /dev/null @@ -1,4 +0,0 @@ -## git -**Maintainer:** [Stibbons](https://github.com/Stibbons) - -This plugin adds several git aliases and increase the completion function provided by zsh diff --git a/.oh-my-zsh/plugins/git/_git-branch b/.oh-my-zsh/plugins/git/_git-branch deleted file mode 100644 index 6b9c1a4..0000000 --- a/.oh-my-zsh/plugins/git/_git-branch +++ /dev/null @@ -1,83 +0,0 @@ -#compdef git-branch - -_git-branch () -{ - declare l c m d - - l='--color --no-color -r -a --all -v --verbose --abbrev --no-abbrev' - c='-l -f --force -t --track --no-track --set-upstream --contains --merged --no-merged' - m='-m -M' - d='-d -D' - - declare -a dependent_creation_args - if (( words[(I)-r] == 0 )); then - dependent_creation_args=( - "($l $m $d): :__git_branch_names" - "::start-point:__git_revisions") - fi - - declare -a dependent_deletion_args - if (( words[(I)-d] || words[(I)-D] )); then - dependent_creation_args= - dependent_deletion_args=( - '-r[delete only remote-tracking branches]') - if (( words[(I)-r] )); then - dependent_deletion_args+='*: :__git_ignore_line_inside_arguments __git_remote_branch_names' - else - dependent_deletion_args+='*: :__git_ignore_line_inside_arguments __git_branch_names' - fi - fi - - declare -a dependent_modification_args - if (( words[(I)-m] || words[(I)-M] )); then - dependent_creation_args= - dependent_modification_args=( - ':old or new branch name:__git_branch_names' - '::new branch name:__git_branch_names') - fi - - _arguments -w -S -s \ - "($c $m $d --no-color :)--color=-[turn on branch coloring]:: :__git_color_whens" \ - "($c $m $d : --color)--no-color[turn off branch coloring]" \ - "($c $m -a --all)-r[list or delete only remote-tracking branches]" \ - "($c $m $d : -r)"{-a,--all}"[list both remote-tracking branches and local branches]" \ - "($c $m $d : -v --verbose)"{-v,--verbose}'[show SHA1 and commit subject line for each head]' \ - "($c $m $d :)--abbrev=[set minimum SHA1 display-length]: :__git_guard_number length" \ - "($c $m $d :)--no-abbrev[do not abbreviate sha1s]" \ - "($l $m $d)-l[create the branch's reflog]" \ - "($l $m $d -f --force)"{-f,--force}"[force the creation of a new branch]" \ - "($l $m $d -t --track)"{-t,--track}"[set up configuration so that pull merges from the start point]" \ - "($l $m $d)--no-track[override the branch.autosetupmerge configuration variable]" \ - "($l $m $d)--set-upstream[set up configuration so that pull merges]" \ - "($l $m $d)--contains=[only list branches which contain the specified commit]: :__git_committishs" \ - "($l $m $d)--merged=[only list branches which are fully contained by HEAD]: :__git_committishs" \ - "($l $m $d)--no-merged=[do not list branches which are fully contained by HEAD]: :__git_committishs" \ - $dependent_creation_args \ - "($l $c $d -M)-m[rename a branch and the corresponding reflog]" \ - "($l $c $d -m)-M[rename a branch even if the new branch-name already exists]" \ - $dependent_modification_args \ - "($l $c $m -D)-d[delete a fully merged branch]" \ - "($l $c $m -d)-D[delete a branch]" \ - $dependent_deletion_args -} - -(( $+functions[__git_ignore_line] )) || -__git_ignore_line () { - declare -a ignored - ignored=() - ((CURRENT > 1)) && - ignored+=(${line[1,CURRENT-1]//(#m)[\[\]()\\*?#<>~\^]/\\$MATCH}) - ((CURRENT < $#line)) && - ignored+=(${line[CURRENT+1,-1]//(#m)[\[\]()\\*?#<>~\^]/\\$MATCH}) - $* -F ignored -} - -(( $+functions[__git_ignore_line_inside_arguments] )) || -__git_ignore_line_inside_arguments () { - declare -a compadd_opts - - zparseopts -D -E -a compadd_opts V: J: 1 2 n f X: M: P: S: r: R: q F: - - __git_ignore_line $* $compadd_opts -} - diff --git a/.oh-my-zsh/plugins/git/_git-remote b/.oh-my-zsh/plugins/git/_git-remote deleted file mode 100644 index 4ba62a3..0000000 --- a/.oh-my-zsh/plugins/git/_git-remote +++ /dev/null @@ -1,74 +0,0 @@ -#compdef git-remote - -# NOTE: --track is undocumented. -# TODO: --track, -t, --master, and -m should take remote branches, I guess. -# NOTE: --master is undocumented. -# NOTE: --fetch is undocumented. -_git-remote () { - local curcontext=$curcontext state line - declare -A opt_args - - _arguments -C \ - ':command:->command' \ - '*::options:->options' && ret=0 - - case $state in - (command) - declare -a commands - - commands=( - 'add:add a new remote' - 'show:show information about a given remote' - 'prune:delete all stale tracking branches for a given remote' - 'update:fetch updates for a set of remotes' - 'rm:remove a remote from .git/config and all associated tracking branches' - 'rename:rename a remote from .git/config and update all associated tracking branches' - 'set-head:sets or deletes the default branch' - 'set-branches:changes the list of branches tracked by the named remote.' - 'set-url:changes URL remote points to.' - ) - - _describe -t commands 'sub-command' commands && ret=0 - ;; - (options) - case $line[1] in - (add) - _arguments \ - '*'{--track,-t}'[track given branch instead of default glob refspec]:branch:__git_branch_names' \ - '(--master -m)'{--master,-m}'[set the remote'\''s HEAD to point to given master branch]:branch:__git_branch_names' \ - '(--fetch -f)'{--fetch,-f}'[run git-fetch on the new remote after it has been created]' \ - ':branch name:__git_remotes' \ - ':url:_urls' && ret=0 - ;; - (show) - _arguments \ - '-n[do not contact the remote for a list of branches]' \ - ':remote:__git_remotes' && ret=0 - ;; - (prune) - _arguments \ - '(--dry-run -n)'{-n,--dry-run}'[do not actually prune, only list what would be done]' \ - ':remote:__git_remotes' && ret=0 - ;; - (update) - __git_remote-groups && ret=0 - ;; - (rm) - __git_remotes && ret=0 - ;; - (rename) - __git_remotes && ret=0 - ;; - (set-url) - _arguments \ - '*--push[manipulate push URLs]' \ - '(--add)--add[add URL]' \ - '(--delete)--delete[delete URLs]' \ - ':branch name:__git_remotes' \ - ':url:_urls' && ret=0 - ;; - - esac - ;; - esac -} diff --git a/.oh-my-zsh/plugins/git/git.plugin.zsh b/.oh-my-zsh/plugins/git/git.plugin.zsh deleted file mode 100644 index 9da4488..0000000 --- a/.oh-my-zsh/plugins/git/git.plugin.zsh +++ /dev/null @@ -1,177 +0,0 @@ -# Aliases -alias g='git' -compdef g=git -alias gst='git status' -compdef _git gst=git-status -alias gd='git diff' -compdef _git gd=git-diff -alias gdc='git diff --cached' -compdef _git gdc=git-diff -alias gdt='git diff-tree --no-commit-id --name-only -r' -compdef _git gdc=git diff-tree --no-commit-id --name-only -r -alias gl='git pull' -compdef _git gl=git-pull -alias gup='git pull --rebase' -compdef _git gup=git-fetch -alias gp='git push' -compdef _git gp=git-push -alias gd='git diff' -gdv() { git diff -w "$@" | view - } -compdef _git gdv=git-diff -alias gdt='git difftool' -alias gc='git commit -v' -compdef _git gc=git-commit -alias gc!='git commit -v --amend' -compdef _git gc!=git-commit -alias gca='git commit -v -a' -compdef _git gc=git-commit -alias gca!='git commit -v -a --amend' -compdef _git gca!=git-commit -alias gcmsg='git commit -m' -compdef _git gcmsg=git-commit -alias gco='git checkout' -compdef _git gco=git-checkout -alias gcm='git checkout master' -alias gr='git remote' -compdef _git gr=git-remote -alias grv='git remote -v' -compdef _git grv=git-remote -alias grmv='git remote rename' -compdef _git grmv=git-remote -alias grrm='git remote remove' -compdef _git grrm=git-remote -alias grset='git remote set-url' -compdef _git grset=git-remote -alias grup='git remote update' -compdef _git grset=git-remote -alias grbi='git rebase -i' -compdef _git grbi=git-rebase -alias grbc='git rebase --continue' -compdef _git grbc=git-rebase -alias grba='git rebase --abort' -compdef _git grba=git-rebase -alias gb='git branch' -compdef _git gb=git-branch -alias gba='git branch -a' -compdef _git gba=git-branch -alias gbr='git branch --remote' -alias gcount='git shortlog -sn' -compdef gcount=git -alias gcl='git config --list' -alias gcp='git cherry-pick' -compdef _git gcp=git-cherry-pick -alias glg='git log --stat --max-count=10' -compdef _git glg=git-log -alias glgg='git log --graph --max-count=10' -compdef _git glgg=git-log -alias glgga='git log --graph --decorate --all' -compdef _git glgga=git-log -alias glo='git log --oneline --decorate --color' -compdef _git glo=git-log -alias glog='git log --oneline --decorate --color --graph' -compdef _git glog=git-log -alias gss='git status -s' -compdef _git gss=git-status -alias ga='git add' -compdef _git ga=git-add -alias gap='git add --patch' -alias gaa='git add --all' -alias gm='git merge' -compdef _git gm=git-merge -alias grh='git reset HEAD' -alias grhh='git reset HEAD --hard' -alias gclean='git reset --hard && git clean -dfx' -alias gwc='git whatchanged -p --abbrev-commit --pretty=medium' - -# Sign and verify commits with GPG -alias gcs='git commit -S' -compdef _git gcs=git-commit -alias gsps='git show --pretty=short --show-signature' -compdef _git gsps=git-show - -# Sign and verify tags with GPG -alias gts='git tag -s' -compdef _git gts=git-tag -alias gvt='git verify-tag' -compdef _git gvt=git verify-tag - -#remove the gf alias -#alias gf='git ls-files | grep' - -alias gpoat='git push origin --all && git push origin --tags' -alias gmt='git mergetool --no-prompt' -compdef _git gmt=git-mergetool - -alias gg='git gui citool' -alias gga='git gui citool --amend' -alias gk='gitk --all --branches' - -alias gsts='git stash show --text' -alias gsta='git stash' -alias gstp='git stash pop' -alias gstd='git stash drop' - -# Will cd into the top of the current repository -# or submodule. -alias grt='cd $(git rev-parse --show-toplevel || echo ".")' - -# Git and svn mix -alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk' -compdef git-svn-dcommit-push=git - -alias gsr='git svn rebase' -alias gsd='git svn dcommit' -# -# Will return the current branch name -# Usage example: git pull origin $(current_branch) -# -function current_branch() { - ref=$(git symbolic-ref HEAD 2> /dev/null) || \ - ref=$(git rev-parse --short HEAD 2> /dev/null) || return - echo ${ref#refs/heads/} -} - -function current_repository() { - ref=$(git symbolic-ref HEAD 2> /dev/null) || \ - ref=$(git rev-parse --short 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 ggpur='git pull --rebase origin $(current_branch)' -compdef ggpur=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 - -# Pretty log messages -function _git_log_prettily(){ - if ! [ -z $1 ]; then - git log --pretty=$1 - fi -} -alias glp="_git_log_prettily" -compdef _git glp=git-log - -# Work In Progress (wip) -# These features allow to pause a branch development and switch to another one (wip) -# When you want to go back to work, just unwip it -# -# This function return a warning if the current branch is a wip -function work_in_progress() { - if $(git log -n 1 2>/dev/null | grep -q -c "\-\-wip\-\-"); then - echo "WIP!!" - fi -} -# these alias commit and uncomit wip branches -alias gwip='git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m "--wip--"' -alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1' - -# these alias ignore changes to file -alias gignore='git update-index --assume-unchanged' -alias gunignore='git update-index --no-assume-unchanged' -# list temporarily ignored files -alias gignored='git ls-files -v | grep "^[[:lower:]]"' diff --git a/.oh-my-zsh/plugins/gitfast/_git b/.oh-my-zsh/plugins/gitfast/_git deleted file mode 100644 index fac5e71..0000000 --- a/.oh-my-zsh/plugins/gitfast/_git +++ /dev/null @@ -1,216 +0,0 @@ -#compdef git gitk - -# zsh completion wrapper for git -# -# Copyright (c) 2012-2013 Felipe Contreras -# -# You need git's bash completion script installed somewhere, by default it -# would be the location bash-completion uses. -# -# If your script is somewhere else, you can configure it on your ~/.zshrc: -# -# zstyle ':completion:*:*:git:*' script ~/.git-completion.sh -# -# The recommended way to install this script is to copy to '~/.zsh/_git', and -# then add the following to your ~/.zshrc file: -# -# fpath=(~/.zsh $fpath) - -complete () -{ - # do nothing - return 0 -} - -zstyle -T ':completion:*:*:git:*' tag-order && \ - zstyle ':completion:*:*:git:*' tag-order 'common-commands' - -zstyle -s ":completion:*:*:git:*" script script -if [ -z "$script" ]; then - local -a locations - local e - locations=( - '/etc/bash_completion.d/git' # fedora, old debian - '/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian - '/usr/share/bash-completion/git' # gentoo - $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash - ) - for e in $locations; do - test -f $e && script="$e" && break - done -fi -ZSH_VERSION='' . "$script" - -__gitcomp () -{ - emulate -L zsh - - local cur_="${3-$cur}" - - case "$cur_" in - --*=) - ;; - *) - local c IFS=$' \t\n' - local -a array - for c in ${=1}; do - c="$c${4-}" - case $c in - --*=*|*.) ;; - *) c="$c " ;; - esac - array+=("$c") - done - compset -P '*[=:]' - compadd -Q -S '' -p "${2-}" -a -- array && _ret=0 - ;; - esac -} - -__gitcomp_nl () -{ - emulate -L zsh - - local IFS=$'\n' - compset -P '*[=:]' - compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0 -} - -__gitcomp_file () -{ - emulate -L zsh - - local IFS=$'\n' - compset -P '*[=:]' - compadd -Q -p "${2-}" -f -- ${=1} && _ret=0 -} - -__git_zsh_bash_func () -{ - emulate -L ksh - - local command=$1 - - local completion_func="_git_${command//-/_}" - declare -f $completion_func >/dev/null && $completion_func && return - - local expansion=$(__git_aliased_command "$command") - if [ -n "$expansion" ]; then - completion_func="_git_${expansion//-/_}" - declare -f $completion_func >/dev/null && $completion_func - fi -} - -__git_zsh_cmd_common () -{ - local -a list - list=( - add:'add file contents to the index' - bisect:'find by binary search the change that introduced a bug' - branch:'list, create, or delete branches' - checkout:'checkout a branch or paths to the working tree' - clone:'clone a repository into a new directory' - commit:'record changes to the repository' - diff:'show changes between commits, commit and working tree, etc' - fetch:'download objects and refs from another repository' - grep:'print lines matching a pattern' - init:'create an empty Git repository or reinitialize an existing one' - log:'show commit logs' - merge:'join two or more development histories together' - mv:'move or rename a file, a directory, or a symlink' - pull:'fetch from and merge with another repository or a local branch' - push:'update remote refs along with associated objects' - rebase:'forward-port local commits to the updated upstream head' - reset:'reset current HEAD to the specified state' - rm:'remove files from the working tree and from the index' - show:'show various types of objects' - status:'show the working tree status' - tag:'create, list, delete or verify a tag object signed with GPG') - _describe -t common-commands 'common commands' list && _ret=0 -} - -__git_zsh_cmd_alias () -{ - local -a list - list=(${${${(0)"$(git config -z --get-regexp '^alias\.')"}#alias.}%$'\n'*}) - _describe -t alias-commands 'aliases' list $* && _ret=0 -} - -__git_zsh_cmd_all () -{ - local -a list - emulate ksh -c __git_compute_all_commands - list=( ${=__git_all_commands} ) - _describe -t all-commands 'all commands' list && _ret=0 -} - -__git_zsh_main () -{ - local curcontext="$curcontext" state state_descr line - typeset -A opt_args - local -a orig_words - - orig_words=( ${words[@]} ) - - _arguments -C \ - '(-p --paginate --no-pager)'{-p,--paginate}'[pipe all output into ''less'']' \ - '(-p --paginate)--no-pager[do not pipe git output into a pager]' \ - '--git-dir=-[set the path to the repository]: :_directories' \ - '--bare[treat the repository as a bare repository]' \ - '(- :)--version[prints the git suite version]' \ - '--exec-path=-[path to where your core git programs are installed]:: :_directories' \ - '--html-path[print the path where git''s HTML documentation is installed]' \ - '--info-path[print the path where the Info files are installed]' \ - '--man-path[print the manpath (see `man(1)`) for the man pages]' \ - '--work-tree=-[set the path to the working tree]: :_directories' \ - '--namespace=-[set the git namespace]' \ - '--no-replace-objects[do not use replacement refs to replace git objects]' \ - '(- :)--help[prints the synopsis and a list of the most commonly used commands]: :->arg' \ - '(-): :->command' \ - '(-)*:: :->arg' && return - - case $state in - (command) - _alternative \ - 'alias-commands:alias:__git_zsh_cmd_alias' \ - 'common-commands:common:__git_zsh_cmd_common' \ - 'all-commands:all:__git_zsh_cmd_all' && _ret=0 - ;; - (arg) - local command="${words[1]}" __git_dir - - if (( $+opt_args[--bare] )); then - __git_dir='.' - else - __git_dir=${opt_args[--git-dir]} - fi - - (( $+opt_args[--help] )) && command='help' - - words=( ${orig_words[@]} ) - - __git_zsh_bash_func $command - ;; - esac -} - -_git () -{ - local _ret=1 - local cur cword prev - - cur=${words[CURRENT]} - prev=${words[CURRENT-1]} - let cword=CURRENT-1 - - if (( $+functions[__${service}_zsh_main] )); then - __${service}_zsh_main - else - emulate ksh -c __${service}_main - fi - - let _ret && _default && _ret=0 - return _ret -} - -_git diff --git a/.oh-my-zsh/plugins/gitfast/git-completion.bash b/.oh-my-zsh/plugins/gitfast/git-completion.bash deleted file mode 100644 index 5da920e..0000000 --- a/.oh-my-zsh/plugins/gitfast/git-completion.bash +++ /dev/null @@ -1,2663 +0,0 @@ -#!bash -# -# bash/zsh completion support for core Git. -# -# Copyright (C) 2006,2007 Shawn O. Pearce -# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). -# Distributed under the GNU General Public License, version 2.0. -# -# The contained completion routines provide support for completing: -# -# *) local and remote branch names -# *) local and remote tag names -# *) .git/remotes file names -# *) git 'subcommands' -# *) tree paths within 'ref:path/to/file' expressions -# *) file paths within current working directory and index -# *) common --long-options -# -# To use these routines: -# -# 1) Copy this file to somewhere (e.g. ~/.git-completion.sh). -# 2) Add the following line to your .bashrc/.zshrc: -# source ~/.git-completion.sh -# 3) Consider changing your PS1 to also show the current branch, -# see git-prompt.sh for details. - -case "$COMP_WORDBREAKS" in -*:*) : great ;; -*) COMP_WORDBREAKS="$COMP_WORDBREAKS:" -esac - -# __gitdir accepts 0 or 1 arguments (i.e., location) -# returns location of .git repo -__gitdir () -{ - if [ -z "${1-}" ]; then - if [ -n "${__git_dir-}" ]; then - echo "$__git_dir" - elif [ -n "${GIT_DIR-}" ]; then - test -d "${GIT_DIR-}" || return 1 - echo "$GIT_DIR" - elif [ -d .git ]; then - echo .git - else - git rev-parse --git-dir 2>/dev/null - fi - elif [ -d "$1/.git" ]; then - echo "$1/.git" - else - echo "$1" - fi -} - -# The following function is based on code from: -# -# bash_completion - programmable completion functions for bash 3.2+ -# -# Copyright © 2006-2008, Ian Macdonald -# © 2009-2010, Bash Completion Maintainers -# -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software Foundation, -# Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -# The latest version of this software can be obtained here: -# -# http://bash-completion.alioth.debian.org/ -# -# RELEASE: 2.x - -# This function can be used to access a tokenized list of words -# on the command line: -# -# __git_reassemble_comp_words_by_ref '=:' -# if test "${words_[cword_-1]}" = -w -# then -# ... -# fi -# -# The argument should be a collection of characters from the list of -# word completion separators (COMP_WORDBREAKS) to treat as ordinary -# characters. -# -# This is roughly equivalent to going back in time and setting -# COMP_WORDBREAKS to exclude those characters. The intent is to -# make option types like --date= and : easy to -# recognize by treating each shell word as a single token. -# -# It is best not to set COMP_WORDBREAKS directly because the value is -# shared with other completion scripts. By the time the completion -# function gets called, COMP_WORDS has already been populated so local -# changes to COMP_WORDBREAKS have no effect. -# -# Output: words_, cword_, cur_. - -__git_reassemble_comp_words_by_ref() -{ - local exclude i j first - # Which word separators to exclude? - exclude="${1//[^$COMP_WORDBREAKS]}" - cword_=$COMP_CWORD - if [ -z "$exclude" ]; then - words_=("${COMP_WORDS[@]}") - return - fi - # List of word completion separators has shrunk; - # re-assemble words to complete. - for ((i=0, j=0; i < ${#COMP_WORDS[@]}; i++, j++)); do - # Append each nonempty word consisting of just - # word separator characters to the current word. - first=t - while - [ $i -gt 0 ] && - [ -n "${COMP_WORDS[$i]}" ] && - # word consists of excluded word separators - [ "${COMP_WORDS[$i]//[^$exclude]}" = "${COMP_WORDS[$i]}" ] - do - # Attach to the previous token, - # unless the previous token is the command name. - if [ $j -ge 2 ] && [ -n "$first" ]; then - ((j--)) - fi - first= - words_[$j]=${words_[j]}${COMP_WORDS[i]} - if [ $i = $COMP_CWORD ]; then - cword_=$j - fi - if (($i < ${#COMP_WORDS[@]} - 1)); then - ((i++)) - else - # Done. - return - fi - done - words_[$j]=${words_[j]}${COMP_WORDS[i]} - if [ $i = $COMP_CWORD ]; then - cword_=$j - fi - done -} - -if ! type _get_comp_words_by_ref >/dev/null 2>&1; then -_get_comp_words_by_ref () -{ - local exclude cur_ words_ cword_ - if [ "$1" = "-n" ]; then - exclude=$2 - shift 2 - fi - __git_reassemble_comp_words_by_ref "$exclude" - cur_=${words_[cword_]} - while [ $# -gt 0 ]; do - case "$1" in - cur) - cur=$cur_ - ;; - prev) - prev=${words_[$cword_-1]} - ;; - words) - words=("${words_[@]}") - ;; - cword) - cword=$cword_ - ;; - esac - shift - done -} -fi - -__gitcompadd () -{ - local i=0 - for x in $1; do - if [[ "$x" == "$3"* ]]; then - COMPREPLY[i++]="$2$x$4" - fi - done -} - -# Generates completion reply, appending a space to possible completion words, -# if necessary. -# It accepts 1 to 4 arguments: -# 1: List of possible completion words. -# 2: A prefix to be added to each possible completion word (optional). -# 3: Generate possible completion matches for this word (optional). -# 4: A suffix to be appended to each possible completion word (optional). -__gitcomp () -{ - local cur_="${3-$cur}" - - case "$cur_" in - --*=) - ;; - *) - local c i=0 IFS=$' \t\n' - for c in $1; do - c="$c${4-}" - if [[ $c == "$cur_"* ]]; then - case $c in - --*=*|*.) ;; - *) c="$c " ;; - esac - COMPREPLY[i++]="${2-}$c" - fi - done - ;; - esac -} - -# Generates completion reply from newline-separated possible completion words -# by appending a space to all of them. -# It accepts 1 to 4 arguments: -# 1: List of possible completion words, separated by a single newline. -# 2: A prefix to be added to each possible completion word (optional). -# 3: Generate possible completion matches for this word (optional). -# 4: A suffix to be appended to each possible completion word instead of -# the default space (optional). If specified but empty, nothing is -# appended. -__gitcomp_nl () -{ - local IFS=$'\n' - __gitcompadd "$1" "${2-}" "${3-$cur}" "${4- }" -} - -# Generates completion reply with compgen from newline-separated possible -# completion filenames. -# It accepts 1 to 3 arguments: -# 1: List of possible completion filenames, separated by a single newline. -# 2: A directory prefix to be added to each possible completion filename -# (optional). -# 3: Generate possible completion matches for this word (optional). -__gitcomp_file () -{ - local IFS=$'\n' - - # XXX does not work when the directory prefix contains a tilde, - # since tilde expansion is not applied. - # This means that COMPREPLY will be empty and Bash default - # completion will be used. - __gitcompadd "$1" "${2-}" "${3-$cur}" "" - - # use a hack to enable file mode in bash < 4 - compopt -o filenames +o nospace 2>/dev/null || - compgen -f /non-existing-dir/ > /dev/null -} - -# Execute 'git ls-files', unless the --committable option is specified, in -# which case it runs 'git diff-index' to find out the files that can be -# committed. It return paths relative to the directory specified in the first -# argument, and using the options specified in the second argument. -__git_ls_files_helper () -{ - ( - test -n "${CDPATH+set}" && unset CDPATH - cd "$1" - if [ "$2" == "--committable" ]; then - git diff-index --name-only --relative HEAD - else - # NOTE: $2 is not quoted in order to support multiple options - git ls-files --exclude-standard $2 - fi - ) 2>/dev/null -} - - -# __git_index_files accepts 1 or 2 arguments: -# 1: Options to pass to ls-files (required). -# 2: A directory path (optional). -# If provided, only files within the specified directory are listed. -# Sub directories are never recursed. Path must have a trailing -# slash. -__git_index_files () -{ - local dir="$(__gitdir)" root="${2-.}" file - - if [ -d "$dir" ]; then - __git_ls_files_helper "$root" "$1" | - while read -r file; do - case "$file" in - ?*/*) echo "${file%%/*}" ;; - *) echo "$file" ;; - esac - done | sort | uniq - fi -} - -__git_heads () -{ - local dir="$(__gitdir)" - if [ -d "$dir" ]; then - git --git-dir="$dir" for-each-ref --format='%(refname:short)' \ - refs/heads - return - fi -} - -__git_tags () -{ - local dir="$(__gitdir)" - if [ -d "$dir" ]; then - git --git-dir="$dir" for-each-ref --format='%(refname:short)' \ - refs/tags - return - fi -} - -# __git_refs accepts 0, 1 (to pass to __gitdir), or 2 arguments -# presence of 2nd argument means use the guess heuristic employed -# by checkout for tracking branches -__git_refs () -{ - local i hash dir="$(__gitdir "${1-}")" track="${2-}" - local format refs - if [ -d "$dir" ]; then - case "$cur" in - refs|refs/*) - format="refname" - refs="${cur%/*}" - track="" - ;; - *) - for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do - if [ -e "$dir/$i" ]; then echo $i; fi - done - format="refname:short" - refs="refs/tags refs/heads refs/remotes" - ;; - esac - git --git-dir="$dir" for-each-ref --format="%($format)" \ - $refs - if [ -n "$track" ]; then - # employ the heuristic used by git checkout - # Try to find a remote branch that matches the completion word - # but only output if the branch name is unique - local ref entry - git --git-dir="$dir" for-each-ref --shell --format="ref=%(refname:short)" \ - "refs/remotes/" | \ - while read -r entry; do - eval "$entry" - ref="${ref#*/}" - if [[ "$ref" == "$cur"* ]]; then - echo "$ref" - fi - done | sort | uniq -u - fi - return - fi - case "$cur" in - refs|refs/*) - git ls-remote "$dir" "$cur*" 2>/dev/null | \ - while read -r hash i; do - case "$i" in - *^{}) ;; - *) echo "$i" ;; - esac - done - ;; - *) - echo "HEAD" - git for-each-ref --format="%(refname:short)" -- "refs/remotes/$dir/" | sed -e "s#^$dir/##" - ;; - esac -} - -# __git_refs2 requires 1 argument (to pass to __git_refs) -__git_refs2 () -{ - local i - for i in $(__git_refs "$1"); do - echo "$i:$i" - done -} - -# __git_refs_remotes requires 1 argument (to pass to ls-remote) -__git_refs_remotes () -{ - local i hash - git ls-remote "$1" 'refs/heads/*' 2>/dev/null | \ - while read -r hash i; do - echo "$i:refs/remotes/$1/${i#refs/heads/}" - done -} - -__git_remotes () -{ - local i IFS=$'\n' d="$(__gitdir)" - test -d "$d/remotes" && ls -1 "$d/remotes" - for i in $(git --git-dir="$d" config --get-regexp 'remote\..*\.url' 2>/dev/null); do - i="${i#remote.}" - echo "${i/.url*/}" - done -} - -__git_list_merge_strategies () -{ - git merge -s help 2>&1 | - sed -n -e '/[Aa]vailable strategies are: /,/^$/{ - s/\.$// - s/.*:// - s/^[ ]*// - s/[ ]*$// - p - }' -} - -__git_merge_strategies= -# 'git merge -s help' (and thus detection of the merge strategy -# list) fails, unfortunately, if run outside of any git working -# tree. __git_merge_strategies is set to the empty string in -# that case, and the detection will be repeated the next time it -# is needed. -__git_compute_merge_strategies () -{ - test -n "$__git_merge_strategies" || - __git_merge_strategies=$(__git_list_merge_strategies) -} - -__git_complete_revlist_file () -{ - local pfx ls ref cur_="$cur" - case "$cur_" in - *..?*:*) - return - ;; - ?*:*) - ref="${cur_%%:*}" - cur_="${cur_#*:}" - case "$cur_" in - ?*/*) - pfx="${cur_%/*}" - cur_="${cur_##*/}" - ls="$ref:$pfx" - pfx="$pfx/" - ;; - *) - ls="$ref" - ;; - esac - - case "$COMP_WORDBREAKS" in - *:*) : great ;; - *) pfx="$ref:$pfx" ;; - esac - - __gitcomp_nl "$(git --git-dir="$(__gitdir)" ls-tree "$ls" 2>/dev/null \ - | sed '/^100... blob /{ - s,^.* ,, - s,$, , - } - /^120000 blob /{ - s,^.* ,, - s,$, , - } - /^040000 tree /{ - s,^.* ,, - s,$,/, - } - s/^.* //')" \ - "$pfx" "$cur_" "" - ;; - *...*) - pfx="${cur_%...*}..." - cur_="${cur_#*...}" - __gitcomp_nl "$(__git_refs)" "$pfx" "$cur_" - ;; - *..*) - pfx="${cur_%..*}.." - cur_="${cur_#*..}" - __gitcomp_nl "$(__git_refs)" "$pfx" "$cur_" - ;; - *) - __gitcomp_nl "$(__git_refs)" - ;; - esac -} - - -# __git_complete_index_file requires 1 argument: -# 1: the options to pass to ls-file -# -# The exception is --committable, which finds the files appropriate commit. -__git_complete_index_file () -{ - local pfx="" cur_="$cur" - - case "$cur_" in - ?*/*) - pfx="${cur_%/*}" - cur_="${cur_##*/}" - pfx="${pfx}/" - ;; - esac - - __gitcomp_file "$(__git_index_files "$1" "$pfx")" "$pfx" "$cur_" -} - -__git_complete_file () -{ - __git_complete_revlist_file -} - -__git_complete_revlist () -{ - __git_complete_revlist_file -} - -__git_complete_remote_or_refspec () -{ - local cur_="$cur" cmd="${words[1]}" - local i c=2 remote="" pfx="" lhs=1 no_complete_refspec=0 - if [ "$cmd" = "remote" ]; then - ((c++)) - fi - while [ $c -lt $cword ]; do - i="${words[c]}" - case "$i" in - --mirror) [ "$cmd" = "push" ] && no_complete_refspec=1 ;; - --all) - case "$cmd" in - push) no_complete_refspec=1 ;; - fetch) - return - ;; - *) ;; - esac - ;; - -*) ;; - *) remote="$i"; break ;; - esac - ((c++)) - done - if [ -z "$remote" ]; then - __gitcomp_nl "$(__git_remotes)" - return - fi - if [ $no_complete_refspec = 1 ]; then - return - fi - [ "$remote" = "." ] && remote= - case "$cur_" in - *:*) - case "$COMP_WORDBREAKS" in - *:*) : great ;; - *) pfx="${cur_%%:*}:" ;; - esac - cur_="${cur_#*:}" - lhs=0 - ;; - +*) - pfx="+" - cur_="${cur_#+}" - ;; - esac - case "$cmd" in - fetch) - if [ $lhs = 1 ]; then - __gitcomp_nl "$(__git_refs2 "$remote")" "$pfx" "$cur_" - else - __gitcomp_nl "$(__git_refs)" "$pfx" "$cur_" - fi - ;; - pull|remote) - if [ $lhs = 1 ]; then - __gitcomp_nl "$(__git_refs "$remote")" "$pfx" "$cur_" - else - __gitcomp_nl "$(__git_refs)" "$pfx" "$cur_" - fi - ;; - push) - if [ $lhs = 1 ]; then - __gitcomp_nl "$(__git_refs)" "$pfx" "$cur_" - else - __gitcomp_nl "$(__git_refs "$remote")" "$pfx" "$cur_" - fi - ;; - esac -} - -__git_complete_strategy () -{ - __git_compute_merge_strategies - case "$prev" in - -s|--strategy) - __gitcomp "$__git_merge_strategies" - return 0 - esac - case "$cur" in - --strategy=*) - __gitcomp "$__git_merge_strategies" "" "${cur##--strategy=}" - return 0 - ;; - esac - return 1 -} - -__git_commands () { - if test -n "${GIT_TESTING_COMMAND_COMPLETION:-}" - then - printf "%s" "${GIT_TESTING_COMMAND_COMPLETION}" - else - git help -a|egrep '^ [a-zA-Z0-9]' - fi -} - -__git_list_all_commands () -{ - local i IFS=" "$'\n' - for i in $(__git_commands) - do - case $i in - *--*) : helper pattern;; - *) echo $i;; - esac - done -} - -__git_all_commands= -__git_compute_all_commands () -{ - test -n "$__git_all_commands" || - __git_all_commands=$(__git_list_all_commands) -} - -__git_list_porcelain_commands () -{ - local i IFS=" "$'\n' - __git_compute_all_commands - for i in $__git_all_commands - do - case $i in - *--*) : helper pattern;; - applymbox) : ask gittus;; - applypatch) : ask gittus;; - archimport) : import;; - cat-file) : plumbing;; - check-attr) : plumbing;; - check-ignore) : plumbing;; - check-mailmap) : plumbing;; - check-ref-format) : plumbing;; - checkout-index) : plumbing;; - commit-tree) : plumbing;; - count-objects) : infrequent;; - credential-cache) : credentials helper;; - credential-store) : credentials helper;; - cvsexportcommit) : export;; - cvsimport) : import;; - cvsserver) : daemon;; - daemon) : daemon;; - diff-files) : plumbing;; - diff-index) : plumbing;; - diff-tree) : plumbing;; - fast-import) : import;; - fast-export) : export;; - fsck-objects) : plumbing;; - fetch-pack) : plumbing;; - fmt-merge-msg) : plumbing;; - for-each-ref) : plumbing;; - hash-object) : plumbing;; - http-*) : transport;; - index-pack) : plumbing;; - init-db) : deprecated;; - local-fetch) : plumbing;; - lost-found) : infrequent;; - ls-files) : plumbing;; - ls-remote) : plumbing;; - ls-tree) : plumbing;; - mailinfo) : plumbing;; - mailsplit) : plumbing;; - merge-*) : plumbing;; - mktree) : plumbing;; - mktag) : plumbing;; - pack-objects) : plumbing;; - pack-redundant) : plumbing;; - pack-refs) : plumbing;; - parse-remote) : plumbing;; - patch-id) : plumbing;; - peek-remote) : plumbing;; - prune) : plumbing;; - prune-packed) : plumbing;; - quiltimport) : import;; - read-tree) : plumbing;; - receive-pack) : plumbing;; - remote-*) : transport;; - repo-config) : deprecated;; - rerere) : plumbing;; - rev-list) : plumbing;; - rev-parse) : plumbing;; - runstatus) : plumbing;; - sh-setup) : internal;; - shell) : daemon;; - show-ref) : plumbing;; - send-pack) : plumbing;; - show-index) : plumbing;; - ssh-*) : transport;; - stripspace) : plumbing;; - symbolic-ref) : plumbing;; - tar-tree) : deprecated;; - unpack-file) : plumbing;; - unpack-objects) : plumbing;; - update-index) : plumbing;; - update-ref) : plumbing;; - update-server-info) : daemon;; - upload-archive) : plumbing;; - upload-pack) : plumbing;; - write-tree) : plumbing;; - var) : infrequent;; - verify-pack) : infrequent;; - verify-tag) : plumbing;; - *) echo $i;; - esac - done -} - -__git_porcelain_commands= -__git_compute_porcelain_commands () -{ - __git_compute_all_commands - test -n "$__git_porcelain_commands" || - __git_porcelain_commands=$(__git_list_porcelain_commands) -} - -__git_pretty_aliases () -{ - local i IFS=$'\n' - for i in $(git --git-dir="$(__gitdir)" config --get-regexp "pretty\..*" 2>/dev/null); do - case "$i" in - pretty.*) - i="${i#pretty.}" - echo "${i/ */}" - ;; - esac - done -} - -__git_aliases () -{ - local i IFS=$'\n' - for i in $(git --git-dir="$(__gitdir)" config --get-regexp "alias\..*" 2>/dev/null); do - case "$i" in - alias.*) - i="${i#alias.}" - echo "${i/ */}" - ;; - esac - done -} - -# __git_aliased_command requires 1 argument -__git_aliased_command () -{ - local word cmdline=$(git --git-dir="$(__gitdir)" \ - config --get "alias.$1") - for word in $cmdline; do - case "$word" in - \!gitk|gitk) - echo "gitk" - return - ;; - \!*) : shell command alias ;; - -*) : option ;; - *=*) : setting env ;; - git) : git itself ;; - *) - echo "$word" - return - esac - done -} - -# __git_find_on_cmdline requires 1 argument -__git_find_on_cmdline () -{ - local word subcommand c=1 - while [ $c -lt $cword ]; do - word="${words[c]}" - for subcommand in $1; do - if [ "$subcommand" = "$word" ]; then - echo "$subcommand" - return - fi - done - ((c++)) - done -} - -__git_has_doubledash () -{ - local c=1 - while [ $c -lt $cword ]; do - if [ "--" = "${words[c]}" ]; then - return 0 - fi - ((c++)) - done - return 1 -} - -# Try to count non option arguments passed on the command line for the -# specified git command. -# When options are used, it is necessary to use the special -- option to -# tell the implementation were non option arguments begin. -# XXX this can not be improved, since options can appear everywhere, as -# an example: -# git mv x -n y -# -# __git_count_arguments requires 1 argument: the git command executed. -__git_count_arguments () -{ - local word i c=0 - - # Skip "git" (first argument) - for ((i=1; i < ${#words[@]}; i++)); do - word="${words[i]}" - - case "$word" in - --) - # Good; we can assume that the following are only non - # option arguments. - ((c = 0)) - ;; - "$1") - # Skip the specified git command and discard git - # main options - ((c = 0)) - ;; - ?*) - ((c++)) - ;; - esac - done - - printf "%d" $c -} - -__git_whitespacelist="nowarn warn error error-all fix" - -_git_am () -{ - local dir="$(__gitdir)" - if [ -d "$dir"/rebase-apply ]; then - __gitcomp "--skip --continue --resolved --abort" - return - fi - case "$cur" in - --whitespace=*) - __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}" - return - ;; - --*) - __gitcomp " - --3way --committer-date-is-author-date --ignore-date - --ignore-whitespace --ignore-space-change - --interactive --keep --no-utf8 --signoff --utf8 - --whitespace= --scissors - " - return - esac -} - -_git_apply () -{ - case "$cur" in - --whitespace=*) - __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}" - return - ;; - --*) - __gitcomp " - --stat --numstat --summary --check --index - --cached --index-info --reverse --reject --unidiff-zero - --apply --no-add --exclude= - --ignore-whitespace --ignore-space-change - --whitespace= --inaccurate-eof --verbose - " - return - esac -} - -_git_add () -{ - case "$cur" in - --*) - __gitcomp " - --interactive --refresh --patch --update --dry-run - --ignore-errors --intent-to-add - " - return - esac - - # XXX should we check for --update and --all options ? - __git_complete_index_file "--others --modified" -} - -_git_archive () -{ - case "$cur" in - --format=*) - __gitcomp "$(git archive --list)" "" "${cur##--format=}" - return - ;; - --remote=*) - __gitcomp_nl "$(__git_remotes)" "" "${cur##--remote=}" - return - ;; - --*) - __gitcomp " - --format= --list --verbose - --prefix= --remote= --exec= - " - return - ;; - esac - __git_complete_file -} - -_git_bisect () -{ - __git_has_doubledash && return - - local subcommands="start bad good skip reset visualize replay log run" - local subcommand="$(__git_find_on_cmdline "$subcommands")" - if [ -z "$subcommand" ]; then - if [ -f "$(__gitdir)"/BISECT_START ]; then - __gitcomp "$subcommands" - else - __gitcomp "replay start" - fi - return - fi - - case "$subcommand" in - bad|good|reset|skip|start) - __gitcomp_nl "$(__git_refs)" - ;; - *) - ;; - esac -} - -_git_branch () -{ - local i c=1 only_local_ref="n" has_r="n" - - while [ $c -lt $cword ]; do - i="${words[c]}" - case "$i" in - -d|-m) only_local_ref="y" ;; - -r) has_r="y" ;; - esac - ((c++)) - done - - case "$cur" in - --set-upstream-to=*) - __gitcomp "$(__git_refs)" "" "${cur##--set-upstream-to=}" - ;; - --*) - __gitcomp " - --color --no-color --verbose --abbrev= --no-abbrev - --track --no-track --contains --merged --no-merged - --set-upstream-to= --edit-description --list - --unset-upstream - " - ;; - *) - if [ $only_local_ref = "y" -a $has_r = "n" ]; then - __gitcomp_nl "$(__git_heads)" - else - __gitcomp_nl "$(__git_refs)" - fi - ;; - esac -} - -_git_bundle () -{ - local cmd="${words[2]}" - case "$cword" in - 2) - __gitcomp "create list-heads verify unbundle" - ;; - 3) - # looking for a file - ;; - *) - case "$cmd" in - create) - __git_complete_revlist - ;; - esac - ;; - esac -} - -_git_checkout () -{ - __git_has_doubledash && return - - case "$cur" in - --conflict=*) - __gitcomp "diff3 merge" "" "${cur##--conflict=}" - ;; - --*) - __gitcomp " - --quiet --ours --theirs --track --no-track --merge - --conflict= --orphan --patch - " - ;; - *) - # check if --track, --no-track, or --no-guess was specified - # if so, disable DWIM mode - local flags="--track --no-track --no-guess" track=1 - if [ -n "$(__git_find_on_cmdline "$flags")" ]; then - track='' - fi - __gitcomp_nl "$(__git_refs '' $track)" - ;; - esac -} - -_git_cherry () -{ - __gitcomp "$(__git_refs)" -} - -_git_cherry_pick () -{ - local dir="$(__gitdir)" - if [ -f "$dir"/CHERRY_PICK_HEAD ]; then - __gitcomp "--continue --quit --abort" - return - fi - case "$cur" in - --*) - __gitcomp "--edit --no-commit --signoff --strategy= --mainline" - ;; - *) - __gitcomp_nl "$(__git_refs)" - ;; - esac -} - -_git_clean () -{ - case "$cur" in - --*) - __gitcomp "--dry-run --quiet" - return - ;; - esac - - # XXX should we check for -x option ? - __git_complete_index_file "--others" -} - -_git_clone () -{ - case "$cur" in - --*) - __gitcomp " - --local - --no-hardlinks - --shared - --reference - --quiet - --no-checkout - --bare - --mirror - --origin - --upload-pack - --template= - --depth - --single-branch - --branch - " - return - ;; - esac -} - -_git_commit () -{ - case "$prev" in - -c|-C) - __gitcomp_nl "$(__git_refs)" "" "${cur}" - return - ;; - esac - - case "$cur" in - --cleanup=*) - __gitcomp "default strip verbatim whitespace - " "" "${cur##--cleanup=}" - return - ;; - --reuse-message=*|--reedit-message=*|\ - --fixup=*|--squash=*) - __gitcomp_nl "$(__git_refs)" "" "${cur#*=}" - return - ;; - --untracked-files=*) - __gitcomp "all no normal" "" "${cur##--untracked-files=}" - return - ;; - --*) - __gitcomp " - --all --author= --signoff --verify --no-verify - --edit --no-edit - --amend --include --only --interactive - --dry-run --reuse-message= --reedit-message= - --reset-author --file= --message= --template= - --cleanup= --untracked-files --untracked-files= - --verbose --quiet --fixup= --squash= - " - return - esac - - if git rev-parse --verify --quiet HEAD >/dev/null; then - __git_complete_index_file "--committable" - else - # This is the first commit - __git_complete_index_file "--cached" - fi -} - -_git_describe () -{ - case "$cur" in - --*) - __gitcomp " - --all --tags --contains --abbrev= --candidates= - --exact-match --debug --long --match --always - " - return - esac - __gitcomp_nl "$(__git_refs)" -} - -__git_diff_algorithms="myers minimal patience histogram" - -__git_diff_common_options="--stat --numstat --shortstat --summary - --patch-with-stat --name-only --name-status --color - --no-color --color-words --no-renames --check - --full-index --binary --abbrev --diff-filter= - --find-copies-harder - --text --ignore-space-at-eol --ignore-space-change - --ignore-all-space --exit-code --quiet --ext-diff - --no-ext-diff - --no-prefix --src-prefix= --dst-prefix= - --inter-hunk-context= - --patience --histogram --minimal - --raw --word-diff - --dirstat --dirstat= --dirstat-by-file - --dirstat-by-file= --cumulative - --diff-algorithm= -" - -_git_diff () -{ - __git_has_doubledash && return - - case "$cur" in - --diff-algorithm=*) - __gitcomp "$__git_diff_algorithms" "" "${cur##--diff-algorithm=}" - return - ;; - --*) - __gitcomp "--cached --staged --pickaxe-all --pickaxe-regex - --base --ours --theirs --no-index - $__git_diff_common_options - " - return - ;; - esac - __git_complete_revlist_file -} - -__git_mergetools_common="diffuse ecmerge emerge kdiff3 meld opendiff - tkdiff vimdiff gvimdiff xxdiff araxis p4merge bc3 codecompare -" - -_git_difftool () -{ - __git_has_doubledash && return - - case "$cur" in - --tool=*) - __gitcomp "$__git_mergetools_common kompare" "" "${cur##--tool=}" - return - ;; - --*) - __gitcomp "--cached --staged --pickaxe-all --pickaxe-regex - --base --ours --theirs - --no-renames --diff-filter= --find-copies-harder - --relative --ignore-submodules - --tool=" - return - ;; - esac - __git_complete_revlist_file -} - -__git_fetch_options=" - --quiet --verbose --append --upload-pack --force --keep --depth= - --tags --no-tags --all --prune --dry-run -" - -_git_fetch () -{ - case "$cur" in - --*) - __gitcomp "$__git_fetch_options" - return - ;; - esac - __git_complete_remote_or_refspec -} - -__git_format_patch_options=" - --stdout --attach --no-attach --thread --thread= --no-thread - --numbered --start-number --numbered-files --keep-subject --signoff - --signature --no-signature --in-reply-to= --cc= --full-index --binary - --not --all --cover-letter --no-prefix --src-prefix= --dst-prefix= - --inline --suffix= --ignore-if-in-upstream --subject-prefix= - --output-directory --reroll-count --to= --quiet --notes -" - -_git_format_patch () -{ - case "$cur" in - --thread=*) - __gitcomp " - deep shallow - " "" "${cur##--thread=}" - return - ;; - --*) - __gitcomp "$__git_format_patch_options" - return - ;; - esac - __git_complete_revlist -} - -_git_fsck () -{ - case "$cur" in - --*) - __gitcomp " - --tags --root --unreachable --cache --no-reflogs --full - --strict --verbose --lost-found - " - return - ;; - esac -} - -_git_gc () -{ - case "$cur" in - --*) - __gitcomp "--prune --aggressive" - return - ;; - esac -} - -_git_gitk () -{ - _gitk -} - -__git_match_ctag() { - awk "/^${1////\\/}/ { print \$1 }" "$2" -} - -_git_grep () -{ - __git_has_doubledash && return - - case "$cur" in - --*) - __gitcomp " - --cached - --text --ignore-case --word-regexp --invert-match - --full-name --line-number - --extended-regexp --basic-regexp --fixed-strings - --perl-regexp - --files-with-matches --name-only - --files-without-match - --max-depth - --count - --and --or --not --all-match - " - return - ;; - esac - - case "$cword,$prev" in - 2,*|*,-*) - if test -r tags; then - __gitcomp_nl "$(__git_match_ctag "$cur" tags)" - return - fi - ;; - esac - - __gitcomp_nl "$(__git_refs)" -} - -_git_help () -{ - case "$cur" in - --*) - __gitcomp "--all --info --man --web" - return - ;; - esac - __git_compute_all_commands - __gitcomp "$__git_all_commands $(__git_aliases) - attributes cli core-tutorial cvs-migration - diffcore gitk glossary hooks ignore modules - namespaces repository-layout tutorial tutorial-2 - workflows - " -} - -_git_init () -{ - case "$cur" in - --shared=*) - __gitcomp " - false true umask group all world everybody - " "" "${cur##--shared=}" - return - ;; - --*) - __gitcomp "--quiet --bare --template= --shared --shared=" - return - ;; - esac -} - -_git_ls_files () -{ - case "$cur" in - --*) - __gitcomp "--cached --deleted --modified --others --ignored - --stage --directory --no-empty-directory --unmerged - --killed --exclude= --exclude-from= - --exclude-per-directory= --exclude-standard - --error-unmatch --with-tree= --full-name - --abbrev --ignored --exclude-per-directory - " - return - ;; - esac - - # XXX ignore options like --modified and always suggest all cached - # files. - __git_complete_index_file "--cached" -} - -_git_ls_remote () -{ - __gitcomp_nl "$(__git_remotes)" -} - -_git_ls_tree () -{ - __git_complete_file -} - -# Options that go well for log, shortlog and gitk -__git_log_common_options=" - --not --all - --branches --tags --remotes - --first-parent --merges --no-merges - --max-count= - --max-age= --since= --after= - --min-age= --until= --before= - --min-parents= --max-parents= - --no-min-parents --no-max-parents -" -# Options that go well for log and gitk (not shortlog) -__git_log_gitk_options=" - --dense --sparse --full-history - --simplify-merges --simplify-by-decoration - --left-right --notes --no-notes -" -# Options that go well for log and shortlog (not gitk) -__git_log_shortlog_options=" - --author= --committer= --grep= - --all-match -" - -__git_log_pretty_formats="oneline short medium full fuller email raw format:" -__git_log_date_formats="relative iso8601 rfc2822 short local default raw" - -_git_log () -{ - __git_has_doubledash && return - - local g="$(git rev-parse --git-dir 2>/dev/null)" - local merge="" - if [ -f "$g/MERGE_HEAD" ]; then - merge="--merge" - fi - case "$cur" in - --pretty=*|--format=*) - __gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases) - " "" "${cur#*=}" - return - ;; - --date=*) - __gitcomp "$__git_log_date_formats" "" "${cur##--date=}" - return - ;; - --decorate=*) - __gitcomp "long short" "" "${cur##--decorate=}" - return - ;; - --*) - __gitcomp " - $__git_log_common_options - $__git_log_shortlog_options - $__git_log_gitk_options - --root --topo-order --date-order --reverse - --follow --full-diff - --abbrev-commit --abbrev= - --relative-date --date= - --pretty= --format= --oneline - --cherry-pick - --graph - --decorate --decorate= - --walk-reflogs - --parents --children - $merge - $__git_diff_common_options - --pickaxe-all --pickaxe-regex - " - return - ;; - esac - __git_complete_revlist -} - -__git_merge_options=" - --no-commit --no-stat --log --no-log --squash --strategy - --commit --stat --no-squash --ff --no-ff --ff-only --edit --no-edit -" - -_git_merge () -{ - __git_complete_strategy && return - - case "$cur" in - --*) - __gitcomp "$__git_merge_options" - return - esac - __gitcomp_nl "$(__git_refs)" -} - -_git_mergetool () -{ - case "$cur" in - --tool=*) - __gitcomp "$__git_mergetools_common tortoisemerge" "" "${cur##--tool=}" - return - ;; - --*) - __gitcomp "--tool=" - return - ;; - esac -} - -_git_merge_base () -{ - __gitcomp_nl "$(__git_refs)" -} - -_git_mv () -{ - case "$cur" in - --*) - __gitcomp "--dry-run" - return - ;; - esac - - if [ $(__git_count_arguments "mv") -gt 0 ]; then - # We need to show both cached and untracked files (including - # empty directories) since this may not be the last argument. - __git_complete_index_file "--cached --others --directory" - else - __git_complete_index_file "--cached" - fi -} - -_git_name_rev () -{ - __gitcomp "--tags --all --stdin" -} - -_git_notes () -{ - local subcommands='add append copy edit list prune remove show' - local subcommand="$(__git_find_on_cmdline "$subcommands")" - - case "$subcommand,$cur" in - ,--*) - __gitcomp '--ref' - ;; - ,*) - case "$prev" in - --ref) - __gitcomp_nl "$(__git_refs)" - ;; - *) - __gitcomp "$subcommands --ref" - ;; - esac - ;; - add,--reuse-message=*|append,--reuse-message=*|\ - add,--reedit-message=*|append,--reedit-message=*) - __gitcomp_nl "$(__git_refs)" "" "${cur#*=}" - ;; - add,--*|append,--*) - __gitcomp '--file= --message= --reedit-message= - --reuse-message=' - ;; - copy,--*) - __gitcomp '--stdin' - ;; - prune,--*) - __gitcomp '--dry-run --verbose' - ;; - prune,*) - ;; - *) - case "$prev" in - -m|-F) - ;; - *) - __gitcomp_nl "$(__git_refs)" - ;; - esac - ;; - esac -} - -_git_pull () -{ - __git_complete_strategy && return - - case "$cur" in - --*) - __gitcomp " - --rebase --no-rebase - $__git_merge_options - $__git_fetch_options - " - return - ;; - esac - __git_complete_remote_or_refspec -} - -_git_push () -{ - case "$prev" in - --repo) - __gitcomp_nl "$(__git_remotes)" - return - esac - case "$cur" in - --repo=*) - __gitcomp_nl "$(__git_remotes)" "" "${cur##--repo=}" - return - ;; - --*) - __gitcomp " - --all --mirror --tags --dry-run --force --verbose - --receive-pack= --repo= --set-upstream - " - return - ;; - esac - __git_complete_remote_or_refspec -} - -_git_rebase () -{ - local dir="$(__gitdir)" - if [ -d "$dir"/rebase-apply ] || [ -d "$dir"/rebase-merge ]; then - __gitcomp "--continue --skip --abort" - return - fi - __git_complete_strategy && return - case "$cur" in - --whitespace=*) - __gitcomp "$__git_whitespacelist" "" "${cur##--whitespace=}" - return - ;; - --*) - __gitcomp " - --onto --merge --strategy --interactive - --preserve-merges --stat --no-stat - --committer-date-is-author-date --ignore-date - --ignore-whitespace --whitespace= - --autosquash - " - - return - esac - __gitcomp_nl "$(__git_refs)" -} - -_git_reflog () -{ - local subcommands="show delete expire" - local subcommand="$(__git_find_on_cmdline "$subcommands")" - - if [ -z "$subcommand" ]; then - __gitcomp "$subcommands" - else - __gitcomp_nl "$(__git_refs)" - fi -} - -__git_send_email_confirm_options="always never auto cc compose" -__git_send_email_suppresscc_options="author self cc bodycc sob cccmd body all" - -_git_send_email () -{ - case "$cur" in - --confirm=*) - __gitcomp " - $__git_send_email_confirm_options - " "" "${cur##--confirm=}" - return - ;; - --suppress-cc=*) - __gitcomp " - $__git_send_email_suppresscc_options - " "" "${cur##--suppress-cc=}" - - return - ;; - --smtp-encryption=*) - __gitcomp "ssl tls" "" "${cur##--smtp-encryption=}" - return - ;; - --thread=*) - __gitcomp " - deep shallow - " "" "${cur##--thread=}" - return - ;; - --*) - __gitcomp "--annotate --bcc --cc --cc-cmd --chain-reply-to - --compose --confirm= --dry-run --envelope-sender - --from --identity - --in-reply-to --no-chain-reply-to --no-signed-off-by-cc - --no-suppress-from --no-thread --quiet - --signed-off-by-cc --smtp-pass --smtp-server - --smtp-server-port --smtp-encryption= --smtp-user - --subject --suppress-cc= --suppress-from --thread --to - --validate --no-validate - $__git_format_patch_options" - return - ;; - esac - __git_complete_revlist -} - -_git_stage () -{ - _git_add -} - -__git_config_get_set_variables () -{ - local prevword word config_file= c=$cword - while [ $c -gt 1 ]; do - word="${words[c]}" - case "$word" in - --system|--global|--local|--file=*) - config_file="$word" - break - ;; - -f|--file) - config_file="$word $prevword" - break - ;; - esac - prevword=$word - c=$((--c)) - done - - git --git-dir="$(__gitdir)" config $config_file --list 2>/dev/null | - while read -r line - do - case "$line" in - *.*=*) - echo "${line/=*/}" - ;; - esac - done -} - -_git_config () -{ - case "$prev" in - branch.*.remote|branch.*.pushremote) - __gitcomp_nl "$(__git_remotes)" - return - ;; - branch.*.merge) - __gitcomp_nl "$(__git_refs)" - return - ;; - branch.*.rebase) - __gitcomp "false true" - return - ;; - remote.pushdefault) - __gitcomp_nl "$(__git_remotes)" - return - ;; - remote.*.fetch) - local remote="${prev#remote.}" - remote="${remote%.fetch}" - if [ -z "$cur" ]; then - __gitcomp_nl "refs/heads/" "" "" "" - return - fi - __gitcomp_nl "$(__git_refs_remotes "$remote")" - return - ;; - remote.*.push) - local remote="${prev#remote.}" - remote="${remote%.push}" - __gitcomp_nl "$(git --git-dir="$(__gitdir)" \ - for-each-ref --format='%(refname):%(refname)' \ - refs/heads)" - return - ;; - pull.twohead|pull.octopus) - __git_compute_merge_strategies - __gitcomp "$__git_merge_strategies" - return - ;; - color.branch|color.diff|color.interactive|\ - color.showbranch|color.status|color.ui) - __gitcomp "always never auto" - return - ;; - color.pager) - __gitcomp "false true" - return - ;; - color.*.*) - __gitcomp " - normal black red green yellow blue magenta cyan white - bold dim ul blink reverse - " - return - ;; - diff.submodule) - __gitcomp "log short" - return - ;; - help.format) - __gitcomp "man info web html" - return - ;; - log.date) - __gitcomp "$__git_log_date_formats" - return - ;; - sendemail.aliasesfiletype) - __gitcomp "mutt mailrc pine elm gnus" - return - ;; - sendemail.confirm) - __gitcomp "$__git_send_email_confirm_options" - return - ;; - sendemail.suppresscc) - __gitcomp "$__git_send_email_suppresscc_options" - return - ;; - --get|--get-all|--unset|--unset-all) - __gitcomp_nl "$(__git_config_get_set_variables)" - return - ;; - *.*) - return - ;; - esac - case "$cur" in - --*) - __gitcomp " - --system --global --local --file= - --list --replace-all - --get --get-all --get-regexp - --add --unset --unset-all - --remove-section --rename-section - " - return - ;; - branch.*.*) - local pfx="${cur%.*}." cur_="${cur##*.}" - __gitcomp "remote pushremote merge mergeoptions rebase" "$pfx" "$cur_" - return - ;; - branch.*) - local pfx="${cur%.*}." cur_="${cur#*.}" - __gitcomp_nl "$(__git_heads)" "$pfx" "$cur_" "." - return - ;; - guitool.*.*) - local pfx="${cur%.*}." cur_="${cur##*.}" - __gitcomp " - argprompt cmd confirm needsfile noconsole norescan - prompt revprompt revunmerged title - " "$pfx" "$cur_" - return - ;; - difftool.*.*) - local pfx="${cur%.*}." cur_="${cur##*.}" - __gitcomp "cmd path" "$pfx" "$cur_" - return - ;; - man.*.*) - local pfx="${cur%.*}." cur_="${cur##*.}" - __gitcomp "cmd path" "$pfx" "$cur_" - return - ;; - mergetool.*.*) - local pfx="${cur%.*}." cur_="${cur##*.}" - __gitcomp "cmd path trustExitCode" "$pfx" "$cur_" - return - ;; - pager.*) - local pfx="${cur%.*}." cur_="${cur#*.}" - __git_compute_all_commands - __gitcomp_nl "$__git_all_commands" "$pfx" "$cur_" - return - ;; - remote.*.*) - local pfx="${cur%.*}." cur_="${cur##*.}" - __gitcomp " - url proxy fetch push mirror skipDefaultUpdate - receivepack uploadpack tagopt pushurl - " "$pfx" "$cur_" - return - ;; - remote.*) - local pfx="${cur%.*}." cur_="${cur#*.}" - __gitcomp_nl "$(__git_remotes)" "$pfx" "$cur_" "." - return - ;; - url.*.*) - local pfx="${cur%.*}." cur_="${cur##*.}" - __gitcomp "insteadOf pushInsteadOf" "$pfx" "$cur_" - return - ;; - esac - __gitcomp " - add.ignoreErrors - advice.commitBeforeMerge - advice.detachedHead - advice.implicitIdentity - advice.pushNonFastForward - advice.resolveConflict - advice.statusHints - alias. - am.keepcr - apply.ignorewhitespace - apply.whitespace - branch.autosetupmerge - branch.autosetuprebase - browser. - clean.requireForce - color.branch - color.branch.current - color.branch.local - color.branch.plain - color.branch.remote - color.decorate.HEAD - color.decorate.branch - color.decorate.remoteBranch - color.decorate.stash - color.decorate.tag - color.diff - color.diff.commit - color.diff.frag - color.diff.func - color.diff.meta - color.diff.new - color.diff.old - color.diff.plain - color.diff.whitespace - color.grep - color.grep.context - color.grep.filename - color.grep.function - color.grep.linenumber - color.grep.match - color.grep.selected - color.grep.separator - color.interactive - color.interactive.error - color.interactive.header - color.interactive.help - color.interactive.prompt - color.pager - color.showbranch - color.status - color.status.added - color.status.changed - color.status.header - color.status.nobranch - color.status.untracked - color.status.updated - color.ui - commit.status - commit.template - core.abbrev - core.askpass - core.attributesfile - core.autocrlf - core.bare - core.bigFileThreshold - core.compression - core.createObject - core.deltaBaseCacheLimit - core.editor - core.eol - core.excludesfile - core.fileMode - core.fsyncobjectfiles - core.gitProxy - core.ignoreStat - core.ignorecase - core.logAllRefUpdates - core.loosecompression - core.notesRef - core.packedGitLimit - core.packedGitWindowSize - core.pager - core.preferSymlinkRefs - core.preloadindex - core.quotepath - core.repositoryFormatVersion - core.safecrlf - core.sharedRepository - core.sparseCheckout - core.symlinks - core.trustctime - core.warnAmbiguousRefs - core.whitespace - core.worktree - diff.autorefreshindex - diff.external - diff.ignoreSubmodules - diff.mnemonicprefix - diff.noprefix - diff.renameLimit - diff.renames - diff.statGraphWidth - diff.submodule - diff.suppressBlankEmpty - diff.tool - diff.wordRegex - diff.algorithm - difftool. - difftool.prompt - fetch.recurseSubmodules - fetch.unpackLimit - format.attach - format.cc - format.headers - format.numbered - format.pretty - format.signature - format.signoff - format.subjectprefix - format.suffix - format.thread - format.to - gc. - gc.aggressiveWindow - gc.auto - gc.autopacklimit - gc.packrefs - gc.pruneexpire - gc.reflogexpire - gc.reflogexpireunreachable - gc.rerereresolved - gc.rerereunresolved - gitcvs.allbinary - gitcvs.commitmsgannotation - gitcvs.dbTableNamePrefix - gitcvs.dbdriver - gitcvs.dbname - gitcvs.dbpass - gitcvs.dbuser - gitcvs.enabled - gitcvs.logfile - gitcvs.usecrlfattr - guitool. - gui.blamehistoryctx - gui.commitmsgwidth - gui.copyblamethreshold - gui.diffcontext - gui.encoding - gui.fastcopyblame - gui.matchtrackingbranch - gui.newbranchtemplate - gui.pruneduringfetch - gui.spellingdictionary - gui.trustmtime - help.autocorrect - help.browser - help.format - http.lowSpeedLimit - http.lowSpeedTime - http.maxRequests - http.minSessions - http.noEPSV - http.postBuffer - http.proxy - http.sslCAInfo - http.sslCAPath - http.sslCert - http.sslCertPasswordProtected - http.sslKey - http.sslVerify - http.useragent - i18n.commitEncoding - i18n.logOutputEncoding - imap.authMethod - imap.folder - imap.host - imap.pass - imap.port - imap.preformattedHTML - imap.sslverify - imap.tunnel - imap.user - init.templatedir - instaweb.browser - instaweb.httpd - instaweb.local - instaweb.modulepath - instaweb.port - interactive.singlekey - log.date - log.decorate - log.showroot - mailmap.file - man. - man.viewer - merge. - merge.conflictstyle - merge.log - merge.renameLimit - merge.renormalize - merge.stat - merge.tool - merge.verbosity - mergetool. - mergetool.keepBackup - mergetool.keepTemporaries - mergetool.prompt - notes.displayRef - notes.rewrite. - notes.rewrite.amend - notes.rewrite.rebase - notes.rewriteMode - notes.rewriteRef - pack.compression - pack.deltaCacheLimit - pack.deltaCacheSize - pack.depth - pack.indexVersion - pack.packSizeLimit - pack.threads - pack.window - pack.windowMemory - pager. - pretty. - pull.octopus - pull.twohead - push.default - rebase.autosquash - rebase.stat - receive.autogc - receive.denyCurrentBranch - receive.denyDeleteCurrent - receive.denyDeletes - receive.denyNonFastForwards - receive.fsckObjects - receive.unpackLimit - receive.updateserverinfo - remote.pushdefault - remotes. - repack.usedeltabaseoffset - rerere.autoupdate - rerere.enabled - sendemail. - sendemail.aliasesfile - sendemail.aliasfiletype - sendemail.bcc - sendemail.cc - sendemail.cccmd - sendemail.chainreplyto - sendemail.confirm - sendemail.envelopesender - sendemail.from - sendemail.identity - sendemail.multiedit - sendemail.signedoffbycc - sendemail.smtpdomain - sendemail.smtpencryption - sendemail.smtppass - sendemail.smtpserver - sendemail.smtpserveroption - sendemail.smtpserverport - sendemail.smtpuser - sendemail.suppresscc - sendemail.suppressfrom - sendemail.thread - sendemail.to - sendemail.validate - showbranch.default - status.relativePaths - status.showUntrackedFiles - status.submodulesummary - submodule. - tar.umask - transfer.unpackLimit - url. - user.email - user.name - user.signingkey - web.browser - branch. remote. - " -} - -_git_remote () -{ - local subcommands="add rename remove set-head set-branches set-url show prune update" - local subcommand="$(__git_find_on_cmdline "$subcommands")" - if [ -z "$subcommand" ]; then - __gitcomp "$subcommands" - return - fi - - case "$subcommand" in - rename|remove|set-url|show|prune) - __gitcomp_nl "$(__git_remotes)" - ;; - set-head|set-branches) - __git_complete_remote_or_refspec - ;; - update) - local i c='' IFS=$'\n' - for i in $(git --git-dir="$(__gitdir)" config --get-regexp "remotes\..*" 2>/dev/null); do - i="${i#remotes.}" - c="$c ${i/ */}" - done - __gitcomp "$c" - ;; - *) - ;; - esac -} - -_git_replace () -{ - __gitcomp_nl "$(__git_refs)" -} - -_git_reset () -{ - __git_has_doubledash && return - - case "$cur" in - --*) - __gitcomp "--merge --mixed --hard --soft --patch" - return - ;; - esac - __gitcomp_nl "$(__git_refs)" -} - -_git_revert () -{ - case "$cur" in - --*) - __gitcomp "--edit --mainline --no-edit --no-commit --signoff" - return - ;; - esac - __gitcomp_nl "$(__git_refs)" -} - -_git_rm () -{ - case "$cur" in - --*) - __gitcomp "--cached --dry-run --ignore-unmatch --quiet" - return - ;; - esac - - __git_complete_index_file "--cached" -} - -_git_shortlog () -{ - __git_has_doubledash && return - - case "$cur" in - --*) - __gitcomp " - $__git_log_common_options - $__git_log_shortlog_options - --numbered --summary - " - return - ;; - esac - __git_complete_revlist -} - -_git_show () -{ - __git_has_doubledash && return - - case "$cur" in - --pretty=*|--format=*) - __gitcomp "$__git_log_pretty_formats $(__git_pretty_aliases) - " "" "${cur#*=}" - return - ;; - --diff-algorithm=*) - __gitcomp "$__git_diff_algorithms" "" "${cur##--diff-algorithm=}" - return - ;; - --*) - __gitcomp "--pretty= --format= --abbrev-commit --oneline - $__git_diff_common_options - " - return - ;; - esac - __git_complete_revlist_file -} - -_git_show_branch () -{ - case "$cur" in - --*) - __gitcomp " - --all --remotes --topo-order --current --more= - --list --independent --merge-base --no-name - --color --no-color - --sha1-name --sparse --topics --reflog - " - return - ;; - esac - __git_complete_revlist -} - -_git_stash () -{ - local save_opts='--keep-index --no-keep-index --quiet --patch' - local subcommands='save list show apply clear drop pop create branch' - local subcommand="$(__git_find_on_cmdline "$subcommands")" - if [ -z "$subcommand" ]; then - case "$cur" in - --*) - __gitcomp "$save_opts" - ;; - *) - if [ -z "$(__git_find_on_cmdline "$save_opts")" ]; then - __gitcomp "$subcommands" - fi - ;; - esac - else - case "$subcommand,$cur" in - save,--*) - __gitcomp "$save_opts" - ;; - apply,--*|pop,--*) - __gitcomp "--index --quiet" - ;; - show,--*|drop,--*|branch,--*) - ;; - show,*|apply,*|drop,*|pop,*|branch,*) - __gitcomp_nl "$(git --git-dir="$(__gitdir)" stash list \ - | sed -n -e 's/:.*//p')" - ;; - *) - ;; - esac - fi -} - -_git_submodule () -{ - __git_has_doubledash && return - - local subcommands="add status init deinit update summary foreach sync" - if [ -z "$(__git_find_on_cmdline "$subcommands")" ]; then - case "$cur" in - --*) - __gitcomp "--quiet --cached" - ;; - *) - __gitcomp "$subcommands" - ;; - esac - return - fi -} - -_git_svn () -{ - local subcommands=" - init fetch clone rebase dcommit log find-rev - set-tree commit-diff info create-ignore propget - proplist show-ignore show-externals branch tag blame - migrate mkdirs reset gc - " - local subcommand="$(__git_find_on_cmdline "$subcommands")" - if [ -z "$subcommand" ]; then - __gitcomp "$subcommands" - else - local remote_opts="--username= --config-dir= --no-auth-cache" - local fc_opts=" - --follow-parent --authors-file= --repack= - --no-metadata --use-svm-props --use-svnsync-props - --log-window-size= --no-checkout --quiet - --repack-flags --use-log-author --localtime - --ignore-paths= --include-paths= $remote_opts - " - local init_opts=" - --template= --shared= --trunk= --tags= - --branches= --stdlayout --minimize-url - --no-metadata --use-svm-props --use-svnsync-props - --rewrite-root= --prefix= --use-log-author - --add-author-from $remote_opts - " - local cmt_opts=" - --edit --rmdir --find-copies-harder --copy-similarity= - " - - case "$subcommand,$cur" in - fetch,--*) - __gitcomp "--revision= --fetch-all $fc_opts" - ;; - clone,--*) - __gitcomp "--revision= $fc_opts $init_opts" - ;; - init,--*) - __gitcomp "$init_opts" - ;; - dcommit,--*) - __gitcomp " - --merge --strategy= --verbose --dry-run - --fetch-all --no-rebase --commit-url - --revision --interactive $cmt_opts $fc_opts - " - ;; - set-tree,--*) - __gitcomp "--stdin $cmt_opts $fc_opts" - ;; - create-ignore,--*|propget,--*|proplist,--*|show-ignore,--*|\ - show-externals,--*|mkdirs,--*) - __gitcomp "--revision=" - ;; - log,--*) - __gitcomp " - --limit= --revision= --verbose --incremental - --oneline --show-commit --non-recursive - --authors-file= --color - " - ;; - rebase,--*) - __gitcomp " - --merge --verbose --strategy= --local - --fetch-all --dry-run $fc_opts - " - ;; - commit-diff,--*) - __gitcomp "--message= --file= --revision= $cmt_opts" - ;; - info,--*) - __gitcomp "--url" - ;; - branch,--*) - __gitcomp "--dry-run --message --tag" - ;; - tag,--*) - __gitcomp "--dry-run --message" - ;; - blame,--*) - __gitcomp "--git-format" - ;; - migrate,--*) - __gitcomp " - --config-dir= --ignore-paths= --minimize - --no-auth-cache --username= - " - ;; - reset,--*) - __gitcomp "--revision= --parent" - ;; - *) - ;; - esac - fi -} - -_git_tag () -{ - local i c=1 f=0 - while [ $c -lt $cword ]; do - i="${words[c]}" - case "$i" in - -d|-v) - __gitcomp_nl "$(__git_tags)" - return - ;; - -f) - f=1 - ;; - esac - ((c++)) - done - - case "$prev" in - -m|-F) - ;; - -*|tag) - if [ $f = 1 ]; then - __gitcomp_nl "$(__git_tags)" - fi - ;; - *) - __gitcomp_nl "$(__git_refs)" - ;; - esac -} - -_git_whatchanged () -{ - _git_log -} - -__git_main () -{ - local i c=1 command __git_dir - - while [ $c -lt $cword ]; do - i="${words[c]}" - case "$i" in - --git-dir=*) __git_dir="${i#--git-dir=}" ;; - --git-dir) ((c++)) ; __git_dir="${words[c]}" ;; - --bare) __git_dir="." ;; - --help) command="help"; break ;; - -c|--work-tree|--namespace) ((c++)) ;; - -*) ;; - *) command="$i"; break ;; - esac - ((c++)) - done - - if [ -z "$command" ]; then - case "$cur" in - --*) __gitcomp " - --paginate - --no-pager - --git-dir= - --bare - --version - --exec-path - --exec-path= - --html-path - --man-path - --info-path - --work-tree= - --namespace= - --no-replace-objects - --help - " - ;; - *) __git_compute_porcelain_commands - __gitcomp "$__git_porcelain_commands $(__git_aliases)" ;; - esac - return - fi - - local completion_func="_git_${command//-/_}" - declare -f $completion_func >/dev/null && $completion_func && return - - local expansion=$(__git_aliased_command "$command") - if [ -n "$expansion" ]; then - completion_func="_git_${expansion//-/_}" - declare -f $completion_func >/dev/null && $completion_func - fi -} - -__gitk_main () -{ - __git_has_doubledash && return - - local g="$(__gitdir)" - local merge="" - if [ -f "$g/MERGE_HEAD" ]; then - merge="--merge" - fi - case "$cur" in - --*) - __gitcomp " - $__git_log_common_options - $__git_log_gitk_options - $merge - " - return - ;; - esac - __git_complete_revlist -} - -if [[ -n ${ZSH_VERSION-} ]]; then - echo "WARNING: this script is deprecated, please see git-completion.zsh" 1>&2 - - autoload -U +X compinit && compinit - - __gitcomp () - { - emulate -L zsh - - local cur_="${3-$cur}" - - case "$cur_" in - --*=) - ;; - *) - local c IFS=$' \t\n' - local -a array - for c in ${=1}; do - c="$c${4-}" - case $c in - --*=*|*.) ;; - *) c="$c " ;; - esac - array[$#array+1]="$c" - done - compset -P '*[=:]' - compadd -Q -S '' -p "${2-}" -a -- array && _ret=0 - ;; - esac - } - - __gitcomp_nl () - { - emulate -L zsh - - local IFS=$'\n' - compset -P '*[=:]' - compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0 - } - - __gitcomp_file () - { - emulate -L zsh - - local IFS=$'\n' - compset -P '*[=:]' - compadd -Q -p "${2-}" -f -- ${=1} && _ret=0 - } - - _git () - { - local _ret=1 cur cword prev - cur=${words[CURRENT]} - prev=${words[CURRENT-1]} - let cword=CURRENT-1 - emulate ksh -c __${service}_main - let _ret && _default && _ret=0 - return _ret - } - - compdef _git git gitk - return -fi - -__git_func_wrap () -{ - local cur words cword prev - _get_comp_words_by_ref -n =: cur words cword prev - $1 -} - -# Setup completion for certain functions defined above by setting common -# variables and workarounds. -# This is NOT a public function; use at your own risk. -__git_complete () -{ - local wrapper="__git_wrap${2}" - eval "$wrapper () { __git_func_wrap $2 ; }" - complete -o bashdefault -o default -o nospace -F $wrapper $1 2>/dev/null \ - || complete -o default -o nospace -F $wrapper $1 -} - -# wrapper for backwards compatibility -_git () -{ - __git_wrap__git_main -} - -# wrapper for backwards compatibility -_gitk () -{ - __git_wrap__gitk_main -} - -__git_complete git __git_main -__git_complete gitk __gitk_main - -# The following are necessary only for Cygwin, and only are needed -# when the user has tab-completed the executable name and consequently -# included the '.exe' suffix. -# -if [ Cygwin = "$(uname -o 2>/dev/null)" ]; then -__git_complete git.exe __git_main -fi diff --git a/.oh-my-zsh/plugins/gitfast/git-prompt.sh b/.oh-my-zsh/plugins/gitfast/git-prompt.sh deleted file mode 100644 index a81ef5a..0000000 --- a/.oh-my-zsh/plugins/gitfast/git-prompt.sh +++ /dev/null @@ -1,445 +0,0 @@ -# bash/zsh git prompt support -# -# Copyright (C) 2006,2007 Shawn O. Pearce -# Distributed under the GNU General Public License, version 2.0. -# -# This script allows you to see repository status in your prompt. -# -# To enable: -# -# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). -# 2) Add the following line to your .bashrc/.zshrc: -# source ~/.git-prompt.sh -# 3a) Change your PS1 to call __git_ps1 as -# command-substitution: -# Bash: PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' -# ZSH: setopt PROMPT_SUBST ; PS1='[%n@%m %c$(__git_ps1 " (%s)")]\$ ' -# the optional argument will be used as format string. -# 3b) Alternatively, for a slightly faster prompt, __git_ps1 can -# be used for PROMPT_COMMAND in Bash or for precmd() in Zsh -# with two parameters,
 and , which are strings
-#        you would put in $PS1 before and after the status string
-#        generated by the git-prompt machinery.  e.g.
-#        Bash: PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "'
-#          will show username, at-sign, host, colon, cwd, then
-#          various status string, followed by dollar and SP, as
-#          your prompt.
-#        ZSH:  precmd () { __git_ps1 "%n" ":%~$ " "|%s" }
-#          will show username, pipe, then various status string,
-#          followed by colon, cwd, dollar and SP, as your prompt.
-#        Optionally, you can supply a third argument with a printf
-#        format string to finetune the output of the branch status
-#
-# The repository status will be displayed only if you are currently in a
-# git repository. The %s token is the placeholder for the shown status.
-#
-# The prompt status always includes the current branch name.
-#
-# In addition, if you set GIT_PS1_SHOWDIRTYSTATE to a nonempty value,
-# unstaged (*) and staged (+) changes will be shown next to the branch
-# name.  You can configure this per-repository with the
-# bash.showDirtyState variable, which defaults to true once
-# GIT_PS1_SHOWDIRTYSTATE is enabled.
-#
-# You can also see if currently something is stashed, by setting
-# GIT_PS1_SHOWSTASHSTATE to a nonempty value. If something is stashed,
-# then a '$' will be shown next to the branch name.
-#
-# If you would like to see if there're untracked files, then you can set
-# GIT_PS1_SHOWUNTRACKEDFILES to a nonempty value. If there're untracked
-# files, then a '%' will be shown next to the branch name.  You can
-# configure this per-repository with the bash.showUntrackedFiles
-# variable, which defaults to true once GIT_PS1_SHOWUNTRACKEDFILES is
-# enabled.
-#
-# If you would like to see the difference between HEAD and its upstream,
-# set GIT_PS1_SHOWUPSTREAM="auto".  A "<" indicates you are behind, ">"
-# indicates you are ahead, "<>" indicates you have diverged and "="
-# indicates that there is no difference. You can further control
-# behaviour by setting GIT_PS1_SHOWUPSTREAM to a space-separated list
-# of values:
-#
-#     verbose       show number of commits ahead/behind (+/-) upstream
-#     legacy        don't use the '--count' option available in recent
-#                   versions of git-rev-list
-#     git           always compare HEAD to @{upstream}
-#     svn           always compare HEAD to your SVN upstream
-#
-# By default, __git_ps1 will compare HEAD to your SVN upstream if it can
-# find one, or @{upstream} otherwise.  Once you have set
-# GIT_PS1_SHOWUPSTREAM, you can override it on a per-repository basis by
-# setting the bash.showUpstream config variable.
-#
-# If you would like to see more information about the identity of
-# commits checked out as a detached HEAD, set GIT_PS1_DESCRIBE_STYLE
-# to one of these values:
-#
-#     contains      relative to newer annotated tag (v1.6.3.2~35)
-#     branch        relative to newer tag or branch (master~4)
-#     describe      relative to older annotated tag (v1.6.3.1-13-gdd42c2f)
-#     default       exactly matching tag
-#
-# If you would like a colored hint about the current dirty state, set
-# GIT_PS1_SHOWCOLORHINTS to a nonempty value. The colors are based on
-# the colored output of "git status -sb" and are available only when
-# using __git_ps1 for PROMPT_COMMAND or precmd.
-
-# stores the divergence from upstream in $p
-# used by GIT_PS1_SHOWUPSTREAM
-__git_ps1_show_upstream ()
-{
-	local key value
-	local svn_remote svn_url_pattern count n
-	local upstream=git legacy="" verbose=""
-
-	svn_remote=()
-	# get some config options from git-config
-	local output="$(git config -z --get-regexp '^(svn-remote\..*\.url|bash\.showupstream)$' 2>/dev/null | tr '\0\n' '\n ')"
-	while read -r key value; do
-		case "$key" in
-		bash.showupstream)
-			GIT_PS1_SHOWUPSTREAM="$value"
-			if [[ -z "${GIT_PS1_SHOWUPSTREAM}" ]]; then
-				p=""
-				return
-			fi
-			;;
-		svn-remote.*.url)
-			svn_remote[$((${#svn_remote[@]} + 1))]="$value"
-			svn_url_pattern+="\\|$value"
-			upstream=svn+git # default upstream is SVN if available, else git
-			;;
-		esac
-	done <<< "$output"
-
-	# parse configuration values
-	for option in ${GIT_PS1_SHOWUPSTREAM}; do
-		case "$option" in
-		git|svn) upstream="$option" ;;
-		verbose) verbose=1 ;;
-		legacy)  legacy=1  ;;
-		esac
-	done
-
-	# Find our upstream
-	case "$upstream" in
-	git)    upstream="@{upstream}" ;;
-	svn*)
-		# get the upstream from the "git-svn-id: ..." in a commit message
-		# (git-svn uses essentially the same procedure internally)
-		local -a svn_upstream
-		svn_upstream=($(git log --first-parent -1 \
-					--grep="^git-svn-id: \(${svn_url_pattern#??}\)" 2>/dev/null))
-		if [[ 0 -ne ${#svn_upstream[@]} ]]; then
-			svn_upstream=${svn_upstream[${#svn_upstream[@]} - 2]}
-			svn_upstream=${svn_upstream%@*}
-			local n_stop="${#svn_remote[@]}"
-			for ((n=1; n <= n_stop; n++)); do
-				svn_upstream=${svn_upstream#${svn_remote[$n]}}
-			done
-
-			if [[ -z "$svn_upstream" ]]; then
-				# default branch name for checkouts with no layout:
-				upstream=${GIT_SVN_ID:-git-svn}
-			else
-				upstream=${svn_upstream#/}
-			fi
-		elif [[ "svn+git" = "$upstream" ]]; then
-			upstream="@{upstream}"
-		fi
-		;;
-	esac
-
-	# Find how many commits we are ahead/behind our upstream
-	if [[ -z "$legacy" ]]; then
-		count="$(git rev-list --count --left-right \
-				"$upstream"...HEAD 2>/dev/null)"
-	else
-		# produce equivalent output to --count for older versions of git
-		local commits
-		if commits="$(git rev-list --left-right "$upstream"...HEAD 2>/dev/null)"
-		then
-			local commit behind=0 ahead=0
-			for commit in $commits
-			do
-				case "$commit" in
-				"<"*) ((behind++)) ;;
-				*)    ((ahead++))  ;;
-				esac
-			done
-			count="$behind	$ahead"
-		else
-			count=""
-		fi
-	fi
-
-	# calculate the result
-	if [[ -z "$verbose" ]]; then
-		case "$count" in
-		"") # no upstream
-			p="" ;;
-		"0	0") # equal to upstream
-			p="=" ;;
-		"0	"*) # ahead of upstream
-			p=">" ;;
-		*"	0") # behind upstream
-			p="<" ;;
-		*)	    # diverged from upstream
-			p="<>" ;;
-		esac
-	else
-		case "$count" in
-		"") # no upstream
-			p="" ;;
-		"0	0") # equal to upstream
-			p=" u=" ;;
-		"0	"*) # ahead of upstream
-			p=" u+${count#0	}" ;;
-		*"	0") # behind upstream
-			p=" u-${count%	0}" ;;
-		*)	    # diverged from upstream
-			p=" u+${count#*	}-${count%	*}" ;;
-		esac
-	fi
-
-}
-
-# Helper function that is meant to be called from __git_ps1.  It
-# injects color codes into the appropriate gitstring variables used
-# to build a gitstring.
-__git_ps1_colorize_gitstring ()
-{
-	if [[ -n ${ZSH_VERSION-} ]]; then
-		local c_red='%F{red}'
-		local c_green='%F{green}'
-		local c_lblue='%F{blue}'
-		local c_clear='%f'
-	else
-		# Using \[ and \] around colors is necessary to prevent
-		# issues with command line editing/browsing/completion!
-		local c_red='\[\e[31m\]'
-		local c_green='\[\e[32m\]'
-		local c_lblue='\[\e[1;34m\]'
-		local c_clear='\[\e[0m\]'
-	fi
-	local bad_color=$c_red
-	local ok_color=$c_green
-	local flags_color="$c_lblue"
-
-	local branch_color=""
-	if [ $detached = no ]; then
-		branch_color="$ok_color"
-	else
-		branch_color="$bad_color"
-	fi
-	c="$branch_color$c"
-
-	z="$c_clear$z"
-	if [ "$w" = "*" ]; then
-		w="$bad_color$w"
-	fi
-	if [ -n "$i" ]; then
-		i="$ok_color$i"
-	fi
-	if [ -n "$s" ]; then
-		s="$flags_color$s"
-	fi
-	if [ -n "$u" ]; then
-		u="$bad_color$u"
-	fi
-	r="$c_clear$r"
-}
-
-# __git_ps1 accepts 0 or 1 arguments (i.e., format string)
-# when called from PS1 using command substitution
-# in this mode it prints text to add to bash PS1 prompt (includes branch name)
-#
-# __git_ps1 requires 2 or 3 arguments when called from PROMPT_COMMAND (pc)
-# in that case it _sets_ PS1. The arguments are parts of a PS1 string.
-# when two arguments are given, the first is prepended and the second appended
-# to the state string when assigned to PS1.
-# The optional third parameter will be used as printf format string to further
-# customize the output of the git-status string.
-# In this mode you can request colored hints using GIT_PS1_SHOWCOLORHINTS=true
-__git_ps1 ()
-{
-	local pcmode=no
-	local detached=no
-	local ps1pc_start='\u@\h:\w '
-	local ps1pc_end='\$ '
-	local printf_format=' (%s)'
-
-	case "$#" in
-		2|3)	pcmode=yes
-			ps1pc_start="$1"
-			ps1pc_end="$2"
-			printf_format="${3:-$printf_format}"
-		;;
-		0|1)	printf_format="${1:-$printf_format}"
-		;;
-		*)	return
-		;;
-	esac
-
-	local repo_info rev_parse_exit_code
-	repo_info="$(git rev-parse --git-dir --is-inside-git-dir \
-		--is-bare-repository --is-inside-work-tree \
-		--short HEAD 2>/dev/null)"
-	rev_parse_exit_code="$?"
-
-	if [ -z "$repo_info" ]; then
-		if [ $pcmode = yes ]; then
-			#In PC mode PS1 always needs to be set
-			PS1="$ps1pc_start$ps1pc_end"
-		fi
-		return
-	fi
-
-	local short_sha
-	if [ "$rev_parse_exit_code" = "0" ]; then
-		short_sha="${repo_info##*$'\n'}"
-		repo_info="${repo_info%$'\n'*}"
-	fi
-	local inside_worktree="${repo_info##*$'\n'}"
-	repo_info="${repo_info%$'\n'*}"
-	local bare_repo="${repo_info##*$'\n'}"
-	repo_info="${repo_info%$'\n'*}"
-	local inside_gitdir="${repo_info##*$'\n'}"
-	local g="${repo_info%$'\n'*}"
-
-	local r=""
-	local b=""
-	local step=""
-	local total=""
-	if [ -d "$g/rebase-merge" ]; then
-		read b 2>/dev/null <"$g/rebase-merge/head-name"
-		read step 2>/dev/null <"$g/rebase-merge/msgnum"
-		read total 2>/dev/null <"$g/rebase-merge/end"
-		if [ -f "$g/rebase-merge/interactive" ]; then
-			r="|REBASE-i"
-		else
-			r="|REBASE-m"
-		fi
-	else
-		if [ -d "$g/rebase-apply" ]; then
-			read step 2>/dev/null <"$g/rebase-apply/next"
-			read total 2>/dev/null <"$g/rebase-apply/last"
-			if [ -f "$g/rebase-apply/rebasing" ]; then
-				read b 2>/dev/null <"$g/rebase-apply/head-name"
-				r="|REBASE"
-			elif [ -f "$g/rebase-apply/applying" ]; then
-				r="|AM"
-			else
-				r="|AM/REBASE"
-			fi
-		elif [ -f "$g/MERGE_HEAD" ]; then
-			r="|MERGING"
-		elif [ -f "$g/CHERRY_PICK_HEAD" ]; then
-			r="|CHERRY-PICKING"
-		elif [ -f "$g/REVERT_HEAD" ]; then
-			r="|REVERTING"
-		elif [ -f "$g/BISECT_LOG" ]; then
-			r="|BISECTING"
-		fi
-
-		if [ -n "$b" ]; then
-			:
-		elif [ -h "$g/HEAD" ]; then
-			# symlink symbolic ref
-			b="$(git symbolic-ref HEAD 2>/dev/null)"
-		else
-			local head=""
-			if ! read head 2>/dev/null <"$g/HEAD"; then
-				if [ $pcmode = yes ]; then
-					PS1="$ps1pc_start$ps1pc_end"
-				fi
-				return
-			fi
-			# is it a symbolic ref?
-			b="${head#ref: }"
-			if [ "$head" = "$b" ]; then
-				detached=yes
-				b="$(
-				case "${GIT_PS1_DESCRIBE_STYLE-}" in
-				(contains)
-					git describe --contains HEAD ;;
-				(branch)
-					git describe --contains --all HEAD ;;
-				(describe)
-					git describe HEAD ;;
-				(* | default)
-					git describe --tags --exact-match HEAD ;;
-				esac 2>/dev/null)" ||
-
-				b="$short_sha..."
-				b="($b)"
-			fi
-		fi
-	fi
-
-	if [ -n "$step" ] && [ -n "$total" ]; then
-		r="$r $step/$total"
-	fi
-
-	local w=""
-	local i=""
-	local s=""
-	local u=""
-	local c=""
-	local p=""
-
-	if [ "true" = "$inside_gitdir" ]; then
-		if [ "true" = "$bare_repo" ]; then
-			c="BARE:"
-		else
-			b="GIT_DIR!"
-		fi
-	elif [ "true" = "$inside_worktree" ]; then
-		if [ -n "${GIT_PS1_SHOWDIRTYSTATE-}" ] &&
-		   [ "$(git config --bool bash.showDirtyState)" != "false" ]
-		then
-			git diff --no-ext-diff --quiet --exit-code || w="*"
-			if [ -n "$short_sha" ]; then
-				git diff-index --cached --quiet HEAD -- || i="+"
-			else
-				i="#"
-			fi
-		fi
-		if [ -n "${GIT_PS1_SHOWSTASHSTATE-}" ] &&
-		   [ -r "$g/refs/stash" ]; then
-			s="$"
-		fi
-
-		if [ -n "${GIT_PS1_SHOWUNTRACKEDFILES-}" ] &&
-		   [ "$(git config --bool bash.showUntrackedFiles)" != "false" ] &&
-		   git ls-files --others --exclude-standard --error-unmatch -- '*' >/dev/null 2>/dev/null
-		then
-			u="%${ZSH_VERSION+%}"
-		fi
-
-		if [ -n "${GIT_PS1_SHOWUPSTREAM-}" ]; then
-			__git_ps1_show_upstream
-		fi
-	fi
-
-	local z="${GIT_PS1_STATESEPARATOR-" "}"
-
-	# NO color option unless in PROMPT_COMMAND mode
-	if [ $pcmode = yes ] && [ -n "${GIT_PS1_SHOWCOLORHINTS-}" ]; then
-		__git_ps1_colorize_gitstring
-	fi
-
-	local f="$w$i$s$u"
-	local gitstring="$c${b##refs/heads/}${f:+$z$f}$r$p"
-
-	if [ $pcmode = yes ]; then
-		if [[ -n ${ZSH_VERSION-} ]]; then
-			gitstring=$(printf -- "$printf_format" "$gitstring")
-		else
-			printf -v gitstring -- "$printf_format" "$gitstring"
-		fi
-		PS1="$ps1pc_start$gitstring$ps1pc_end"
-	else
-		printf -- "$printf_format" "$gitstring"
-	fi
-}
diff --git a/.oh-my-zsh/plugins/gitfast/gitfast.plugin.zsh b/.oh-my-zsh/plugins/gitfast/gitfast.plugin.zsh
deleted file mode 100644
index dba1b13..0000000
--- a/.oh-my-zsh/plugins/gitfast/gitfast.plugin.zsh
+++ /dev/null
@@ -1,8 +0,0 @@
-dir=$(dirname $0)
-source $dir/../git/git.plugin.zsh
-source $dir/git-prompt.sh
-
-function git_prompt_info() {
-  dirty="$(parse_git_dirty)"
-  __git_ps1 "${ZSH_THEME_GIT_PROMPT_PREFIX//\%/%%}%s${dirty//\%/%%}${ZSH_THEME_GIT_PROMPT_SUFFIX//\%/%%}"
-}
diff --git a/.oh-my-zsh/plugins/github/_github b/.oh-my-zsh/plugins/github/_github
deleted file mode 100644
index 83e1713..0000000
--- a/.oh-my-zsh/plugins/github/_github
+++ /dev/null
@@ -1,40 +0,0 @@
-#compdef github
-#autoload
-
-# in order to make this work, you will need to have the github gem installed
-# http://github.com/defunkt/github-gem
-
-# github zsh completion, based on homebrew completion
-
-local -a _1st_arguments
-_1st_arguments=(
-  'browse:Open this repo in a web browser'
-  'clone:Clone a repo'
-  'config:Automatically set configuration info, or pass args to specify'
-  'create-from-local:Create a new GitHub repository from the current local repository'
-  'create:Create a new empty GitHub repository'
-  'fetch:Fetch from a remote to a local branch'
-  'fetch_all:Fetch all refs from a user'
-  'fork:Forks a GitHub repository'
-  'home:Open this repos master branch in a web browser'
-  'ignore:Ignore a SHA from github network commits'
-  'info:Info about this project'
-  'issues:Project issues tools'
-  'network:Project network tools - sub-commands : web [user], list, fetch, commits'
-  'open:Open the given user/project in a web browser'
-  'pull-request:Generate the text for a pull request'
-  'pull:Pull from a remote'
-  'search:Search GitHub for the given repository name'
-  'track:Track another users repository'
-)
-
-local expl
-local -a pkgs installed_pkgs
-
-_arguments \
-  '*:: :->subcmds' && return 0
-
-if (( CURRENT == 1 )); then
-  _describe -t commands "github subcommand" _1st_arguments
-  return
-fi
diff --git a/.oh-my-zsh/plugins/github/github.plugin.zsh b/.oh-my-zsh/plugins/github/github.plugin.zsh
deleted file mode 100644
index bd69b1b..0000000
--- a/.oh-my-zsh/plugins/github/github.plugin.zsh
+++ /dev/null
@@ -1,97 +0,0 @@
-# Setup hub function for git, if it is available; http://github.com/defunkt/hub
-if [ "$commands[(I)hub]" ] && [ "$commands[(I)ruby]" ]; then
-    # Autoload _git completion functions
-    if declare -f _git > /dev/null; then
-      _git
-    fi
-    
-    if declare -f _git_commands > /dev/null; then
-        _hub_commands=(
-            'alias:show shell instructions for wrapping git'
-            'pull-request:open a pull request on GitHub'
-            'fork:fork origin repo on GitHub'
-            'create:create new repo on GitHub for the current project'
-            'browse:browse the project on GitHub'
-            'compare:open GitHub compare view'
-        )
-        # Extend the '_git_commands' function with hub commands
-        eval "$(declare -f _git_commands | sed -e 's/base_commands=(/base_commands=(${_hub_commands} /')"
-    fi
-    # eval `hub alias -s zsh`
-    function git(){
-        if ! (( $+_has_working_hub  )); then
-            hub --version &> /dev/null
-            _has_working_hub=$(($? == 0))
-        fi
-        if (( $_has_working_hub )) ; then
-            hub "$@"
-        else
-            command git "$@"
-        fi
-    }
-fi
-
-# Functions #################################################################
-
-# https://github.com/dbb 
-
-
-# empty_gh [NAME_OF_REPO]
-#
-# Use this when creating a new repo from scratch.
-empty_gh() { # [NAME_OF_REPO]
-    repo=$1
-    ghuser=$(  git config github.user )
-
-    mkdir "$repo"
-    cd "$repo"
-    git init
-    touch README
-    git add README
-    git commit -m 'Initial commit.'
-    git remote add origin git@github.com:${ghuser}/${repo}.git
-    git push -u origin master
-}
-
-# new_gh [DIRECTORY]
-#
-# Use this when you have a directory that is not yet set up for git.
-# This function will add all non-hidden files to git.
-new_gh() { # [DIRECTORY]
-    cd "$1"
-    ghuser=$( git config github.user )
-
-    git init
-    # add all non-dot files
-    print '.*'"\n"'*~' >> .gitignore
-    git add ^.*
-    git commit -m 'Initial commit.'
-    git remote add origin git@github.com:${ghuser}/${repo}.git
-    git push -u origin master
-}
-
-# exist_gh [DIRECTORY]
-#
-# Use this when you have a git repo that's ready to go and you want to add it
-# to your GitHub.
-exist_gh() { # [DIRECTORY]
-    cd "$1"
-    name=$( git config user.name )
-    ghuser=$( git config github.user )
-    repo=$1
-
-    git remote add origin git@github.com:${ghuser}/${repo}.git
-    git push -u origin master
-}
-
-# git.io "GitHub URL"
-#
-# Shorten GitHub url, example:
-#   https://github.com/nvogel/dotzsh    >   http://git.io/8nU25w  
-# source: https://github.com/nvogel/dotzsh
-# documentation: https://github.com/blog/985-git-io-github-url-shortener
-#
-git.io() {curl -i -s http://git.io -F "url=$1" | grep "Location" | cut -f 2 -d " "}
-
-# End Functions #############################################################
-
diff --git a/.oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh b/.oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
deleted file mode 100644
index 481d487..0000000
--- a/.oh-my-zsh/plugins/gitignore/gitignore.plugin.zsh
+++ /dev/null
@@ -1,12 +0,0 @@
-function gi() { curl -sL https://www.gitignore.io/api/$@ ;}
-
-_gitignoreio_get_command_list() {
-  curl -sL https://www.gitignore.io/api/list | tr "," "\n"
-}
-
-_gitignoreio () {
-  compset -P '*,'
-  compadd -S '' `_gitignoreio_get_command_list`
-}
-
-compdef _gitignoreio gi
diff --git a/.oh-my-zsh/plugins/glassfish/_asadmin b/.oh-my-zsh/plugins/glassfish/_asadmin
deleted file mode 100644
index a6a7af5..0000000
--- a/.oh-my-zsh/plugins/glassfish/_asadmin
+++ /dev/null
@@ -1,1150 +0,0 @@
-#compdef asadmin
-#autoload
-
-local -a _1st_arguments
-_1st_arguments=(
-    "add-library:adds one or more library JAR files to GlassFish Server"
-    "add-resources:creates the resources specified in an XML file"
-    "apply-http-lb-changes:applies load balancer configuration changes to the load balancer"
-    "backup-domain:performs a backup on the domain"
-    "change-admin-password:changes the administrator password"
-    "change-master-broker:changes the master broker in a Message Queue cluster providing JMS services for a GlassFish Server cluster."
-    "change-master-password:changes the master password"
-    "collect-log-files:creates a ZIP archive of all available log files"
-    "configure-jms-cluster:configures the Message Queue cluster providing JMS services to a GlassFish Server cluster"
-    "configure-lb-weight:sets load balancing weights for clustered instances"
-    "configure-ldap-for-admin:configures the authentication realm named admin-realm for the given LDAP"
-    "copy-config:copies an existing named configuration to create another configuration"
-    "create-admin-object:adds the administered object with the specified JNDI name for a resource adapter"
-    "create-application-ref:creates a reference to an application"
-    "create-audit-module:adds an audit module"
-    "create-auth-realm:adds the named authentication realm"
-    "create-cluster:creates a GlassFish Server cluster"
-    "create-connector-connection-pool:adds a connection pool with the specified connection pool name"
-    "create-connector-resource:registers the connector resource with the specified JNDI name"
-    "create-connector-security-map:creates a security map for the specified connector connection pool"
-    "create-connector-work-security-map:creates a work security map for the specified resource adapter"
-    "create-custom-resource:creates a custom resource"
-    "create-domain:creates a domain"
-    "create-file-user:creates a new file user"
-    "create-http:sets HTTP parameters for a protocol"
-    "create-http-health-checker:creates a health-checker for a specified load balancer configuration"
-    "create-http-lb:creates a load balancer"
-    "create-http-lb-config:creates a configuration for the load balancer"
-    "create-http-lb-ref:adds an existing cluster or server instance to an existing load balancer configuration or load balancer"
-    "create-http-listener:adds a new HTTP network listener socket"
-    "create-http-redirect:adds a new HTTP redirect"
-    "create-iiop-listener:adds an IIOP listener"
-    "create-instance:creates a GlassFish Server instance"
-    "create-jacc-provider:enables administrators to create a JACC provider that can be used by third-party authorization modules for applications running in GlassFish Server"
-    "create-javamail-resource:creates a JavaMail session resource"
-    "create-jdbc-connection-pool:registers a JDBC connection pool"
-    "create-jdbc-resource:creates a JDBC resource with the specified JNDI name"
-    "create-jms-host:creates a JMS host"
-    "create-jms-resource:creates a JMS resource"
-    "create-jmsdest:creates a JMS physical destination"
-    "create-jndi-resource:registers a JNDI resource"
-    "create-jvm-options:creates options for the Java application launcher"
-    "create-lifecycle-module:creates a lifecycle module"
-    "create-local-instance:creates a GlassFish Server instance on the host where the subcommand is run"
-    "create-message-security-provider:enables administrators to create a message security provider, which specifies how SOAP messages will be secured."
-    "create-network-listener:adds a new network listener socket"
-    "create-node-config:creates a node that is not enabled for remote communication"
-    "create-node-dcom:creates a node that is enabled for com munication over DCOM"
-    "create-node-ssh:creates a node that is enabled for communication over SSH"
-    "create-password-alias:creates a password alias"
-    "create-profiler:creates the profiler element"
-    "create-protocol:adds a new protocol"
-    "create-protocol-filter:adds a new protocol filter"
-    "create-protocol-finder:adds a new protocol finder"
-    "create-resource-adapter-config:creates the configuration information for the connector module"
-    "create-resource-ref:creates a reference to a resource"
-    "create-service:configures the starting of a DAS or a GlassFish Server instance on an unattended boot"
-    "create-ssl:creates and configures the SSL element in the selected HTTP listener, IIOP listener, or IIOP service"
-    "create-system-properties:adds one or more system property elements that can be referenced elsewhere in the configuration."
-    "create-threadpool:adds a thread pool"
-    "create-transport:adds a new transport"
-    "create-virtual-server:creates the named virtual server"
-    "delete-admin-object:removes the administered object with the specified JNDI name."
-    "delete-application-ref:removes a reference to an applica tion"
-    "delete-audit-module:removes the named audit-module"
-    "delete-auth-realm:removes the named authentication realm"
-    "delete-cluster:deletes a GlassFish Server cluster"
-    "delete-config:deletes an existing named configuration"
-    "delete-connector-connection-pool:removes the specified connector connection pool"
-    "delete-connector-resource:removes the connector resource with the specified JNDI name"
-    "delete-connector-security-map:deletes a security map for the specified connector connection pool"
-    "delete-connector-work-security-map:deletes a work security map for the specified resource adapter"
-    "delete-custom-resource:removes a custom resource"
-    "delete-domain:deletes a domain"
-    "delete-file-user:removes the named file user"
-    "delete-http:removes HTTP parameters from a protocol"
-    "delete-http-health-checker:deletes the health-checker for a specified load balancer configuration"
-    "delete-http-lb:deletes a load balancer"
-    "delete-http-lb-config:deletes a load balancer configuration"
-    "delete-http-lb-ref:deletes the cluster or server instance from a load balancer"
-    "delete-http-listener:removes a network listener"
-    "delete-http-redirect:removes an HTTP redirect"
-    "delete-iiop-listener:removes an IIOP listener"
-    "delete-instance:deletes a GlassFish Server instance"
-    "delete-jacc-provider:enables administrators to delete JACC providers defined for a domain"
-    "delete-javamail-resource:removes a JavaMail session resource"
-    "delete-jdbc-connection-pool:removes the specified JDBC connection pool"
-    "delete-jdbc-resource:removes a JDBC resource with the specified JNDI name"
-    "delete-jms-host:removes a JMS host"
-    "delete-jms-resource:removes a JMS resource"
-    "delete-jmsdest:removes a JMS physical destination"
-    "delete-jndi-resource:removes a JNDI resource"
-    "delete-jvm-options:removes one or more options for the Java application launcher"
-    "delete-lifecycle-module:removes the lifecycle module"
-    "delete-local-instance:deletes a GlassFish Server instance on the machine where the subcommand is run"
-    "delete-log-levels:"
-    "delete-message-security-provider:enables administrators to delete a message security provider"
-    "delete-network-listener:removes a network listener"
-    "delete-node-config:deletes a node that is not enabled for remote communication"
-    "delete-node-dcom:deletes a node that is enabled for communication over DCOM"
-    "delete-node-ssh:deletes a node that is enabled for communication over SSH"
-    "delete-password-alias:deletes a password alias"
-    "delete-profiler:removes the profiler element"
-    "delete-protocol:removes a protocol"
-    "delete-protocol-filter:removes a protocol filter"
-    "delete-protocol-finder:removes a protocol finder"
-    "delete-resource-adapter-config:deletes the resource adapter configuration"
-    "delete-resource-ref:removes a reference to a resource"
-    "delete-ssl:deletes the SSL element in the selected HTTP listener, IIOP listener, or IIOP service"
-    "delete-system-property:removes a system property of the domain, configuration, cluster, or server instance, one at a time"
-    "delete-threadpool:removes a thread pool"
-    "delete-transport:removes a transport"
-    "delete-virtual-server:removes a virtual server"
-    "deploy:deploys the specified component"
-    "deploydir:deploys an exploded format of application archive"
-    "environment variable"
-    "disable:disables the component"
-    "disable-http-lb-application:disables an application managed by a load balancer"
-    "disable-http-lb-server:disables a sever or cluster managed by a load balancer"
-    "disable-monitoring:disables monitoring for the server or for specific monitorable modules"
-    "disable-secure-admin:disables secure admin if it is already enabled."
-    "disable-secure-admin-internal-user:Instructs the GlassFish Server DAS and instances to not use the specified admin user to authenticate with each other and to authorize admin operations."
-    "disable-secure-admin-principal:disables the certificate for authorizing access in secure administration."
-    "enable:enables the component"
-    "enable-http-lb-application:enables a previously-disabled application managed by a load balancer"
-    "enable-http-lb-server:enables a previously disabled sever or cluster managed by a load balancer"
-    "enable-monitoring:enables monitoring for the server or for specific monitorable modules"
-    "enable-secure-admin:enables secure admin (if it is not already enabled), optionally changing the alias used for DAS-to-instance admin messages or the alias used for instance-to-DAS admin messages."
-    "enable-secure-admin-internal-user:Instructs the GlassFish Server DAS and instances to use the specified admin user and the password associated with the password alias to authenticate with each other and to authorize admin operations."
-    "enable-secure-admin-principal:Instructs GlassFish Server, when secure admin is enabled, to accept admin requests from clients identified by the specified SSL certificate."
-    "export:marks a variable name for automatic export to the environment of subsequent commands in multimode"
-    "export-http-lb-config:exports the load balancer configuration or load balancer to a file"
-    "export-sync-bundle:exports the configuration data of a cluster or standalone instance to an archive file"
-    "flush-connection-pool:reintializes all connections established in the specified connection pool"
-    "flush-jmsdest:purges messages in a JMS destination."
-    "freeze-transaction-service:freezes the transaction subsystem"
-    "generate-domain-schema:"
-    "generate-jvm-report:shows the JVM machine statistics for a given target instance"
-    "get:gets the values of configurable or monitorable attributes"
-    "get-client-stubs:retrieves the application JAR files needed to launch the application client."
-    "get-health:provides information on the cluster health"
-    "help"
-    "asadmin:utility for performing administrative tasks for Oracle GlassFish Server"
-    "import-sync-bundle:imports the configuration data of a clustered instance or standalone instance from an archive file"
-    "install-node:installs GlassFish Server software on specified SSH-enabled hosts"
-    "install-node-dcom:installs GlassFish Server software on specified DCOM-enabled hosts"
-    "install-node-ssh:installs GlassFish Server software on specified SSH-enabled hosts"
-    "jms-ping:checks if the JMS service is up and running"
-    "list:lists configurable or monitorable elements"
-    "list-admin-objects:gets all the administered objects"
-    "list-application-refs:lists the existing application references"
-    "list-applications:lists deployed applications"
-    "list-audit-modules:gets all audit modules and displays them"
-    "list-auth-realms:lists the authentication realms"
-    "list-backups:lists all backups"
-    "list-clusters:lists existing clusters in a domain"
-    "list-commands:lists available commands"
-    "list-components:lists deployed components"
-    "list-configs:lists named configurations"
-    "list-connector-connection-pools:lists the existing connector connection pools"
-    "list-connector-resources:lists all connector resources"
-    "list-connector-security-maps:lists the security maps belonging to the specified connector connection pool"
-    "list-connector-work-security-maps:lists the work security maps belonging to the specified resource adapter"
-    "list-containers:lists application containers"
-    "list-custom-resources:gets all custom resources"
-    "list-domains:lists the domains in the specified directory"
-    "list-file-groups:lists file groups"
-    "list-file-users:lists the file users"
-    "list-http-lb-configs:lists load balancer configurations"
-    "list-http-lbs:lists load balancers"
-    "list-http-listeners:lists the existing network listeners"
-    "list-iiop-listeners:lists the existing IIOP listeners"
-    "list-instances:lists GlassFish Server instances in a domain"
-    "list-jacc-providers:enables administrators to list JACC providers defined for a domain"
-    "list-javamail-resources:lists the existing JavaMail session resources"
-    "list-jdbc-connection-pools:lists all JDBC connection pools"
-    "list-jdbc-resources:lists all JDBC resources"
-    "list-jms-hosts:lists the existing JMS hosts"
-    "list-jms-resources:lists the JMS resources"
-    "list-jmsdest:lists the existing JMS physical destinations"
-    "list-jndi-entries:browses and queries the JNDI tree"
-    "list-jndi-resources:lists all existing JNDI resources"
-    "list-jvm-options:lists options for the Java application launcher"
-    "list-libraries:lists library JAR files on GlassFish Server"
-    "list-lifecycle-modules:lists the lifecycle modules"
-    "list-log-attributes:lists all logging attributes defined for a specified target in a domain"
-    "list-log-levels:lists the loggers and their log levels"
-    "list-message-security-providers:lists all security message providers for the given message layer"
-    "list-modules:lists GlassFish Server modules"
-    "list-network-listeners:lists the existing network listeners"
-    "list-nodes:lists all GlassFish Server nodes in a domain"
-    "list-nodes-config:lists all GlassFish Server nodes that do not support remote communication in a domain"
-    "list-nodes-dcom:lists all GlassFish Server nodes that support communication over DCOM in a domain"
-    "list-nodes-ssh:lists all GlassFish Server nodes that support communication over SSH in a domain"
-    "list-password-aliases:lists all password aliases"
-    "list-persistence-types:lists registered persistence types for HTTP sessions and SFSB instances"
-    "list-protocol-filters:lists the existing protocol filters"
-    "list-protocol-finders:lists the existing protocol finders"
-    "list-protocols:lists the existing protocols"
-    "list-resource-adapter-configs:lists the names of the current resource adapter configurations"
-    "list-resource-refs:lists existing resource references"
-    "list-secure-admin-internal-users:lists the user names that the GlassFish Server DAS and instances use to authenticate with each other and to authorize admin operations."
-    "list-secure-admin-principals:lists the certificates for which GlassFish Server accepts admin requests from clients."
-    "list-sub-components:lists EJB or servlet components in a deployed module or module of a deployed application"
-    "list-supported-cipher-suites:enables administrators to list the cipher suites that are supported and available to a specified GlassFish Server target"
-    "list-system-properties:lists the system properties of the domain, configuration, cluster, or server instance"
-    "list-threadpools:lists all the thread pools"
-    "list-timers:lists all of the persistent timers owned by server instance(s)"
-    "list-transports:lists the existing transports"
-    "list-virtual-servers:lists the existing virtual servers"
-    "list-web-context-param:lists servlet contextinitialization parameters of a deployed web application or module"
-    "list-web-env-entry:lists environment entries for a deployed web application or module"
-    "login:logs you into a domain"
-    "migrate-timers:moves EJB timers when a clustered instance was stopped or has crashed"
-    "monitor:displays monitoring data for commonly used components and services"
-    "multimode:allows multiple subcommands to be run while preserving environment settings and remaining in the asadmin utility"
-    "ping-connection-pool:tests if a connection pool is usable"
-    "ping-node-dcom:tests if a node that is enabled for communication over DCOM is usable"
-    "ping-node-ssh:tests if a node that is enabled for communication over SSH is usable"
-    "recover-transactions:manually recovers pending transactions"
-    "redeploy:redeploys the specified component"
-    "remove-library:removes one or more library JAR files from GlassFish Server"
-    "restart-domain:restarts the DAS of the specified domain"
-    "restart-instance:restarts a running GlassFish Server instance"
-    "restart-local-instance:restarts a running GlassFish Server instance on the host where the subcommand is run"
-    "restore-domain:restores files from backup"
-    "rollback-transaction:rolls back the named transaction"
-    "rotate-log:rotates the log file"
-    "set:sets the values of configurable attributes"
-    "set-log-attributes:sets the logging attributes for one or more loggers"
-    "set-log-levels:sets the log level for one or more loggers"
-    "set-web-context-param:sets a servlet context initialization parameter of a deployed web application or module"
-    "set-web-env-entry:sets an environment entry for a deployed web application or module"
-    "setup-ssh:sets up an SSH key on specified hosts"
-    "show-component-status:displays the status of the deployed component"
-    "start-cluster:starts a cluster"
-    "start-database:starts the Java DB"
-    "start-domain:starts the DAS of the specified domain"
-    "start-instance:starts a GlassFish Server instance"
-    "start-local-instance:starts a GlassFish Server instance on the host where the subcommand is run"
-    "stop-cluster:stops a GlassFish Server cluster"
-    "stop-database:stops the Java DB"
-    "stop-domain:stops the Domain Administration Server of the specified domain"
-    "stop-instance:stops a running GlassFish Server instance"
-    "stop-local-instance:stops a GlassFish Server instance on the machine where the subcommand is run"
-    "undeploy:removes a deployed component"
-    "unfreeze-transaction-service:resumes all suspended transactions"
-    "uninstall-node:uninstalls GlassFish Server software from specified hosts"
-    "uninstall-node-dcom:uninstalls GlassFish Server software from specified DCOM-enabled hosts"
-    "uninstall-node-ssh:uninstalls GlassFish Server software from specified SSH-enabled hosts"
-    "unset:removes one or more variables from the multimode environment"
-    "unset-web-context-param:unsets a servlet context initialization parameter of a deployed web application or module"
-    "unset-web-env-entry:unsets an environment entry for a deployed web application or module"
-    "update-connector-security-map:modifies a security map for the specified connector connection pool"
-    "update-connector-work-security-map:modifies a work security map for the specified resource adapter"
-    "update-file-user:updates a current file user as specified"
-    "update-node-config:updates the configuration data of anode"
-    "update-node-dcom:updates the configuration data of a node"
-    "update-node-ssh:updates the configuration data of a node"
-    "update-password-alias:updates a password alias"
-    "uptime:returns the length of time that the DAS has been running"
-    "validate-dcom:tests the connection over DCOM to a remote host"
-    "validate-multicast:validates that multicast transport is available for clusters"
-    "verify-domain-xml:verifies the content of the domain.xml file"
-    "version:displays version information forGlassFish Server"
-)
-
-_arguments '*:: :->command'
-
-if (( CURRENT == 1 )); then
-    _describe -t commands "asadmin command" _1st_arguments
-    return
-fi
-
-local -a _command_args
-case "$words[1]" in
-    add-library)
-        _command_args=('*:directory:_files' '--host+:' '--port+:' '--type+:type:(common ext app)')
-        ;;
-    add-resources)
-        _command_args=('*:directory:_files' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    apply-http-lb-changes)
-        _command_args=('--host+:' '--ping+:' '--port+:')
-        ;;
-    backup-domain)
-        _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--long+:long:(true false)')
-        ;;
-    change-admin-password)
-        _command_args=('--domain_name+:' '--domaindir+:')
-        ;;
-    change-master-broker)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    change-master-password)
-        _command_args=('--domaindir+:' '--nodedir+:' '--savemasterpassword+:savemasterpassword:(true false)')
-        ;;
-    collect-log-files)
-        _command_args=('--host+:' '--port+:' '--retrieve+:retrieve:(true false)' '--target+:')
-        ;;
-    configure-jms-cluster)
-        _command_args=('--clustertype+:' '--configstoretype+:' '--dburl+:' '--dbuser+:' '--dbvendor+:' '--host+:' '--jmsdbpassword+:' '--messagestoretype+:' '--port+:' '--property+:')
-        ;;
-    configure-lb-weight)
-        _command_args=('--cluster+:cluster:_asadmin_clusters' '--host+:' '--port+:')
-        ;;
-    configure-ldap-for-admin)
-        _command_args=('--basedn+:' '--host+:' '--ldap-group+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--url+:')
-        ;;
-    copy-config)
-        _command_args=('--host+:' '--port+:' '--systemproperties+:')
-        ;;
-    create-admin-object)
-        _command_args=('--classname+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--raname+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-application-ref)
-        _command_args=('--enabled+:enabled:(true false)' '--host+:' '--lbenabled+:lbenabled:(true false)' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance' '--virtualservers+:')
-        ;;
-    create-audit-module)
-        _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-auth-realm)
-        _command_args=('--classname+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-connector-connection-pool)
-        _command_args=('--associatewiththread+:associatewiththread:(true false)' '--connectiondefinition+:' '--creationretryattempts+:' '--creationretryinterval+:' '--description+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--raname+:' '--steadypoolsize+:' '--target+:' '--transactionsupport+:transactionsupport:(XATransaction LocalTransaction NoTransaction)' '--validateatmostonceperiod+:')
-        ;;
-    create-connector-resource)
-        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--objecttype+:' '--poolname+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    create-connector-security-map)
-        _command_args=('--host+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--port+:' '--principals+:' '--target+:' '--usergroups+:')
-        ;;
-    create-connector-work-security-map)
-        _command_args=('--description+:' '--groupsmap+:' '--host+:' '--port+:' '--principalsmap+:' '--raname+:')
-        ;;
-    create-custom-resource)
-        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    create-domain)
-        _command_args=('--adminport+:' '--checkports+:checkports:(true false)' '--domaindir+:' '--domainproperties+:' '--instanceport+:' '--keytooloptions+:' '--nopassword+:nopassword:(true false)' '--portbase+:' '--profile+:' '--savelogin+:savelogin:(true false)' '--savemasterpassword+:savemasterpassword:(true false)' '--template+:' '--usemasterpassword+:usemasterpassword:(true false)')
-        ;;
-    create-file-user)
-        _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--userpassword+:')
-        ;;
-    create-http)
-        _command_args=('--default-virtual-server+:' '--dns-lookup-enabled+:dns-lookup-enabled:(true false)' '--host+:' '--max-connection+:' '--port+:' '--request-timeout-seconds+:' '--servername+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--timeout-seconds+:' '--xpowered+:xpowered:(true false)')
-        ;;
-    create-http-health-checker)
-        _command_args=('--config+:' '--host+:' '--interval+:' '--port+:' '--timeout+:' '--url+:')
-        ;;
-    create-http-lb)
-        _command_args=('--autoapplyenabled+:autoapplyenabled:(true false)' '--devicehost+:' '--deviceport+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--httpsrouting+:httpsrouting:(true false)' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--monitor+:monitor:(true false)' '--port+:' '--property+:' '--reloadinterval+:' '--responsetimeout+:' '--routecookie+:routecookie:(true false)' '--sslproxyhost+:' '--sslproxyport+:' '--target+:target:_asadmin_targets_cluster_standalone_instance')
-        ;;
-    create-http-lb-ref)
-        _command_args=('--config+:' '--healthcheckerinterval+:' '--healthcheckertimeout+:' '--healthcheckerurl+:' '--host+:' '--lbenableallapplications+:' '--lbenableallinstances+:' '--lbname+:' '--lbpolicy+:' '--lbpolicymodule+:' '--lbweight+:' '--port+:')
-        ;;
-    create-http-listener)
-        _command_args=('--acceptorthreads+:' '--default-virtual-server+:' '--defaultvs+:' '--enabled+:enabled:(true false)' '--host+:' '--listeneraddress+:' '--listenerport+:' '--port+:' '--redirectport+:' '--secure+:secure:(true false)' '--securityenabled+:securityenabled:(true false)' '--servername+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--xpowered+:xpowered:(true false)')
-        ;;
-    create-http-redirect)
-        _command_args=('--host+:' '--port+:' '--redirect-port+:' '--secure-redirect+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-iiop-listener)
-        _command_args=('--enabled+:enabled:(true false)' '--host+:' '--iiopport+:' '--listeneraddress+:' '--port+:' '--property+:' '--securityenabled+:securityenabled:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-instance)
-        _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--host+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--port+:' '--portbase+:' '--systemproperties+:' '--terse+:terse:(true false)')
-        ;;
-    create-jacc-provider)
-        _command_args=('--host+:' '--policyconfigfactoryclass+:' '--policyproviderclass+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-javamail-resource)
-        _command_args=('--debug+:debug:(true false)' '--description+:' '--enabled+:enabled:(true false)' '--fromaddress+:' '--host+:' '--mailhost+:' '--mailuser+:' '--port+:' '--property+:' '--storeprotocol+:' '--storeprotocolclass+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--transprotocol+:' '--transprotocolclass+:')
-        ;;
-    create-jdbc-connection-pool)
-        _command_args=('--allownoncomponentcallers+:allownoncomponentcallers:(true false)' '--associatewiththread+:associatewiththread:(true false)' '--creationretryattempts+:' '--creationretryinterval+:' '--datasourceclassname+:' '--description+:' '--driverclassname+:' '--failconnection+:failconnection:(true false)' '--host+:' '--idletimeout+:' '--initsql+:' '--isconnectvalidatereq+:isconnectvalidatereq:(true false)' '--isisolationguaranteed+:isisolationguaranteed:(true false)' '--isolationlevel+:' '--lazyconnectionassociation+:lazyconnectionassociation:(true false)' '--lazyconnectionenlistment+:lazyconnectionenlistment:(true false)' '--leakreclaim+:leakreclaim:(true false)' '--leaktimeout+:' '--matchconnections+:matchconnections:(true false)' '--maxconnectionusagecount+:' '--maxpoolsize+:' '--maxwait+:' '--nontransactionalconnections+:nontransactionalconnections:(true false)' '--ping+:ping:(true false)' '--pooling+:pooling:(true false)' '--poolresize+:' '--port+:' '--property+:' '--restype+:restype:(javax.sql.DataSource javax.sql.XADataSource javax.sql.ConnectionPoolDataSource java.sql.Driver)' '--sqltracelisteners+:' '--statementcachesize+:' '--statementleakreclaim+:statementleakreclaim:(true false)' '--statementleaktimeout+:' '--statementtimeout+:' '--steadypoolsize+:' '--target+:' '--validateatmostonceperiod+:' '--validationclassname+:' '--validationmethod+:validationmethod:(auto-commit meta-data table custom-validation)' '--validationtable+:' '--wrapjdbcobjects+:wrapjdbcobjects:(true false)')
-        ;;
-    create-jdbc-resource)
-        _command_args=('--connectionpoolid+:' '--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    create-jms-host)
-        _command_args=('--host+:' '--mqhost+:' '--mqpassword+:' '--mqport+:' '--mquser+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-jms-resource)
-        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--host+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    create-jmsdest)
-        _command_args=('--desttype+:' '--host+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-jndi-resource)
-        _command_args=('--description+:' '--enabled+:enabled:(true false)' '--factoryclass+:' '--host+:' '--jndilookupname+:' '--port+:' '--property+:' '--restype+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    create-jvm-options)
-        _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-lifecycle-module)
-        _command_args=('--classname+:' '--classpath+:' '--description+:' '--enabled+:enabled:(true false)' '--failurefatal+:failurefatal:(true false)' '--host+:' '--loadorder+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    create-local-instance)
-        _command_args=('--checkports+:checkports:(true false)' '--cluster+:cluster:_asadmin_clusters' '--config+:' '--lbenabled+:lbenabled:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--portbase+:' '--savemasterpassword+:savemasterpassword:(true false)' '--systemproperties+:' '--usemasterpassword+:usemasterpassword:(true false)')
-        ;;
-    create-message-security-provider)
-        _command_args=('--classname+:' '--host+:' '--isdefaultprovider+:isdefaultprovider:(true false)' '--layer+:layer:(SOAP HttpServlet)' '--port+:' '--property+:' '--providertype+:providertype:(client server client-server)' '--requestauthrecipient+:' '--requestauthsource+:' '--responseauthrecipient+:' '--responseauthsource+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-network-listener)
-        _command_args=('--address+:' '--enabled+:enabled:(true false)' '--host+:' '--jkenabled+:jkenabled:(true false)' '--listenerport+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--threadpool+:' '--transport+:')
-        ;;
-    create-node-config)
-        _command_args=('--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:')
-        ;;
-    create-node-dcom)
-        _command_args=('--archive+:' '--force+:force:(true false)' '--host+:' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
-        ;;
-    create-node-ssh)
-        _command_args=('--archive+:' '--force+:force:(true false)' '--host+:' '--install+:install:(true false)' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:')
-        ;;
-    create-password-alias)
-        _command_args=('--aliaspassword+:' '--host+:' '--port+:')
-        ;;
-    create-profiler)
-        _command_args=('--classpath+:' '--enabled+:enabled:(true false)' '--host+:' '--nativelibrarypath+:' '--port+:' '--property+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-protocol)
-        _command_args=('--host+:' '--port+:' '--securityenabled+:securityenabled:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-protocol-filter)
-        _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    create-protocol-finder)
-        _command_args=('--classname+:' '--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--targetprotocol+:')
-        ;;
-    create-resource-adapter-config)
-        _command_args=('--host+:' '--objecttype+:' '--port+:' '--property+:' '--target+:' '--threadpoolid+:')
-        ;;
-    create-resource-ref)
-        _command_args=('--enabled+:enabled:(true false)' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
-        ;;
-    create-service)
-        _command_args=('*:instances:_asadmin_instances' '--domaindir+:domaindir:directory:_files' '--dry-run+:dry-run:(true false)' '--force+:force:(true false)' '--name+:' '--node+:node:_asadmin_nodes' '--nodedir+:' '--serviceproperties+:' '--serviceuser+:')
-        ;;
-    create-ssl)
-        _command_args=('--certname+:' '--clientauthenabled+:clientauthenabled:(true false)' '--host+:' '--port+:' '--ssl2ciphers+:' '--ssl2enabled+:ssl2enabled:(true false)' '--ssl3enabled+:ssl3enabled:(true false)' '--ssl3tlsciphers+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--tlsenabled+:tlsenabled:(true false)' '--tlsrollbackenabled+:tlsrollbackenabled:(true false)' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)')
-        ;;
-    create-system-properties)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance')
-        ;;
-    create-threadpool)
-        _command_args=('--host+:' '--idletimeout+:' '--maxqueuesize+:' '--maxthreadpoolsize+:' '--minthreadpoolsize+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--workqueues+:')
-        ;;
-    create-transport)
-        _command_args=('--acceptorthreads+:' '--buffersizebytes+:' '--bytebuffertype+:' '--classname+:' '--displayconfiguration+:displayconfiguration:(true false)' '--enablesnoop+:enablesnoop:(true false)' '--host+:' '--idlekeytimeoutseconds+:' '--maxconnectionscount+:' '--port+:' '--readtimeoutmillis+:' '--selectionkeyhandler+:' '--selectorpolltimeoutmillis+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--tcpnodelay+:tcpnodelay:(true false)' '--writetimeoutmillis+:')
-        ;;
-    create-virtual-server)
-        _command_args=('--defaultwebmodule+:' '--host+:' '--hosts+:' '--httplisteners+:' '--logfile+:' '--networklisteners+:' '--port+:' '--property+:' '--state+:state:(on off disabled)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-admin-object)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-application-ref)
-        _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
-        ;;
-    delete-audit-module)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-auth-realm)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-config)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    delete-connector-connection-pool)
-        _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:')
-        ;;
-    delete-connector-resource)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    delete-connector-security-map)
-        _command_args=('--host+:' '--poolname+:' '--port+:' '--target+:')
-        ;;
-    delete-connector-work-security-map)
-        _command_args=('--host+:' '--port+:' '--raname+:')
-        ;;
-    delete-custom-resource)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    delete-domain)
-        _command_args=('--domaindir+:')
-        ;;
-    delete-file-user)
-        _command_args=('--authrealmname+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-http)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-http-health-checker)
-        _command_args=('--config+:' '--host+:' '--port+:')
-        ;;
-    delete-http-lb-ref)
-        _command_args=('--config+:' '--force+:' '--host+:' '--lbname+:' '--port+:')
-        ;;
-    delete-http-listener)
-        _command_args=('--host+:' '--port+:' '--secure+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-http-redirect)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-iiop-listener)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-instance)
-        _command_args=('*:instances:_asadmin_instances' '--host+:' '--port+:' '--terse+:terse:(true false)')
-        ;;
-    delete-jacc-provider)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-javamail-resource)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    delete-jdbc-connection-pool)
-        _command_args=('--cascade+:cascade:(true false)' '--host+:' '--port+:' '--target+:')
-        ;;
-    delete-jdbc-resource)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    delete-jms-host)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-jms-resource)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    delete-jmsdest)
-        _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-jndi-resource)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    delete-jvm-options)
-        _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-lifecycle-module)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    delete-local-instance)
-        _command_args=('*:instances:_asadmin_instances' '--node+:node:_asadmin_nodes' '--nodedir+:')
-        ;;
-    delete-log-levels)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-message-security-provider)
-        _command_args=('--host+:' '--layer+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-network-listener)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-node-config)
-        _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--port+:')
-        ;;
-    delete-node-dcom)
-        _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
-        ;;
-    delete-node-ssh)
-        _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--port+:' '--uninstall+:uninstall:(true false)')
-        ;;
-    delete-password-alias)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    delete-profiler)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-protocol)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-protocol-filter)
-        _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-protocol-finder)
-        _command_args=('--host+:' '--port+:' '--protocol+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-resource-adapter-config)
-        _command_args=('--host+:' '--port+:' '--target+:')
-        ;;
-    delete-resource-ref)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
-        ;;
-    delete-ssl)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--type+:type:(network-listener http-listener iiop-listener iiop-service jmx-connector)')
-        ;;
-    delete-system-property)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance')
-        ;;
-    delete-threadpool)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-transport)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    delete-virtual-server)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    deploy)
-        _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:')
-        ;;
-    deploydir)
-        _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:')
-        ;;
-    disable)
-        _command_args=('--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--isundeploy+:isundeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
-        ;;
-    disable-http-lb-application)
-        _command_args=('--host+:' '--name+:' '--port+:' '--timeout+:')
-        ;;
-    disable-http-lb-server)
-        _command_args=('--host+:' '--port+:' '--timeout+:')
-        ;;
-    disable-monitoring)
-        _command_args=('--host+:' '--modules+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    disable-secure-admin)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    enable)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
-        ;;
-    enable-http-lb-application)
-        _command_args=('--host+:' '--name+:' '--port+:')
-        ;;
-    enable-http-lb-server)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    enable-monitoring)
-        _command_args=('--dtrace+:dtrace:(true false)' '--host+:' '--mbean+:mbean:(true false)' '--modules+:' '--options+:' '--pid+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    enable-secure-admin)
-        _command_args=('--adminalias+:' '--host+:' '--instancealias+:' '--port+:')
-        ;;
-    export-http-lb-config)
-        _command_args=('--config+:' '--host+:' '--lbname+:' '--lbtargets+:' '--port+:' '--property+:' '--retrievefile+:retrievefile:(true false)')
-        ;;
-    export-sync-bundle)
-        _command_args=('--host+:' '--port+:' '--retrieve+:retrieve:(true false)' '--target+:')
-        ;;
-    flush-connection-pool)
-        _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:')
-        ;;
-    flush-jmsdest)
-        _command_args=('--desttype+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    freeze-transaction-service)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance')
-        ;;
-    generate-domain-schema)
-        _command_args=('--format+:' '--host+:' '--port+:' '--showdeprecated+:showdeprecated:(true false)' '--showsubclasses+:showsubclasses:(true false)')
-        ;;
-    generate-jvm-report)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--type+:type:(summary thread class memory log)')
-        ;;
-    get)
-        _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:')
-        ;;
-    get-client-stubs)
-        _command_args=('--appname+:' '--host+:' '--port+:')
-        ;;
-    get-health)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    help)
-        _describe -t help-commands "asadmin help command" _1st_arguments
-    ;;
-    import-sync-bundle)
-        _command_args=('--instance+:' '--node+:node:_asadmin_nodes' '--nodedir+:')
-        ;;
-    install-node)
-        _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
-        ;;
-    install-node-dcom)
-        _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--windowsdomain+:' '--windowsuser+:')
-        ;;
-    install-node-ssh)
-        _command_args=('--archive+:' '--create+:create:(true false)' '--force+:force:(true false)' '--installdir+:' '--save+:save:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
-        ;;
-    jms-ping)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance')
-        ;;
-    list)
-        _command_args=('--host+:' '--monitor+:monitor:(true false)' '--port+:')
-        ;;
-    list-admin-objects)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-application-refs)
-        _command_args=('*:targets:_asadmin_targets_cluster_das_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
-        ;;
-    list-applications)
-        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:')
-        ;;
-    list-audit-modules)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-auth-realms)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-backups)
-        _command_args=('--backupconfig+:' '--backupdir+:' '--domaindir+:' '--long+:long:(true false)')
-        ;;
-    list-clusters)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-commands)
-        _command_args=('--localonly+:localonly:(true false)' '--remoteonly+:remoteonly:(true false)')
-        ;;
-    list-components)
-        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:' '--resources+:resources:(true false)' '--subcomponents+:subcomponents:(true false)' '--terse+:terse:(true false)' '--type+:')
-        ;;
-    list-configs)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-connector-connection-pools)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-connector-resources)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-connector-security-maps)
-        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--securitymap+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
-        ;;
-    list-connector-work-security-maps)
-        _command_args=('--host+:' '--port+:' '--securitymap+:')
-        ;;
-    list-containers)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-custom-resources)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
-        ;;
-    list-descriptors)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-domains)
-        _command_args=('--domaindir+:')
-        ;;
-    list-file-groups)
-        _command_args=('--authrealmname+:' '--host+:' '--name+:' '--port+:')
-        ;;
-    list-file-users)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--authrealmname+:' '--host+:' '--port+:')
-        ;;
-    list-http-lb-configs)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-http-listeners)
-        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--long+:long:(true false)' '--port+:')
-        ;;
-    list-iiop-listeners)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-instances)
-        _command_args=('--host+:' '--long+:long:(true false)' '--nostatus+:nostatus:(true false)' '--port+:' '--standaloneonly+:standaloneonly:(true false)' '--timeoutmsec+:')
-        ;;
-    list-jacc-providers)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-javamail-resources)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
-        ;;
-    list-jdbc-connection-pools)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-jdbc-resources)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-jms-hosts)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    list-jms-resources)
-        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--port+:' '--restype+:')
-        ;;
-    list-jmsdest)
-        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--desttype+:' '--host+:' '--port+:' '--property+:')
-        ;;
-    list-jndi-entries)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--context+:' '--host+:' '--port+:')
-        ;;
-    list-jndi-resources)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
-        ;;
-    list-jvm-options)
-        _command_args=('--host+:' '--port+:' '--profiler+:profiler:(true false)' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    list-libraries)
-        _command_args=('--host+:' '--port+:' '--type+:type:(common ext app)')
-        ;;
-    list-lifecycle-modules)
-        _command_args=('*:targets:_asadmin_targets_cluster_das_domain_standalone_instance' '--host+:' '--port+:' '--terse+:terse:(true false)')
-        ;;
-    list-log-attributes)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-log-levels)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-message-security-providers)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance' '--host+:' '--layer+:layer:(SOAP HttpServlet)' '--port+:')
-        ;;
-    list-modules)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-network-listeners)
-        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-nodes)
-        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
-        ;;
-    list-nodes-config)
-        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
-        ;;
-    list-nodes-dcom)
-        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
-        ;;
-    list-nodes-ssh)
-        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--terse+:terse:(true false)')
-        ;;
-    list-password-aliases)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-persistence-types)
-        _command_args=('--host+:' '--port+:' '--type+:')
-        ;;
-    list-protocol-filters)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    list-protocol-finders)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    list-protocols)
-        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-resource-adapter-configs)
-        _command_args=('--host+:' '--long+:long:(true false)' '--port+:' '--raname+:')
-        ;;
-    list-resource-refs)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-sub-components)
-        _command_args=('--appname+:' '--host+:' '--port+:' '--resources+:resources:(true false)' '--terse+:terse:(true false)' '--type+:')
-        ;;
-    list-supported-cipher-suites)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-system-properties)
-        _command_args=('*:targets:_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-threadpools)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    list-timers)
-        _command_args=('*:targets:_asadmin_targets_cluster_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-transports)
-        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:')
-        ;;
-    list-virtual-servers)
-        _command_args=('*:targets:_asadmin_targets_cluster_config_das_standalone_instance' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    list-web-context-param)
-        _command_args=('--host+:' '--name+:' '--port+:')
-        ;;
-    list-web-env-entry)
-        _command_args=('--host+:' '--name+:' '--port+:')
-        ;;
-    login)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_das_standalone_instance')
-        ;;
-    migrate-timers)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das')
-        ;;
-    monitor)
-        _command_args=('--filename+:filename:directory:_files' '--filter+:' '--interval+:' '--type+:')
-        ;;
-    multimode)
-        _command_args=('--encoding+:' '--file+:file:directory:_files' '--printprompt+:printprompt:(true false)')
-        ;;
-    ping-connection-pool)
-        _command_args=('--appname+:' '--host+:' '--modulename+:' '--port+:' '--target+:')
-        ;;
-    ping-node-dcom)
-        _command_args=('*:nodes:_asadmin_nodes_dcom' '--host+:' '--port+:' '--validate+:validate:(true false)')
-        ;;
-    ping-node-ssh)
-        _command_args=('*:nodes:_asadmin_nodes_ssh' '--host+:' '--port+:' '--validate+:validate:(true false)')
-        ;;
-    recover-transactions)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--transactionlogdir+:')
-        ;;
-    redeploy)
-        _command_args=('*:directory:_files' '--asyncreplication+:asyncreplication:(true false)' '--availabilityenabled+:availabilityenabled:(true false)' '--contextroot+:' '--createtables+:createtables:(true false)' '--dbvendorname+:' '--deploymentplan+:deploymentplan:directory:_files' '--description+:' '--dropandcreatetables+:dropandcreatetables:(true false)' '--enabled+:enabled:(true false)' '--force+:force:(true false)' '--generatermistubs+:generatermistubs:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepfailedstubs+:keepfailedstubs:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--lbenabled+:lbenabled:(true false)' '--libraries+:' '--logreportederrors+:logreportederrors:(true false)' '--name+:' '--port+:' '--precompilejsp+:precompilejsp:(true false)' '--properties+:' '--property+:' '--retrieve+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance' '--type+:' '--uniquetablenames+:uniquetablenames:(true false)' '--verify+:verify:(true false)' '--virtualservers+:')
-        ;;
-    remove-library)
-        _command_args=('*:libraries:_asadmin_libraries' '--host+:' '--port+:' '--type+:type:(common ext app)')
-        ;;
-    restart-domain)
-        _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)')
-        ;;
-    restart-instance)
-        _command_args=('*:instances:_asadmin_instances' '--debug+:' '--host+:' '--port+:')
-        ;;
-    restart-local-instance)
-        _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:')
-        ;;
-    restore-domain)
-        _command_args=('--backupconfig+:' '--backupdir+:' '--description+:' '--domaindir+:' '--filename+:' '--force+:force:(true false)' '--long+:long:(true false)')
-        ;;
-    rollback-transaction)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_clustered_instance_das_standalone_instance' '--transaction_id+:')
-        ;;
-    rotate-log)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_standalone_instance')
-        ;;
-    set)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    set-log-attributes)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    set-log-levels)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance')
-        ;;
-    set-web-context-param)
-        _command_args=('--description+:' '--host+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--port+:' '--value+:')
-        ;;
-    set-web-env-entry)
-        _command_args=('--description+:' '--host+:' '--ignoredescriptoritem+:ignoredescriptoritem:(true false)' '--name+:' '--port+:' '--type+:' '--value+:')
-        ;;
-    setup-ssh)
-        _command_args=('--generatekey+:generatekey:(true false)' '--sshkeyfile+:' '--sshport+:' '--sshpublickeyfile+:' '--sshuser+:')
-        ;;
-    show-component-status)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance')
-        ;;
-    start-cluster)
-        _command_args=('*:clusters:_asadmin_clusters' '--autohadboverride+:autohadboverride:(true false)' '--host+:' '--port+:' '--verbose+:verbose:(true false)')
-        ;;
-    start-database)
-        _command_args=('--dbhome+:' '--dbhost+:' '--dbport+:' '--jvmoptions+:')
-        ;;
-    start-domain)
-        _command_args=('--debug+:debug:(true false)' '--domaindir+:' '--upgrade+:upgrade:(true false)' '--verbose+:verbose:(true false)')
-        ;;
-    start-instance)
-        _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--host+:' '--port+:' '--setenv+:' '--sync+:sync:(none normal full)' '--terse+:terse:(true false)')
-        ;;
-    start-local-instance)
-        _command_args=('*:instances:_asadmin_instances' '--debug+:debug:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:' '--sync+:sync:(none normal full)' '--verbose+:verbose:(true false)')
-        ;;
-    stop-cluster)
-        _command_args=('*:clusters:_asadmin_clusters' '--autohadboverride+:autohadboverride:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:' '--verbose+:verbose:(true false)')
-        ;;
-    stop-database)
-        _command_args=('--dbhost+:' '--dbport+:' '--dbuser+:')
-        ;;
-    stop-domain)
-        _command_args=('--domaindir+:' '--force+:force:(true false)' '--kill+:kill:(true false)')
-        ;;
-    stop-instance)
-        _command_args=('*:instances:_asadmin_instances' '--force+:force:(true false)' '--host+:' '--kill+:kill:(true false)' '--port+:')
-        ;;
-    stop-local-instance)
-        _command_args=('*:instances:_asadmin_instances' '--force+:force:(true false)' '--kill+:kill:(true false)' '--node+:node:_asadmin_nodes' '--nodedir+:')
-        ;;
-    test-upgrade)
-        _command_args=('--host+:' '--port+:')
-        ;;
-    undeploy)
-        _command_args=('*:applications:_asadmin_applications' '--cascade+:cascade:(true false)' '--droptables+:droptables:(true false)' '--host+:' '--isredeploy+:isredeploy:(true false)' '--keepreposdir+:keepreposdir:(true false)' '--keepstate+:keepstate:(true false)' '--port+:' '--properties+:' '--target+:target:_asadmin_targets_cluster_das_domain_standalone_instance')
-        ;;
-    unfreeze-transaction-service)
-        _command_args=('--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance')
-        ;;
-    uninstall-node)
-        _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
-        ;;
-    uninstall-node-dcom)
-        _command_args=('--force+:force:(true false)' '--installdir+:' '--windowsdomain+:' '--windowsuser+:')
-        ;;
-    uninstall-node-ssh)
-        _command_args=('--force+:force:(true false)' '--installdir+:' '--sshkeyfile+:' '--sshport+:' '--sshuser+:')
-        ;;
-    unset-web-context-param)
-        _command_args=('--host+:' '--name+:' '--port+:')
-        ;;
-    unset-web-env-entry)
-        _command_args=('--host+:' '--name+:' '--port+:')
-        ;;
-    update-connector-security-map)
-        _command_args=('--addprincipals+:' '--addusergroups+:' '--host+:' '--mappedpassword+:' '--mappedusername+:' '--poolname+:' '--port+:' '--removeprincipals+:' '--removeusergroups+:' '--target+:')
-        ;;
-    update-connector-work-security-map)
-        _command_args=('--addgroups+:' '--addprincipals+:' '--host+:' '--port+:' '--raname+:' '--removegroups+:' '--removeprincipals+:')
-        ;;
-    update-file-user)
-        _command_args=('--authrealmname+:' '--groups+:' '--host+:' '--port+:' '--target+:target:_asadmin_targets_cluster_config_das_standalone_instance' '--userpassword+:')
-        ;;
-    update-node-config)
-        _command_args=('*:nodes:_asadmin_nodes_config' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:')
-        ;;
-    update-node-dcom)
-        _command_args=('*:nodes:_asadmin_nodes_dcom' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
-        ;;
-    update-node-ssh)
-        _command_args=('*:nodes:_asadmin_nodes_ssh' '--force+:force:(true false)' '--host+:' '--installdir+:' '--nodedir+:' '--nodehost+:' '--port+:' '--sshkeyfile+:' '--sshkeypassphrase+:' '--sshpassword+:' '--sshport+:' '--sshuser+:')
-        ;;
-    update-password-alias)
-        _command_args=('--aliaspassword+:' '--host+:' '--port+:')
-        ;;
-    uptime)
-        _command_args=('--host+:' '--milliseconds+:milliseconds:(true false)' '--port+:')
-        ;;
-    validate-dcom)
-        _command_args=('--host+:' '--port+:' '--remotetestdir+:' '--verbose+:verbose:(true false)' '--windowsdomain+:' '--windowspassword+:' '--windowsuser+:')
-        ;;
-    validate-multicast)
-        _command_args=('--bindaddress+:' '--multicastaddress+:' '--multicastport+:' '--sendperiod+:' '--timeout+:' '--timetolive+:' '--verbose+:verbose:(true false)')
-        ;;
-    verify-domain-xml)
-        _command_args=('--domaindir+:')
-        ;;
-    version)
-        _command_args=('--local+:local:(true false)' '--terse+:terse:(true false)' '--verbose+:verbose:(true false)')
-        ;;
-esac
-
-
-_asadmin_applications() {
-    compadd $(command asadmin list-applications --terse | sed 's/\s.*//')
-}
-
-_asadmin_clusters() {
-    compadd $(command asadmin list-clusters --terse | sed 's/\s.*//')
-}
-
-_asadmin_configs() {
-    compadd $(command asadmin list-configs --terse)
-}
-
-_asadmin_instances() {
-    compadd $(command asadmin list-instances --terse --nostatus domain)
-}
-
-_asadmin_instances_standalone() {
-    compadd $(command asadmin list-instances --terse --standaloneonly --nostatus domain)
-}
-
-_asadmin_libraries() {
-    compadd $(command asadmin list-libraries --terse)
-}
-
-_asadmin_nodes() {
-    compadd $(command asadmin list-nodes --terse)
-}
-
-_asadmin_nodes_config() {
-    compadd $(command asadmin list-nodes-config --terse)
-}
-
-_asadmin_nodes_dcom() {
-    compadd $(command asadmin list-nodes-dcom --terse)
-}
-
-_asadmin_nodes_ssh() {
-    compadd $(command asadmin list-nodes-ssh --terse)
-}
-
-_asadmin_targets() {
-    _asadmin_instances
-    _asadmin_clusters
-    _asadmin_configs
-    compadd domain server
-}
-
-_asadmin_targets_cluster_clustered_instance_config_das_domain_standalone_instance() {
-    _asadmin_instances
-    _asadmin_clusters
-    _asadmin_configs
-    compadd domain server
-}
-
-_asadmin_targets_cluster_clustered_instance_config_das_standalone_instance() {
-    _asadmin_instances
-    _asadmin_clusters
-    _asadmin_configs
-    compadd server
-}
-
-_asadmin_targets_cluster_clustered_instance_das_domain_standalone_instance() {
-    _asadmin_instances
-    _asadmin_clusters
-    compadd domain server
-}
-
-_asadmin_targets_cluster_clustered_instance_das_standalone_instance() {
-    _asadmin_instances
-    _asadmin_clusters
-    _asadmin_configs
-    compadd server
-}
-
-_asadmin_targets_cluster_config_das_standalone_instance() {
-    _asadmin_instances_standalone
-    _asadmin_clusters
-    _asadmin_configs
-    compadd server
-}
-
-_asadmin_targets_cluster_das_domain_standalone_instance() {
-    _asadmin_instances_standalone
-    _asadmin_clusters
-    compadd domain server
-}
-
-_asadmin_targets_cluster_das_standalone_instance() {
-    _asadmin_instances_standalone
-    _asadmin_clusters
-    compadd server
-}
-
-_asadmin_targets_clustered_instance_das() {
-    _asadmin_instances
-    compadd server
-}
-
-_asadmin_targets_clustered_instance_das_standalone_instance() {
-    _asadmin_instances
-    compadd server
-}
-
-_asadmin_targets_cluster_standalone_instance() {
-    _asadmin_clusters
-    _asadmin_instances_standalone
-}
-
-
-compadd '--help'
-_arguments \
-    $_command_args \
-    &&  return 0;
diff --git a/.oh-my-zsh/plugins/glassfish/glassfish.plugin.zsh b/.oh-my-zsh/plugins/glassfish/glassfish.plugin.zsh
deleted file mode 100644
index fde2edb..0000000
--- a/.oh-my-zsh/plugins/glassfish/glassfish.plugin.zsh
+++ /dev/null
@@ -1,3 +0,0 @@
-# if there is a user named 'glassfish' on the system, we'll assume
-# that is the user asadmin should be run as
-# grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin'
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/gnu-utils/gnu-utils.plugin.zsh b/.oh-my-zsh/plugins/gnu-utils/gnu-utils.plugin.zsh
deleted file mode 100644
index e59265d..0000000
--- a/.oh-my-zsh/plugins/gnu-utils/gnu-utils.plugin.zsh
+++ /dev/null
@@ -1,80 +0,0 @@
-# ------------------------------------------------------------------------------
-#          FILE:  gnu-utils.plugin.zsh
-#   DESCRIPTION:  oh-my-zsh plugin file.
-#        AUTHOR:  Sorin Ionescu (sorin.ionescu@gmail.com)
-#       VERSION:  1.0.0
-# ------------------------------------------------------------------------------
-
-
-if [[ -x "${commands[gwhoami]}" ]]; then 
-  __gnu_utils() {
-    emulate -L zsh
-    local gcmds
-    local gcmd
-    local cmd
-    local prefix
-
-    # coreutils 
-    gcmds=('g[' 'gbase64' 'gbasename' 'gcat' 'gchcon' 'gchgrp' 'gchmod'
-    'gchown' 'gchroot' 'gcksum' 'gcomm' 'gcp' 'gcsplit' 'gcut' 'gdate'
-    'gdd' 'gdf' 'gdir' 'gdircolors' 'gdirname' 'gdu' 'gecho' 'genv' 'gexpand'
-    'gexpr' 'gfactor' 'gfalse' 'gfmt' 'gfold' 'ggroups' 'ghead' 'ghostid'
-    'gid' 'ginstall' 'gjoin' 'gkill' 'glink' 'gln' 'glogname' 'gls' 'gmd5sum'
-    'gmkdir' 'gmkfifo' 'gmknod' 'gmktemp' 'gmv' 'gnice' 'gnl' 'gnohup' 'gnproc'
-    'god' 'gpaste' 'gpathchk' 'gpinky' 'gpr' 'gprintenv' 'gprintf' 'gptx' 'gpwd'
-    'greadlink' 'grm' 'grmdir' 'gruncon' 'gseq' 'gsha1sum' 'gsha224sum'
-    'gsha256sum' 'gsha384sum' 'gsha512sum' 'gshred' 'gshuf' 'gsleep' 'gsort'
-    'gsplit' 'gstat' 'gstty' 'gsum' 'gsync' 'gtac' 'gtail' 'gtee' 'gtest'
-    'gtimeout' 'gtouch' 'gtr' 'gtrue' 'gtruncate' 'gtsort' 'gtty' 'guname'
-    'gunexpand' 'guniq' 'gunlink' 'guptime' 'gusers' 'gvdir' 'gwc' 'gwho'
-    'gwhoami' 'gyes')
-
-    # Not part of coreutils, installed separately.
-    gcmds+=('gsed' 'gtar' 'gtime')
-
-    for gcmd in "${gcmds[@]}"; do
-      #
-      # This method allows for builtin commands to be primary but it's
-      # lost if hash -r or rehash -f is executed. Thus, those two 
-      # functions have to be wrapped.
-      #
-      (( ${+commands[$gcmd]} )) && hash ${gcmd[2,-1]}=${commands[$gcmd]}
-
-      #
-      # This method generates wrapper functions.
-      # It will override shell builtins.
-      #
-      # (( ${+commands[$gcmd]} )) && \
-      # eval "function $gcmd[2,-1]() { \"${prefix}/${gcmd//"["/"\\["}\" \"\$@\"; }"
-
-      #
-      # This method is inflexible since the aliases are at risk of being
-      # overriden resulting in the BSD coreutils being called.
-      #
-      # (( ${+commands[$gcmd]} )) && \
-      # alias "$gcmd[2,-1]"="${prefix}/${gcmd//"["/"\\["}"
-    done
-
-    return 0
-  }
-  __gnu_utils;
-
-  function hash() {
-    if [[ "$*" =~ "-(r|f)" ]]; then
-      builtin hash "$@"
-      __gnu_utils
-    else
-      builtin hash "$@"
-    fi
-  }
-
-  function rehash() {
-    if [[ "$*" =~ "-f" ]]; then
-      builtin rehash "$@"
-      __gnu_utils
-    else
-      builtin rehash "$@"
-    fi
-  }
-fi
-
diff --git a/.oh-my-zsh/plugins/go/go.plugin.zsh b/.oh-my-zsh/plugins/go/go.plugin.zsh
deleted file mode 120000
index cf943e2..0000000
--- a/.oh-my-zsh/plugins/go/go.plugin.zsh
+++ /dev/null
@@ -1 +0,0 @@
-../golang/golang.plugin.zsh
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/golang/golang.plugin.zsh b/.oh-my-zsh/plugins/golang/golang.plugin.zsh
deleted file mode 100644
index 900fc63..0000000
--- a/.oh-my-zsh/plugins/golang/golang.plugin.zsh
+++ /dev/null
@@ -1,164 +0,0 @@
-# install in /etc/zsh/zshrc or your personal .zshrc
-
-# gc
-prefixes=(5 6 8)
-for p in $prefixes; do
-	compctl -g "*.${p}" ${p}l
-	compctl -g "*.go" ${p}g
-done
-
-# standard go tools
-compctl -g "*.go" gofmt
-
-# gccgo
-compctl -g "*.go" gccgo
-
-# go tool
-__go_tool_complete() {
-  typeset -a commands build_flags
-  commands+=(
-    'build[compile packages and dependencies]'
-    'clean[remove object files]'
-    'doc[run godoc on package sources]'
-    'env[print Go environment information]'
-    'fix[run go tool fix on packages]'
-    'fmt[run gofmt on package sources]'
-    'generate[generate Go files by processing source]'
-    'get[download and install packages and dependencies]'
-    'help[display help]'
-    'install[compile and install packages and dependencies]'
-    'list[list packages]'
-    'run[compile and run Go program]'
-    'test[test packages]'
-    'tool[run specified go tool]'
-    'version[print Go version]'
-    'vet[run go tool vet on packages]'
-  )
-  if (( CURRENT == 2 )); then
-    # explain go commands
-    _values 'go tool commands' ${commands[@]}
-    return
-  fi
-  build_flags=(
-    '-a[force reinstallation of packages that are already up-to-date]'
-    '-n[print the commands but do not run them]'
-    '-p[number of parallel builds]:number'
-    '-race[enable data race detection]'
-    '-x[print the commands]'
-    '-work[print temporary directory name and keep it]'
-    '-ccflags[flags for 5c/6c/8c]:flags'
-    '-gcflags[flags for 5g/6g/8g]:flags'
-    '-ldflags[flags for 5l/6l/8l]:flags'
-    '-gccgoflags[flags for gccgo]:flags'
-    '-compiler[name of compiler to use]:name'
-    '-installsuffix[suffix to add to package directory]:suffix'
-    '-tags[list of build tags to consider satisfied]:tags'
-  )
-  __go_list() {
-      local expl importpaths
-      declare -a importpaths
-      importpaths=($(go list ${words[$CURRENT]}... 2>/dev/null))
-      _wanted importpaths expl 'import paths' compadd "$@" - "${importpaths[@]}"
-  }
-  case ${words[2]} in
-  clean|doc)
-      _arguments -s -w : '*:importpaths:__go_list'
-      ;;
-  fix|fmt|list|vet)
-      _alternative ':importpaths:__go_list' ':files:_path_files -g "*.go"'
-      ;;
-  install)
-      _arguments -s -w : ${build_flags[@]} \
-        "-v[show package names]" \
-        '*:importpaths:__go_list'
-      ;;
-  get)
-      _arguments -s -w : \
-        ${build_flags[@]}
-      ;;
-  build)
-      _arguments -s -w : \
-        ${build_flags[@]} \
-        "-v[show package names]" \
-        "-o[output file]:file:_files" \
-        "*:args:{ _alternative ':importpaths:__go_list' ':files:_path_files -g \"*.go\"' }"
-      ;;
-  test)
-      _arguments -s -w : \
-        ${build_flags[@]} \
-        "-c[do not run, compile the test binary]" \
-        "-i[do not run, install dependencies]" \
-        "-v[print test output]" \
-        "-x[print the commands]" \
-        "-short[use short mode]" \
-        "-parallel[number of parallel tests]:number" \
-        "-cpu[values of GOMAXPROCS to use]:number list" \
-        "-run[run tests and examples matching regexp]:regexp" \
-        "-bench[run benchmarks matching regexp]:regexp" \
-        "-benchmem[print memory allocation stats]" \
-        "-benchtime[run each benchmark until taking this long]:duration" \
-        "-blockprofile[write goroutine blocking profile to file]:file" \
-        "-blockprofilerate[set sampling rate of goroutine blocking profile]:number" \
-        "-timeout[kill test after that duration]:duration" \
-        "-cpuprofile[write CPU profile to file]:file:_files" \
-        "-memprofile[write heap profile to file]:file:_files" \
-        "-memprofilerate[set heap profiling rate]:number" \
-        "*:args:{ _alternative ':importpaths:__go_list' ':files:_path_files -g \"*.go\"' }"
-      ;;
-  help)
-      _values "${commands[@]}" \
-        'gopath[GOPATH environment variable]' \
-        'packages[description of package lists]' \
-        'remote[remote import path syntax]' \
-        'testflag[description of testing flags]' \
-        'testfunc[description of testing functions]'
-      ;;
-  run)
-      _arguments -s -w : \
-          ${build_flags[@]} \
-          '*:file:_path_files -g "*.go"'
-      ;;
-  tool)
-      if (( CURRENT == 3 )); then
-          _values "go tool" $(go tool)
-          return
-      fi
-      case ${words[3]} in
-      [568]g)
-          _arguments -s -w : \
-              '-I[search for packages in DIR]:includes:_path_files -/' \
-              '-L[show full path in file:line prints]' \
-              '-S[print the assembly language]' \
-              '-V[print the compiler version]' \
-              '-e[no limit on number of errors printed]' \
-              '-h[panic on an error]' \
-              '-l[disable inlining]' \
-              '-m[print optimization decisions]' \
-              '-o[file specify output file]:file' \
-              '-p[assumed import path for this code]:importpath' \
-              '-u[disable package unsafe]' \
-              "*:file:_files -g '*.go'"
-          ;;
-      [568]l)
-          local O=${words[3]%l}
-          _arguments -s -w : \
-              '-o[file specify output file]:file' \
-              '-L[search for packages in DIR]:includes:_path_files -/' \
-              "*:file:_files -g '*.[ao$O]'"
-          ;;
-      dist)
-          _values "dist tool" banner bootstrap clean env install version
-          ;;
-      *)
-          # use files by default
-          _files
-          ;;
-      esac
-      ;;
-  esac
-}
-
-compdef __go_tool_complete go
-
-# aliases
-alias gfa='go fmt . ./...'
diff --git a/.oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh b/.oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh
deleted file mode 100644
index 3e6a34f..0000000
--- a/.oh-my-zsh/plugins/gpg-agent/gpg-agent.plugin.zsh
+++ /dev/null
@@ -1,41 +0,0 @@
-local GPG_ENV=$HOME/.gnupg/gpg-agent.env
-
-function start_agent_nossh {
-    eval $(/usr/bin/env gpg-agent --quiet --daemon --write-env-file ${GPG_ENV} 2> /dev/null)
-    chmod 600 ${GPG_ENV}
-    export GPG_AGENT_INFO
-}
-
-function start_agent_withssh {
-    eval $(/usr/bin/env gpg-agent --quiet --daemon --enable-ssh-support --write-env-file ${GPG_ENV} 2> /dev/null)
-    chmod 600 ${GPG_ENV}
-    export GPG_AGENT_INFO
-    export SSH_AUTH_SOCK
-    export SSH_AGENT_PID
-}
-
-# check if another agent is running
-if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then
-    # source settings of old agent, if applicable
-    if [ -f "${GPG_ENV}" ]; then
-        . ${GPG_ENV} > /dev/null
-        export GPG_AGENT_INFO
-        export SSH_AUTH_SOCK
-        export SSH_AGENT_PID
-    fi
-
-    # check again if another agent is running using the newly sourced settings
-    if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then
-        # check for existing ssh-agent
-        if ssh-add -l > /dev/null 2> /dev/null; then
-            # ssh-agent running, start gpg-agent without ssh support
-            start_agent_nossh;
-        else
-            # otherwise start gpg-agent with ssh support
-            start_agent_withssh;
-        fi
-    fi
-fi
-
-GPG_TTY=$(tty)
-export GPG_TTY
diff --git a/.oh-my-zsh/plugins/gradle/gradle.plugin.zsh b/.oh-my-zsh/plugins/gradle/gradle.plugin.zsh
deleted file mode 100644
index 97bf50b..0000000
--- a/.oh-my-zsh/plugins/gradle/gradle.plugin.zsh
+++ /dev/null
@@ -1,106 +0,0 @@
-#!zsh
-##############################################################################
-# A descriptive listing of core Gradle commands 
-############################################################################
-function _gradle_core_commands() {
-    local ret=1 state
-    _arguments ':subcommand:->subcommand' && ret=0
-
-    case $state in
-      subcommand)
-        subcommands=(
-          "properties:Display all project properties"
-          "tasks:Calculate and display all tasks"
-          "dependencies:Calculate and display all dependencies"
-          "projects:Discover and display all sub-projects"
-          "build:Build the project"
-          "help:Display help"
-        )
-        _describe -t subcommands 'gradle subcommands' subcommands && ret=0
-    esac
-
-    return ret
-}
-
-function _gradle_arguments() {
-    _arguments -C \
-    '-a[Do not rebuild project dependencies]' \
-    '-h[Help]' \
-    '-D[System property]' \
-    '-d[Log at the debug level]' \
-    '--gui[Launches the Gradle GUI app]' \
-    '--stop[Stop the Gradle daemon]' \
-    '--daemon[Use the Gradle daemon]' \
-    '--no-daemon[Do not use the Gradle daemon]' \
-    '--no-opt[Do not perform any task optimization]' \
-    '-i[Log at the info level]' \
-    '-m[Dry run]' \
-    '-P[Set a project property]' \
-    '--profile[Profile the build time]' \
-    '-q[Log at the quiet level (only show errors)]' \
-    '-v[Print the Gradle version info]' \
-    '-x[Specify a task to be excluded]' \
-    '*::command:->command' \
-    && return 0
-}
-
-
-##############################################################################
-# Are we in a directory containing a build.gradle file?
-############################################################################
-function in_gradle() {
-    if [[ -f build.gradle ]]; then
-        echo 1
-    fi
-}
-
-############################################################################## Examine the build.gradle file to see if its
-# timestamp has changed, and if so, regen
-# the .gradle_tasks cache file
-############################################################################
-_gradle_does_task_list_need_generating () {
-  [ ! -f .gradletasknamecache ] && return 0;
-  [ build.gradle -nt .gradletasknamecache ] && return 0;
-  return 1;
-}
-
-
-##############################################################################
-# Discover the gradle tasks by running "gradle tasks --all"
-############################################################################
-_gradle_tasks () {
-  if [ in_gradle ]; then
-    _gradle_arguments
-    if _gradle_does_task_list_need_generating; then
-     gradle tasks --all | grep "^[ ]*[a-zA-Z0-9]*\ -\ " | sed "s/ - .*$//" | sed "s/[\ ]*//" > .gradletasknamecache
-    fi
-    compadd -X "==== Gradle Tasks ====" `cat .gradletasknamecache`
-  fi
-}
-
-_gradlew_tasks () {
-  if [ in_gradle ]; then
-    _gradle_arguments
-    if _gradle_does_task_list_need_generating; then
-     gradlew tasks --all | grep "^[ ]*[a-zA-Z0-9]*\ -\ " | sed "s/ - .*$//" | sed "s/[\ ]*//" > .gradletasknamecache
-    fi
-    compadd -X "==== Gradlew Tasks ====" `cat .gradletasknamecache`
-  fi
-}
-
-
-##############################################################################
-# Register the completions against the gradle and gradlew commands
-############################################################################
-compdef _gradle_tasks gradle
-compdef _gradlew_tasks gradlew
-
-
-##############################################################################
-# Open questions for future improvements:
-# 1) Should 'gradle tasks' use --all or just the regular set?
-# 2) Should gradlew use the same approach as gradle?
-# 3) Should only the " - " be replaced with a colon so it can work
-#     with the richer descriptive method of _arguments?
-#     gradle tasks | grep "^[a-zA-Z0-9]*\ -\ " | sed "s/ - /\:/"
-#############################################################################
diff --git a/.oh-my-zsh/plugins/grails/grails.plugin.zsh b/.oh-my-zsh/plugins/grails/grails.plugin.zsh
deleted file mode 100644
index 1177773..0000000
--- a/.oh-my-zsh/plugins/grails/grails.plugin.zsh
+++ /dev/null
@@ -1,60 +0,0 @@
-_enumerateGrailsScripts() {
-    # Default directoryies
-    directories=($GRAILS_HOME/scripts ~/.grails/scripts ./scripts)
-
-    # Check all of the plugins directories, if they exist
-    if [ -d plugins ]
-    then
-        directories+=(plugins/*/scripts)
-    fi
-    
-    # Enumerate all of the Groovy files
-    files=()
-    for dir in $directories;
-    do
-        if [ -d $dir ]
-        then
-            files+=($dir/[^_]*.groovy)
-        fi
-    done
-    
-    # Don't try to basename ()
-    if [ ${#files} -eq 0 ];
-    then
-        return
-    fi
-    
-    scripts=()
-    for file in $files
-    do
-        # - Strip the path
-        # - Remove all scripts with a leading '_'
-        # - PackagePlugin_.groovy -> PackagePlugin
-        # - PackagePlugin         -> Package-Plugin
-        # - Package-Plugin        -> package-plugin
-        command=$(basename $file                              \
-            | sed -E  -e 's/^_?([^_]+)_?.groovy/\1/'\
-                      -e 's/([a-z])([A-Z])/\1-\2/g' \
-            | tr "[:upper:]" "[:lower:]"            \
-            | sort                                  \
-            | uniq)
-        scripts+=($command)
-    done
-    echo $scripts
-}
- 
-_grails() {
-    if (( CURRENT == 2 )); then
-        scripts=( $(_enumerateGrailsScripts) )
-        
-        if [ ${#scripts} -ne 0 ];
-        then
-            _multi_parts / scripts
-            return
-        fi
-    fi
-    
-    _files
-}
- 
-compdef _grails grails
diff --git a/.oh-my-zsh/plugins/grunt/grunt.plugin.zsh b/.oh-my-zsh/plugins/grunt/grunt.plugin.zsh
deleted file mode 100644
index 3f96951..0000000
--- a/.oh-my-zsh/plugins/grunt/grunt.plugin.zsh
+++ /dev/null
@@ -1,255 +0,0 @@
-#compdef grunt
-#autoload
-# -----------------------------------------------------------------------------
-#  _grunt
-#
-#  Completion script for grunt.
-#   - https://github.com/gruntjs/grunt
-#   - https://github.com/gruntjs/grunt-cli
-#
-# -----------------------------------------------------------------------------
-#
-#  Version     : 0.1.2
-#  Author      : Yonchu 
-#  License     : MIT License
-#  Repository  : https://github.com/yonchu/grunt-zsh-completion
-#  Last Change : 20 Aug 2014.
-#
-#  Copyright (c) 2013 Yonchu.
-#
-# -----------------------------------------------------------------------------
-# USAGE
-# -----
-#
-# Enable caching:
-#
-#   If you want to use the cache, set the followings in your .zshrc:
-#
-#     zstyle ':completion:*' use-cache yes
-#
-#
-# Settings:
-#
-#  - Show grunt file path:
-#      zstyle ':completion::complete:grunt::options:' show_grunt_path yes
-#
-#  - Cache expiration days (default: 7):
-#      zstyle ':completion::complete:grunt::options:' expire 1
-#
-#  - Not update options cache if target gruntfile is changed.
-#      zstyle ':completion::complete:grunt::options:' no_update_options yes
-#
-#  Note that if you change the zstyle settings,
-#  you should delete the cache file and restart zsh.
-#
-#    $ rm ~/.zcompcache/grunt
-#    $ exec zsh
-#
-# -----------------------------------------------------------------------------
-
-function __grunt() {
-    local curcontext="$curcontext" update_policy state
-    local show_grunt_path update_msg gruntfile opts tasks
-
-    # Setup cache-policy.
-    zstyle -s ":completion:${curcontext}:" cache-policy update_policy
-    if [[ -z $update_policy ]]; then
-        zstyle ":completion:${curcontext}:" cache-policy __grunt_caching_policy
-    fi
-
-    # Check show_path option.
-    zstyle -b ":completion:${curcontext}:options:" show_grunt_path show_grunt_path
-
-    # Get current gruntfile.
-    gruntfile=$(__grunt_get_gruntfile)
-
-    # Initialize opts and tasks.
-    opts=()
-    tasks=()
-
-    # Add help options.
-    opts+=('(- 1 *)'{-h,--help}'[Display this help text.]')
-
-    ## Complete without gruntfile.
-    if [[ ! -f $gruntfile ]]; then
-        _arguments "${opts[@]}"
-        return
-    fi
-
-    ## Complete with gruntfile.
-    # Retrieve cache.
-    if ! __grunt_update_cache "$gruntfile"; then
-        update_msg=' (cache updated)'
-    fi
-
-    # Make optioins completion.
-    if [[ ${#__grunt_opts} -gt 0 ]]; then
-        opts+=("${__grunt_opts[@]}")
-    fi
-
-    # Complete arguments.
-    _arguments \
-        "${opts[@]}" \
-        '*: :->tasks' \
-        && return
-
-    case $state in
-        tasks)
-            if [[ $show_grunt_path == 'yes' ]]; then
-                update_msg="$update_msg: ${${gruntfile/#$HOME/~}%/}"
-            fi
-            # Make tasks completion.
-            if [[ ${#__grunt_tasks} -gt 0 ]]; then
-                tasks+=("${__grunt_tasks[@]}")
-                _describe -t grunt-task "$verbose grunt task$update_msg" tasks || return 1
-            fi
-        ;;
-    esac
-
-    return 0
-}
-
-# Cache policy:
-#   The cache file name: grunt
-#   The cache variable name: __grunt_version __grunt_gruntfile __grunt_opts __grunt_tasks
-function __grunt_update_cache() {
-    # TODO
-    local version='0.1.2'
-    local is_updating=0
-    local gruntfile="$1"
-    local grunt_info no_update_options cache_path
-
-    # Check no_update_options option.
-    zstyle -b ":completion:${curcontext}:options:" no_update_options no_update_options
-
-
-    if ! ( ((  $+__grunt_gruntfile )) \
-        && (( $+__grunt_opts )) \
-        && (( $+__grunt_tasks )) ) \
-        && ! _retrieve_cache 'grunt'; then
-        is_updating=1
-    fi
-
-    if [[ $gruntfile != $__grunt_gruntfile ]]; then
-        # Except for --help options.
-        __grunt_gruntfile=$gruntfile
-        if [[ $no_update_options == 'yes' ]]; then
-            if [[ $PREFIX == ${PREFIX#-} ]]; then
-                # Not options completions.
-                is_updating=1
-            elif [[ ${#__grunt_opts} -lt 2 ]]; then
-                is_updating=1
-            else
-                unset __grunt_gruntfile
-            fi
-        else
-            is_updating=1
-        fi
-    else
-        if [[ $PREFIX != ${PREFIX#-} && ${#__grunt_opts} -gt 1 ]]; then
-            unset __grunt_gruntfile
-        fi
-    fi
-
-    if _cache_invalid 'grunt'; then
-        is_updating=1
-    fi
-
-    # Check _grunt version.
-    if [[ $__grunt_version != $version ]]; then
-        is_updating=1
-    fi
-
-    if [[ $is_updating -ne 0 ]]; then
-        # Update caceh.
-        __grunt_version=$version
-        __grunt_gruntfile=$gruntfile
-        is_updating=1
-        grunt_info=$(grunt --help --no-color --gruntfile "$__grunt_gruntfile" 2>/dev/null)
-        __grunt_opts=(${(f)"$(__grunt_get_opts "$grunt_info")"})
-        __grunt_tasks=(${(f)"$(__grunt_get_tasks "$grunt_info")"})
-        _store_cache 'grunt' __grunt_version __grunt_gruntfile __grunt_opts __grunt_tasks
-    fi
-    return $is_updating
-}
-
-function __grunt_get_tasks() {
-    echo -E "$1" \
-        | grep 'Available tasks' -A 100 \
-        | grep '^ ' \
-        | sed -e 's/^[[:blank:]]*//' -e 's/[[:blank:]]*$//' \
-        | sed -e 's/:/\\:/g' \
-        | sed -e 's/  /:/'
-}
-
-function __grunt_get_opts() {
-    local opt_hunk opt_sep opt_num line opt
-    opt_hunk=$(echo -E "$1" \
-        | grep 'Options$' -A 100 \
-        | sed '1 d' \
-        | sed -e 's/[[:blank:]]*$//' \
-    )
-
-    opt_sep=()
-    opt_hunk=(${(f)opt_hunk})
-    opt_num=0
-    for line in "$opt_hunk[@]"; do
-        opt=$(echo -E "$line" | sed -e 's/^[[:blank:]]*//')
-        if [[ $line == $opt ]]; then
-            break
-        fi
-        if [[ $opt != ${opt#-} ]]; then
-            # Start with -
-            (( opt_num++ ))
-            opt=$(echo -E "$opt" | sed 's/^\(\(--[^ ]*\)\(, \(-[^ ]*\)\)*\)  */\2\\t\4\\\t/')
-        fi
-        opt_sep[$opt_num]=("${opt_sep[$opt_num]}${opt}")
-    done
-
-    for line in "$opt_sep[@]"; do
-        opt=(${(s:\t:)line})
-        if [[ ${opt[1]} == '--help' ]]; then
-            continue
-        fi
-        if [[ ${#opt} -eq 2 ]]; then
-            echo -E "(${opt[1]})${opt[1]}[${opt[2]}]"
-        else
-            echo -E "(${opt[1]},${opt[2]})${opt[1]}[${opt[3]}]"
-            echo -E "(${opt[1]},${opt[2]})${opt[2]}[${opt[3]}]"
-        fi
-    done
-}
-
-function __grunt_get_gruntfile() {
-    local gruntfile
-    local curpath="$PWD"
-    while [ "$curpath" ]; do
-        for gruntfile in "$curpath/"{G,g}runtfile.{js,coffee}; do
-            if [[ -e "$gruntfile" ]]; then
-                echo "$gruntfile"
-                return
-            fi
-        done
-        curpath=${curpath%/*}
-    done
-    return 1
-}
-
-function __grunt_caching_policy() {
-    # Returns status zero if the completions cache needs rebuilding.
-
-    # Rebuild if .agignore more recent than cache.
-    if [[ -f $__grunt_gruntfile && $__grunt_gruntfile -nt $1 ]]; then
-        # Invalid cache because gruntfile is old.
-        return 0
-    fi
-
-    local -a oldp
-    local expire
-    zstyle -s ":completion:${curcontext}:options:" expire expire || expire=7
-    # Rebuild if cache is more than $expire days.
-    oldp=( "$1"(Nm+$expire) )
-    (( $#oldp ))
-}
-
-compdef __grunt grunt
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/heroku/_heroku b/.oh-my-zsh/plugins/heroku/_heroku
deleted file mode 100644
index bb2f740..0000000
--- a/.oh-my-zsh/plugins/heroku/_heroku
+++ /dev/null
@@ -1,147 +0,0 @@
-#compdef heroku
-
-# Heroku Autocomplete plugin for Oh-My-Zsh
-# Requires: The Heroku client gem (https://github.com/heroku/heroku)
-# Author: Ali B. (http://awhitebox.com)
-
-local -a _1st_arguments
-_1st_arguments=(
-  "account\:confirm_billing":"Confirm that your account can be billed at the end of the month"
-  "addons":"list installed addons"
-  "addons\:list":"list all available addons"
-  "addons\:add":"install an addon"
-  "addons\:upgrade":"upgrade an existing addon"
-  "addons\:downgrade":"downgrade an existing addon"
-  "addons\:remove":"uninstall an addon"
-  "addons\:open":"open an addon's dashboard in your browser"
-  "apps":"list your apps"
-  "apps\:info":"show detailed app information"
-  "apps\:create":"create a new app"
-  "apps\:rename":"rename the app"
-  "apps\:open":"open the app in a web browser"
-  "apps\:destroy":"permanently destroy an app"
-  "auth\:login":"log in with your heroku credentials"
-  "auth\:logout":"clear local authentication credentials"
-  "config":"display the config vars for an app"
-  "config\:pull":"pull heroku config vars down to the local environment"
-  "config\:push":"push local config vars to heroku"
-  "config\:set":"set one or more config vars"
-  "config\:unset":"unset one or more config vars"
-  "domains":"list custom domains for an app"
-  "domains\:add":"add a custom domain to an app"
-  "domains\:remove":"remove a custom domain from an app"
-  "domains\:clear":"remove all custom domains from an app"
-  "help":"list available commands or display help for a specific command"
-  "keys":"display keys for the current user"
-  "keys\:add":"add a key for the current user"
-  "keys\:remove":"remove a key from the current user"
-  "keys\:clear":"remove all authentication keys from the current user"
-  "logs":"display recent log output"
-  "logs\:cron":"DEPRECATED: display cron logs from legacy logging"
-  "logs\:drains":"manage syslog drains"
-  "maintenance\:on":"put the app into maintenance mode"
-  "maintenance\:off":"take the app out of maintenance mode"
-  "pg\:credentials":"display the DATABASE credentials"
-  "pg\:diagnose":"run diagnostics report on DATABASE"
-  "pg\:info":"display database information"
-  "pg\:kill":"kill a query"
-  "pg\:killall":"terminates ALL connections"
-  "pg\:maintenance":"manage maintenance for DATABASE"
-  "pg\:promote":"sets DATABASE as your DATABASE_URL"
-  "pg\:ps":"view active queries with execution time"
-  "pg\:psql":"open a psql shell to the database"
-  "pg\:pull":"pull from REMOTE_SOURCE_DATABASE to LOCAL_TARGET_DATABASE"
-  "pg\:push":"push from LOCAL_SOURCE_DATABASE to REMOTE_TARGET_DATABASE"
-  "pg\:reset":"delete all data in DATABASE"
-  "pg\:unfollow":"stop a replica from following and make it a read/write database"
-  "pg\:upgrade":"unfollow a database and upgrade it to the latest PostgreSQL version"
-  "pg\:wait":"monitor database creation, exit when complete"
-  "pgbackups":"list captured backups"
-  "pgbackups\:url":"get a temporary URL for a backup"
-  "pgbackups\:capture":"capture a backup from a database id"
-  "pgbackups\:restore":"restore a backup to a database"
-  "pgbackups\:destroy":"destroys a backup"
-  "plugins":"list installed plugins"
-  "plugins\:install":"install a plugin"
-  "plugins\:uninstall":"uninstall a plugin"
-  "ps\:dynos":"scale to QTY web processes"
-  "ps\:workers":"scale to QTY background processes"
-  "ps":"list processes for an app"
-  "ps\:restart":"restart an app process"
-  "ps\:scale":"scale processes by the given amount"
-  "releases":"list releases"
-  "releases\:info":"view detailed information for a release"
-  "rollback":"roll back to an older release"
-  "run":"run an attached process"
-  "run\:rake":"remotely execute a rake command"
-  "run\:console":"open a remote console session"
-  "sharing":"list collaborators on an app"
-  "sharing\:add":"add a collaborator to an app"
-  "sharing\:remove":"remove a collaborator from an app"
-  "sharing\:transfer":"transfer an app to a new owner"
-  "ssl":"list certificates for an app"
-  "ssl\:add":"add an ssl certificate to an app"
-  "ssl\:remove":"remove an ssl certificate from an app"
-  "ssl\:clear":"remove all ssl certificates from an app"
-  "stack":"show the list of available stacks"
-  "stack\:migrate":"prepare migration of this app to a new stack"
-  "version":"show heroku client version"
-)
-
-_arguments '*:: :->command'
-
-if (( CURRENT == 1 )); then
-  _describe -t commands "heroku command" _1st_arguments
-  return
-fi
-
-local -a _command_args
-case "$words[1]" in
-  apps:info)
-    _command_args=(
-      '(-r|--raw)'{-r,--raw}'[output info as raw key/value pairs]' \
-    )
-    ;;
-  apps:create)
-    _command_args=(
-      '(-a|--addons)'{-a,--addons}'[a list of addons to install]' \
-      '(-r|--remote)'{-r,--remote}'[the git remote to create, default "heroku"]' \
-      '(-s|--stack)'{-s,--stack}'[the stack on which to create the app]' \
-    )
-    ;;
-  config)
-    _command_args=(
-      '(-s|--shell)'{-s,--shell}'[output config vars in shell format]' \
-    )
-    ;;
-  keys)
-    _command_args=(
-      '(-l|--long)'{-l,--long}'[display extended information for each key]' \
-    )
-    ;;
-  logs)
-    _command_args=(
-      '(-n|--num)'{-n,--num}'[the number of lines to display]' \
-      '(-p|--ps)'{-p,--ps}'[only display logs from the given process]' \
-      '(-s|--source)'{-s,--source}'[only display logs from the given source]' \
-      '(-t|--tail)'{-t,--tail}'[continually stream logs]' \
-    )
-    ;;
-  pgbackups:capture)
-    _command_args=(
-      '(-e|--expire)'{-e,--expire}'[if no slots are available to capture, delete the oldest backup to make room]' \
-    )
-    ;;
-  stack)
-    _command_args=(
-      '(-a|--all)'{-a,--all}'[include deprecated stacks]' \
-    )
-    ;;
-  esac
-
-_arguments \
-  $_command_args \
-  '(--app)--app[the app name]' \
-  '(--remote)--remote[the remote name]' \
-  &&  return 0
-
diff --git a/.oh-my-zsh/plugins/history-substring-search/README.markdown b/.oh-my-zsh/plugins/history-substring-search/README.markdown
deleted file mode 100644
index 143b813..0000000
--- a/.oh-my-zsh/plugins/history-substring-search/README.markdown
+++ /dev/null
@@ -1,7 +0,0 @@
-To activate this script, please include it the `plugins` variable within `~/.zshrc`
-
-  `plugins=(git history-substring-search.zsh)`
-
-See the "history-substring-search.zsh" file for more information:
-
-  `sed -n '2,/^$/s/^#//p' history-substring-search.zsh | more`
diff --git a/.oh-my-zsh/plugins/history-substring-search/history-substring-search.plugin.zsh b/.oh-my-zsh/plugins/history-substring-search/history-substring-search.plugin.zsh
deleted file mode 100644
index 99a5922..0000000
--- a/.oh-my-zsh/plugins/history-substring-search/history-substring-search.plugin.zsh
+++ /dev/null
@@ -1,12 +0,0 @@
-# This file integrates the history-substring-search script into oh-my-zsh.
-
-source "$ZSH/plugins/history-substring-search/history-substring-search.zsh"
-
-if test "$CASE_SENSITIVE" = true; then
-  unset HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS
-fi
-
-if test "$DISABLE_COLOR" = true; then
-  unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-  unset HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
-fi
diff --git a/.oh-my-zsh/plugins/history-substring-search/history-substring-search.zsh b/.oh-my-zsh/plugins/history-substring-search/history-substring-search.zsh
deleted file mode 100644
index 22f03dd..0000000
--- a/.oh-my-zsh/plugins/history-substring-search/history-substring-search.zsh
+++ /dev/null
@@ -1,647 +0,0 @@
-#!/usr/bin/env zsh
-#
-# This is a clean-room implementation of the Fish[1] shell's history search
-# feature, where you can type in any part of any previously entered command
-# and press the UP and DOWN arrow keys to cycle through the matching commands.
-#
-#-----------------------------------------------------------------------------
-# Usage
-#-----------------------------------------------------------------------------
-#
-# 1. Load this script into your interactive ZSH session:
-#
-#       % source history-substring-search.zsh
-#
-#    If you want to use the zsh-syntax-highlighting[6] script along with this
-#    script, then make sure that you load it *before* you load this script:
-#
-#       % source zsh-syntax-highlighting.zsh
-#       % source history-substring-search.zsh
-#
-# 2. Type any part of any previous command and then:
-#
-#     * Press the UP arrow key to select the nearest command that (1) contains
-#       your query and (2) is older than the current command in the command
-#       history.
-#
-#     * Press the DOWN arrow key to select the nearest command that (1)
-#       contains your query and (2) is newer than the current command in the
-#       command history.
-#
-#     * Press ^U (the Control and U keys simultaneously) to abort the search.
-#
-# 3. If a matching command spans more than one line of text, press the LEFT
-#    arrow key to move the cursor away from the end of the command, and then:
-#
-#     * Press the UP arrow key to move the cursor to the line above.  When the
-#       cursor reaches the first line of the command, pressing the UP arrow
-#       key again will cause this script to perform another search.
-#
-#     * Press the DOWN arrow key to move the cursor to the line below.  When
-#       the cursor reaches the last line of the command, pressing the DOWN
-#       arrow key again will cause this script to perform another search.
-#
-#-----------------------------------------------------------------------------
-# Configuration
-#-----------------------------------------------------------------------------
-#
-# This script defines the following global variables. You may override their
-# default values only after having loaded this script into your ZSH session.
-#
-# * HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND is a global variable that defines
-#   how the query should be highlighted inside a matching command. Its default
-#   value causes this script to highlight using bold, white text on a magenta
-#   background. See the "Character Highlighting" section in the zshzle(1) man
-#   page to learn about the kinds of values you may assign to this variable.
-#
-# * HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND is a global variable that
-#   defines how the query should be highlighted when no commands in the
-#   history match it. Its default value causes this script to highlight using
-#   bold, white text on a red background. See the "Character Highlighting"
-#   section in the zshzle(1) man page to learn about the kinds of values you
-#   may assign to this variable.
-#
-# * HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS is a global variable that defines
-#   how the command history will be searched for your query. Its default value
-#   causes this script to perform a case-insensitive search. See the "Globbing
-#   Flags" section in the zshexpn(1) man page to learn about the kinds of
-#   values you may assign to this variable.
-#
-#-----------------------------------------------------------------------------
-# History
-#-----------------------------------------------------------------------------
-#
-# This script was originally written by Peter Stephenson[2], who published it
-# to the ZSH users mailing list (thereby making it public domain) in September
-# 2009. It was later revised by Guido van Steen and released under the BSD
-# license (see below) as part of the fizsh[3] project in January 2011.
-#
-# It was later extracted from fizsh[3] release 1.0.1, refactored heavily, and
-# repackaged as both an oh-my-zsh plugin[4] and as an independently loadable
-# ZSH script[5] by Suraj N. Kurapati in 2011.
-#
-# It was further developed[4] by Guido van Steen, Suraj N. Kurapati, Sorin
-# Ionescu, and Vincent Guerci in 2011.
-#
-# [1]: http://fishshell.com
-# [2]: http://www.zsh.org/mla/users/2009/msg00818.html
-# [3]: http://sourceforge.net/projects/fizsh/
-# [4]: https://github.com/robbyrussell/oh-my-zsh/pull/215
-# [5]: https://github.com/sunaku/zsh-history-substring-search
-# [6]: https://github.com/nicoulaj/zsh-syntax-highlighting
-#
-##############################################################################
-#
-# Copyright (c) 2009 Peter Stephenson
-# Copyright (c) 2011 Guido van Steen
-# Copyright (c) 2011 Suraj N. Kurapati
-# Copyright (c) 2011 Sorin Ionescu
-# Copyright (c) 2011 Vincent Guerci
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-#
-#  * Redistributions of source code must retain the above copyright
-#    notice, this list of conditions and the following disclaimer.
-#
-#  * Redistributions in binary form must reproduce the above
-#    copyright notice, this list of conditions and the following
-#    disclaimer in the documentation and/or other materials provided
-#    with the distribution.
-#
-#  * Neither the name of the FIZSH nor the names of its contributors
-#    may be used to endorse or promote products derived from this
-#    software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-##############################################################################
-
-#-----------------------------------------------------------------------------
-# configuration variables
-#-----------------------------------------------------------------------------
-
-HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=magenta,fg=white,bold'
-HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=white,bold'
-HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS='i'
-
-#-----------------------------------------------------------------------------
-# the main ZLE widgets
-#-----------------------------------------------------------------------------
-
-function history-substring-search-up() {
-  _history-substring-search-begin
-
-  _history-substring-search-up-history ||
-  _history-substring-search-up-buffer ||
-  _history-substring-search-up-search
-
-  _history-substring-search-end
-}
-
-function history-substring-search-down() {
-  _history-substring-search-begin
-
-  _history-substring-search-down-history ||
-  _history-substring-search-down-buffer ||
-  _history-substring-search-down-search
-
-  _history-substring-search-end
-}
-
-zle -N history-substring-search-up
-zle -N history-substring-search-down
-
-zmodload zsh/terminfo
-if [[ -n "$terminfo[kcuu1]" ]]; then
-  bindkey "$terminfo[kcuu1]" history-substring-search-up
-fi
-if [[ -n "$terminfo[kcud1]" ]]; then
-  bindkey "$terminfo[kcud1]" history-substring-search-down
-fi
-
-#-----------------------------------------------------------------------------
-# implementation details
-#-----------------------------------------------------------------------------
-
-setopt extendedglob
-zmodload -F zsh/parameter
-
-#
-# We have to "override" some keys and widgets if the
-# zsh-syntax-highlighting plugin has not been loaded:
-#
-# https://github.com/nicoulaj/zsh-syntax-highlighting
-#
-if [[ $+functions[_zsh_highlight] -eq 0 ]]; then
-  #
-  # Dummy implementation of _zsh_highlight()
-  # that simply removes existing highlights
-  #
-  function _zsh_highlight() {
-    region_highlight=()
-  }
-
-  #
-  # Remove existing highlights when the user
-  # inserts printable characters into $BUFFER
-  #
-  function ordinary-key-press() {
-    if [[ $KEYS == [[:print:]] ]]; then
-      region_highlight=()
-    fi
-    zle .self-insert
-  }
-  zle -N self-insert ordinary-key-press
-
-  #
-  # Override ZLE widgets to invoke _zsh_highlight()
-  #
-  # https://github.com/nicoulaj/zsh-syntax-highlighting/blob/
-  # bb7fcb79fad797a40077bebaf6f4e4a93c9d8163/zsh-syntax-highlighting.zsh#L121
-  #
-  #--------------8<-------------------8<-------------------8<-----------------
-  #
-  # Copyright (c) 2010-2011 zsh-syntax-highlighting contributors
-  # All rights reserved.
-  #
-  # Redistribution and use in source and binary forms, with or without
-  # modification, are permitted provided that the following conditions are
-  # met:
-  #
-  #  * Redistributions of source code must retain the above copyright
-  #    notice, this list of conditions and the following disclaimer.
-  #
-  #  * Redistributions in binary form must reproduce the above copyright
-  #    notice, this list of conditions and the following disclaimer in the
-  #    documentation and/or other materials provided with the distribution.
-  #
-  #  * Neither the name of the zsh-syntax-highlighting contributors nor the
-  #    names of its contributors may be used to endorse or promote products
-  #    derived from this software without specific prior written permission.
-  #
-  # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
-  # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
-  # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-  # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-  # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-  # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-  # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-  # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-  # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  # Load ZSH module zsh/zleparameter, needed to override user defined widgets.
-  zmodload zsh/zleparameter 2>/dev/null || {
-    echo 'zsh-syntax-highlighting: failed loading zsh/zleparameter, exiting.' >&2
-    return -1
-  }
-
-  # Override ZLE widgets to make them invoke _zsh_highlight.
-  for event in ${${(f)"$(zle -la)"}:#(_*|orig-*|.run-help|.which-command)}; do
-    if [[ "$widgets[$event]" == completion:* ]]; then
-      eval "zle -C orig-$event ${${${widgets[$event]}#*:}/:/ } ; $event() { builtin zle orig-$event && _zsh_highlight } ; zle -N $event"
-    else
-      case $event in
-        accept-and-menu-complete)
-          eval "$event() { builtin zle .$event && _zsh_highlight } ; zle -N $event"
-          ;;
-
-        # The following widgets should NOT remove any previously
-        # applied highlighting. Therefore we do not remap them.
-        .forward-char|.backward-char|.up-line-or-history|.down-line-or-history)
-          ;;
-
-        .*)
-          clean_event=$event[2,${#event}] # Remove the leading dot in the event name
-          case ${widgets[$clean_event]-} in
-            (completion|user):*)
-              ;;
-            *)
-              eval "$clean_event() { builtin zle $event && _zsh_highlight } ; zle -N $clean_event"
-              ;;
-          esac
-          ;;
-        *)
-          ;;
-      esac
-    fi
-  done
-  unset event clean_event
-  #-------------->8------------------->8------------------->8-----------------
-fi
-
-function _history-substring-search-begin() {
-  _history_substring_search_move_cursor_eol=false
-  _history_substring_search_query_highlight=
-
-  #
-  # Continue using the previous $_history_substring_search_result by default,
-  # unless the current query was cleared or a new/different query was entered.
-  #
-  if [[ -z $BUFFER || $BUFFER != $_history_substring_search_result ]]; then
-    #
-    # For the purpose of highlighting we will also keep
-    # a version without doubly-escaped meta characters.
-    #
-    _history_substring_search_query=$BUFFER
-
-    #
-    # $BUFFER contains the text that is in the command-line currently.
-    # we put an extra "\\" before meta characters such as "\(" and "\)",
-    # so that they become "\\\(" and "\\\)".
-    #
-    _history_substring_search_query_escaped=${BUFFER//(#m)[\][()|\\*?#<>~^]/\\$MATCH}
-
-    #
-    # Find all occurrences of the search query in the history file.
-    #
-    # (k) turns it an array of line numbers.
-    #
-    # (on) seems to remove duplicates, which are default
-    #      options. They can be turned off by (ON).
-    #
-    _history_substring_search_matches=(${(kon)history[(R)(#$HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS)*${_history_substring_search_query_escaped}*]})
-
-    #
-    # Define the range of values that $_history_substring_search_match_index
-    # can take: [0, $_history_substring_search_matches_count_plus].
-    #
-    _history_substring_search_matches_count=$#_history_substring_search_matches
-    _history_substring_search_matches_count_plus=$(( _history_substring_search_matches_count + 1 ))
-    _history_substring_search_matches_count_sans=$(( _history_substring_search_matches_count - 1 ))
-
-    #
-    # If $_history_substring_search_match_index is equal to
-    # $_history_substring_search_matches_count_plus, this indicates that we
-    # are beyond the beginning of $_history_substring_search_matches.
-    #
-    # If $_history_substring_search_match_index is equal to 0, this indicates
-    # that we are beyond the end of $_history_substring_search_matches.
-    #
-    # If we have initially pressed "up" we have to initialize
-    # $_history_substring_search_match_index to
-    # $_history_substring_search_matches_count_plus so that it will be
-    # decreased to $_history_substring_search_matches_count.
-    #
-    # If we have initially pressed "down" we have to initialize
-    # $_history_substring_search_match_index to
-    # $_history_substring_search_matches_count so that it will be increased to
-    # $_history_substring_search_matches_count_plus.
-    #
-    if [[ $WIDGET == history-substring-search-down ]]; then
-       _history_substring_search_match_index=$_history_substring_search_matches_count
-    else
-      _history_substring_search_match_index=$_history_substring_search_matches_count_plus
-    fi
-  fi
-}
-
-function _history-substring-search-end() {
-  _history_substring_search_result=$BUFFER
-
-  # move the cursor to the end of the command line
-  if [[ $_history_substring_search_move_cursor_eol == true ]]; then
-    CURSOR=${#BUFFER}
-  fi
-
-  # highlight command line using zsh-syntax-highlighting
-  _zsh_highlight
-
-  # highlight the search query inside the command line
-  if [[ -n $_history_substring_search_query_highlight && -n $_history_substring_search_query ]]; then
-    #
-    # The following expression yields a variable $MBEGIN, which
-    # indicates the begin position + 1 of the first occurrence
-    # of _history_substring_search_query_escaped in $BUFFER.
-    #
-    : ${(S)BUFFER##(#m$HISTORY_SUBSTRING_SEARCH_GLOBBING_FLAGS)($_history_substring_search_query##)}
-    local begin=$(( MBEGIN - 1 ))
-    local end=$(( begin + $#_history_substring_search_query ))
-    region_highlight+=("$begin $end $_history_substring_search_query_highlight")
-  fi
-
-  # For debugging purposes:
-  # zle -R "mn: "$_history_substring_search_match_index" m#: "${#_history_substring_search_matches}
-  # read -k -t 200 && zle -U $REPLY
-
-  # Exit successfully from the history-substring-search-* widgets.
-  true
-}
-
-function _history-substring-search-up-buffer() {
-  #
-  # Check if the UP arrow was pressed to move the cursor within a multi-line
-  # buffer. This amounts to three tests:
-  #
-  # 1. $#buflines -gt 1.
-  #
-  # 2. $CURSOR -ne $#BUFFER.
-  #
-  # 3. Check if we are on the first line of the current multi-line buffer.
-  #    If so, pressing UP would amount to leaving the multi-line buffer.
-  #
-  #    We check this by adding an extra "x" to $LBUFFER, which makes
-  #    sure that xlbuflines is always equal to the number of lines
-  #    until $CURSOR (including the line with the cursor on it).
-  #
-  local buflines XLBUFFER xlbuflines
-  buflines=(${(f)BUFFER})
-  XLBUFFER=$LBUFFER"x"
-  xlbuflines=(${(f)XLBUFFER})
-
-  if [[ $#buflines -gt 1 && $CURSOR -ne $#BUFFER && $#xlbuflines -ne 1 ]]; then
-    zle up-line-or-history
-    return true
-  fi
-
-  false
-}
-
-function _history-substring-search-down-buffer() {
-  #
-  # Check if the DOWN arrow was pressed to move the cursor within a multi-line
-  # buffer. This amounts to three tests:
-  #
-  # 1. $#buflines -gt 1.
-  #
-  # 2. $CURSOR -ne $#BUFFER.
-  #
-  # 3. Check if we are on the last line of the current multi-line buffer.
-  #    If so, pressing DOWN would amount to leaving the multi-line buffer.
-  #
-  #    We check this by adding an extra "x" to $RBUFFER, which makes
-  #    sure that xrbuflines is always equal to the number of lines
-  #    from $CURSOR (including the line with the cursor on it).
-  #
-  local buflines XRBUFFER xrbuflines
-  buflines=(${(f)BUFFER})
-  XRBUFFER="x"$RBUFFER
-  xrbuflines=(${(f)XRBUFFER})
-
-  if [[ $#buflines -gt 1 && $CURSOR -ne $#BUFFER && $#xrbuflines -ne 1 ]]; then
-    zle down-line-or-history
-    return true
-  fi
-
-  false
-}
-
-function _history-substring-search-up-history() {
-  #
-  # Behave like up in ZSH, except clear the $BUFFER
-  # when beginning of history is reached like in Fish.
-  #
-  if [[ -z $_history_substring_search_query ]]; then
-
-    # we have reached the absolute top of history
-    if [[ $HISTNO -eq 1 ]]; then
-      BUFFER=
-
-    # going up from somewhere below the top of history
-    else
-      zle up-history
-    fi
-
-    return true
-  fi
-
-  false
-}
-
-function _history-substring-search-down-history() {
-  #
-  # Behave like down-history in ZSH, except clear the
-  # $BUFFER when end of history is reached like in Fish.
-  #
-  if [[ -z $_history_substring_search_query ]]; then
-
-    # going down from the absolute top of history
-    if [[ $HISTNO -eq 1 && -z $BUFFER ]]; then
-      BUFFER=${history[1]}
-      _history_substring_search_move_cursor_eol=true
-
-    # going down from somewhere above the bottom of history
-    else
-      zle down-history
-    fi
-
-    return true
-  fi
-
-  false
-}
-
-function _history-substring-search-up-search() {
-  _history_substring_search_move_cursor_eol=true
-
-  #
-  # Highlight matches during history-substring-up-search:
-  #
-  # The following constants have been initialized in
-  # _history-substring-search-up/down-search():
-  #
-  # $_history_substring_search_matches is the current list of matches
-  # $_history_substring_search_matches_count is the current number of matches
-  # $_history_substring_search_matches_count_plus is the current number of matches + 1
-  # $_history_substring_search_matches_count_sans is the current number of matches - 1
-  # $_history_substring_search_match_index is the index of the current match
-  #
-  # The range of values that $_history_substring_search_match_index can take
-  # is: [0, $_history_substring_search_matches_count_plus].  A value of 0
-  # indicates that we are beyond the end of
-  # $_history_substring_search_matches. A value of
-  # $_history_substring_search_matches_count_plus indicates that we are beyond
-  # the beginning of $_history_substring_search_matches.
-  #
-  # In _history-substring-search-up-search() the initial value of
-  # $_history_substring_search_match_index is
-  # $_history_substring_search_matches_count_plus.  This value is set in
-  # _history-substring-search-begin().  _history-substring-search-up-search()
-  # will initially decrease it to $_history_substring_search_matches_count.
-  #
-  if [[ $_history_substring_search_match_index -ge 2 ]]; then
-    #
-    # Highlight the next match:
-    #
-    # 1. Decrease the value of $_history_substring_search_match_index.
-    #
-    # 2. Use $HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-    #    to highlight the current buffer.
-    #
-    (( _history_substring_search_match_index-- ))
-    BUFFER=$history[$_history_substring_search_matches[$_history_substring_search_match_index]]
-    _history_substring_search_query_highlight=$HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-
-  elif [[ $_history_substring_search_match_index -eq 1 ]]; then
-    #
-    # We will move beyond the end of $_history_substring_search_matches:
-    #
-    # 1. Decrease the value of $_history_substring_search_match_index.
-    #
-    # 2. Save the current buffer in $_history_substring_search_old_buffer,
-    #    so that it can be retrieved by
-    #    _history-substring-search-down-search() later.
-    #
-    # 3. Make $BUFFER equal to $_history_substring_search_query.
-    #
-    # 4. Use $HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
-    #    to highlight the current buffer.
-    #
-    (( _history_substring_search_match_index-- ))
-    _history_substring_search_old_buffer=$BUFFER
-    BUFFER=$_history_substring_search_query
-    _history_substring_search_query_highlight=$HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
-
-  elif [[ $_history_substring_search_match_index -eq $_history_substring_search_matches_count_plus ]]; then
-    #
-    # We were beyond the beginning of $_history_substring_search_matches but
-    # UP makes us move back to $_history_substring_search_matches:
-    #
-    # 1. Decrease the value of $_history_substring_search_match_index.
-    #
-    # 2. Restore $BUFFER from $_history_substring_search_old_buffer.
-    #
-    # 3. Use $HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-    #    to highlight the current buffer.
-    #
-    (( _history_substring_search_match_index-- ))
-    BUFFER=$_history_substring_search_old_buffer
-    _history_substring_search_query_highlight=$HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-  fi
-}
-
-function _history-substring-search-down-search() {
-  _history_substring_search_move_cursor_eol=true
-
-  #
-  # Highlight matches during history-substring-up-search:
-  #
-  # The following constants have been initialized in
-  # _history-substring-search-up/down-search():
-  #
-  # $_history_substring_search_matches is the current list of matches
-  # $_history_substring_search_matches_count is the current number of matches
-  # $_history_substring_search_matches_count_plus is the current number of matches + 1
-  # $_history_substring_search_matches_count_sans is the current number of matches - 1
-  # $_history_substring_search_match_index is the index of the current match
-  #
-  # The range of values that $_history_substring_search_match_index can take
-  # is: [0, $_history_substring_search_matches_count_plus].  A value of 0
-  # indicates that we are beyond the end of
-  # $_history_substring_search_matches. A value of
-  # $_history_substring_search_matches_count_plus indicates that we are beyond
-  # the beginning of $_history_substring_search_matches.
-  #
-  # In _history-substring-search-down-search() the initial value of
-  # $_history_substring_search_match_index is
-  # $_history_substring_search_matches_count.  This value is set in
-  # _history-substring-search-begin().
-  # _history-substring-search-down-search() will initially increase it to
-  # $_history_substring_search_matches_count_plus.
-  #
-  if [[ $_history_substring_search_match_index -le $_history_substring_search_matches_count_sans ]]; then
-    #
-    # Highlight the next match:
-    #
-    # 1. Increase $_history_substring_search_match_index by 1.
-    #
-    # 2. Use $HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-    #    to highlight the current buffer.
-    #
-    (( _history_substring_search_match_index++ ))
-    BUFFER=$history[$_history_substring_search_matches[$_history_substring_search_match_index]]
-    _history_substring_search_query_highlight=$HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-
-  elif [[ $_history_substring_search_match_index -eq $_history_substring_search_matches_count ]]; then
-    #
-    # We will move beyond the beginning of $_history_substring_search_matches:
-    #
-    # 1. Increase $_history_substring_search_match_index by 1.
-    #
-    # 2. Save the current buffer in $_history_substring_search_old_buffer, so
-    #    that it can be retrieved by _history-substring-search-up-search()
-    #    later.
-    #
-    # 3. Make $BUFFER equal to $_history_substring_search_query.
-    #
-    # 4. Use $HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
-    #    to highlight the current buffer.
-    #
-    (( _history_substring_search_match_index++ ))
-    _history_substring_search_old_buffer=$BUFFER
-    BUFFER=$_history_substring_search_query
-    _history_substring_search_query_highlight=$HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND
-
-  elif [[ $_history_substring_search_match_index -eq 0 ]]; then
-    #
-    # We were beyond the end of $_history_substring_search_matches but DOWN
-    # makes us move back to the $_history_substring_search_matches:
-    #
-    # 1. Increase $_history_substring_search_match_index by 1.
-    #
-    # 2. Restore $BUFFER from $_history_substring_search_old_buffer.
-    #
-    # 3. Use $HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-    #    to highlight the current buffer.
-    #
-    (( _history_substring_search_match_index++ ))
-    BUFFER=$_history_substring_search_old_buffer
-    _history_substring_search_query_highlight=$HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND
-  fi
-}
-
-# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
-# vim: ft=zsh sw=2 ts=2 et
diff --git a/.oh-my-zsh/plugins/history/history.plugin.zsh b/.oh-my-zsh/plugins/history/history.plugin.zsh
deleted file mode 100644
index 0f4aa4b..0000000
--- a/.oh-my-zsh/plugins/history/history.plugin.zsh
+++ /dev/null
@@ -1,8 +0,0 @@
-alias h='history'
-
-function hs
-{
-    history | grep $*
-}
-
-alias hsi='hs -i'
diff --git a/.oh-my-zsh/plugins/httpie/httpie.plugin.zsh b/.oh-my-zsh/plugins/httpie/httpie.plugin.zsh
deleted file mode 100644
index 68ead6c..0000000
--- a/.oh-my-zsh/plugins/httpie/httpie.plugin.zsh
+++ /dev/null
@@ -1,33 +0,0 @@
-function _httpie_completion() {
-  _arguments -C \
-    '(- 1 *)--version[display version information]' \
-    '(-j|--json)'{-j,--json}'[(default) Data items from the command line are serialized as a JSON object]' \
-    '(-f|--form)'{-f,--form}'[Data items from the command line are serialized as form fields]' \
-    '(--pretty)--pretty[ Controls output processing]:options' \
-    '(-s|--style)'{-s,--style}'[Output coloring style]' \
-    '(-p|--print)'{-p,--print}'[String specifying what the output should contain: H(request headers), B(request body), h(response headers), b(response body)]' \
-    '(-v|--verbose)'{-v,--verbose}'[Print the whole request as well as the response. Shortcut for --print=HBbh.]' \
-    '(-h|--headers)'{-h,--headers}'[Print only the response headers. Shortcut for --print=h]' \
-    '(-b|--body)'{-b,--body}'[Print only the response body. Shortcut for --print=b]' \
-    '(-S|--stream)'{-S,--stream}'[Always stream the output by line, i.e., behave like `tail -f'"'"']' \
-    '(-o|--output)'{-o,--output}'[Save output to FILE]:file:_files' \
-    '(-d|--download)'{-d,--download}'[Do not print the response body to stdout. Rather, download it and store it in a file. The filename is guessed unless specified with --output filename. This action is similar to the default behaviour of wget.]' \
-    '(-c|--continue)'{-c,--continue}'[Resume an interrupted download. Note that the --output option needs to be specified as well.]' \
-    '(--session)--session[Create, or reuse and update a session. Within a session, custom headers, auth credential, as well as any cookies sent by the server persist between requests]:file:_files' \
-    '(--session-read-only)--session-read-only[Create or read a session without updating it form the request/response exchange]:file:_files' \
-    '(-a|--auth)'{-a,--auth}'[ If only the username is provided (-a username), HTTPie will prompt for the password]' \
-    '(--auth-type)--auth-type[ The authentication mechanism to be used. Defaults to "basic".]' \
-    '(--proxy)--proxy[ String mapping protocol to the URL of the proxy]' \
-    '(--follow)--follow[Set this flag if full redirects are allowed (e.g. re-POST-ing of data at new Location).]' \
-    '(--verify)--verify[ Set to "no" to skip checking the host'"'"'s SSL certificate. You can also pass the path to a CA_BUNDLE file for private certs. You can also set the REQUESTS_CA_BUNDLE  environment variable. Defaults to "yes".]' \
-    '(--timeout)--timeout[ The connection timeout of the request in seconds. The default value is 30 seconds]' \
-    '(--check-status)--check-status[By default, HTTPie exits with 0 when no network or other fatal errors occur. This flag instructs HTTPie to also check the HTTP status code and exit with an error if the status indicates one.]' \
-    '(--ignore-stdin)--ignore-stdin[Do not attempt to read stdin]' \
-    '(--help)--help[Show this help message and exit]' \
-    '(--traceback)--traceback[Prints exception traceback should one occur]' \
-    '(--debug)--debug[Prints exception traceback should one occur, and also other information that is useful for debugging HTTPie itself and for reporting bugs]' \
-    '1: :->cmds' \
-    '*: :->args' && ret=0
-}
-
-compdef _httpie_completion http
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/iwhois/iwhois.plugin.zsh b/.oh-my-zsh/plugins/iwhois/iwhois.plugin.zsh
deleted file mode 100644
index 38790bf..0000000
--- a/.oh-my-zsh/plugins/iwhois/iwhois.plugin.zsh
+++ /dev/null
@@ -1,8 +0,0 @@
-# provide a whois command with a more accurate and up to date list of whois
-# servers using CNAMES via whois.geek.nz
-
-function iwhois() {
-    resolver="whois.geek.nz"
-    tld=`echo ${@: -1} | awk -F "." '{print $NF}'`
-    whois -h ${tld}.${resolver} "$@" ;
-}
diff --git a/.oh-my-zsh/plugins/jake-node/jake-node.plugin.zsh b/.oh-my-zsh/plugins/jake-node/jake-node.plugin.zsh
deleted file mode 100644
index a9eef40..0000000
--- a/.oh-my-zsh/plugins/jake-node/jake-node.plugin.zsh
+++ /dev/null
@@ -1,14 +0,0 @@
-#---oh-my-zsh plugin : task Autocomplete for Jake tool---
-# Jake : https://github.com/mde/jake
-# Warning : Jakefile should have the right case : Jakefile or jakefile
-# Tested on : MacOSX 10.7 (Lion), Ubuntu 11.10
-# Author : Alexandre Lacheze (@al3xstrat)
-# Inspiration : http://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh 
-
-function _jake () {
-  if [ -f Jakefile ]||[ -f jakefile ]; then
-    compadd `jake -T | cut -d " " -f 2 | sed -E "s/.\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"`
-  fi
-}
-
-compdef _jake jake
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/jhbuild/README.md b/.oh-my-zsh/plugins/jhbuild/README.md
deleted file mode 100644
index 9105269..0000000
--- a/.oh-my-zsh/plugins/jhbuild/README.md
+++ /dev/null
@@ -1,4 +0,0 @@
-## JHBuild
-**Maintainer:** [Miguel Vaello](https://github.com/miguxbe)
-
-This plugin adds some jhbuild aliases and increase the completion function provided by zsh.
diff --git a/.oh-my-zsh/plugins/jhbuild/jhbuild.plugin.zsh b/.oh-my-zsh/plugins/jhbuild/jhbuild.plugin.zsh
deleted file mode 100644
index fed1bc9..0000000
--- a/.oh-my-zsh/plugins/jhbuild/jhbuild.plugin.zsh
+++ /dev/null
@@ -1,28 +0,0 @@
-# Aliases
-#
-alias jh='jhbuild'
-# Build
-alias jhb='jhbuild build'
-alias jhbo='jhbuild buildone'
-# Checks
-alias jhckb='jhbuild checkbranches'
-alias jhckm='jhbuild checkmodulesets'
-# Info & list
-alias jhi='jhbuild info'
-alias jhl='jhbuild list'
-# Clean
-alias jhc='jhbuild clean'
-alias jhco='jhbuild cleanone'
-# Run
-alias jhr='jhbuild run'
-# Depends
-alias jhrd='jhbuild rdepends'
-alias jhsd='jhbuild sysdeps'
-# Update
-alias jhu='jhbuild update'
-alias jhuo='jhbuild updateone'
-# Uninstall
-alias jhun='jhbuild uninstall'
-
-
-
diff --git a/.oh-my-zsh/plugins/jira/jira.plugin.zsh b/.oh-my-zsh/plugins/jira/jira.plugin.zsh
deleted file mode 100644
index 4a36b88..0000000
--- a/.oh-my-zsh/plugins/jira/jira.plugin.zsh
+++ /dev/null
@@ -1,90 +0,0 @@
-# To use: add a .jira-url file in the base of your project
-#         You can also set JIRA_URL in your .zshrc or put .jira-url in your home directory
-#         .jira-url in the current directory takes precedence
-#
-# If you use Rapid Board, set:
-#JIRA_RAPID_BOARD="true"
-# in you .zshrc
-#
-# 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 () {
-  local open_cmd
-  if [[ "$OSTYPE" = darwin* ]]; then
-    open_cmd='open'
-  else
-    open_cmd='xdg-open'
-  fi
-
-  if [ -f .jira-url ]; then
-    jira_url=$(cat .jira-url)
-  elif [ -f ~/.jira-url ]; then
-    jira_url=$(cat ~/.jira-url)
-  elif [[ "x$JIRA_URL" != "x" ]]; then
-    jira_url=$JIRA_URL
-  else
-    echo "JIRA url is not specified anywhere."
-    return 1
-  fi
-
-  if [ -f .jira-prefix ]; then
-    jira_prefix=$(cat .jira-prefix)
-  elif [ -f ~/.jira-prefix ]; then
-    jira_prefix=$(cat ~/.jira-prefix)
-  else
-    jira_prefix=""
-  fi
-
-  if [ -z "$1" ]; then
-    echo "Opening new issue"
-    $open_cmd "${jira_url}/secure/CreateIssue!default.jspa"
-  elif [[ "$1" = "assigned" || "$1" = "reported" ]]; then
-    jira_query $@
-  else
-    echo "Opening issue #$1"
-    if [[ "x$JIRA_RAPID_BOARD" = "xtrue" ]]; then
-      $open_cmd  "$jira_url/issues/$jira_prefix$1"
-    else
-      $open_cmd  "$jira_url/browse/$jira_prefix$1"
-    fi
-  fi
-}
-
-jira_name () {
-  if [[ -z "$1" ]]; then
-    if [[ "x${JIRA_NAME}" != "x" ]]; then
-      jira_name=${JIRA_NAME}
-    else
-      echo "JIRA_NAME not specified"
-      return 1
-    fi
-  else
-    jira_name=$@
-  fi
-}
-
-jira_query () {
-    verb="$1"
-    if [[ "${verb}" = "reported" ]]; then
-      lookup=reporter
-      preposition=by
-    elif [[ "${verb}" = "assigned" ]]; then
-      lookup=assignee
-      preposition=to
-    else
-      echo "not a valid lookup $verb"
-      return 1
-    fi
-    shift 1
-    jira_name $@
-    if [[ $? = 1 ]]; then
-        return 1
-    fi
-    echo "Browsing issues ${verb} ${preposition} ${jira_name}"
-    $open_cmd "${jira_url}/secure/IssueNavigator.jspa?reset=true&jqlQuery=${lookup}+%3D+%22${jira_name}%22+AND+resolution+%3D+unresolved+ORDER+BY+priority+DESC%2C+created+ASC"
-}
-
-alias jira='open_jira_issue'
-
diff --git a/.oh-my-zsh/plugins/jruby/jruby.plugin.zsh b/.oh-my-zsh/plugins/jruby/jruby.plugin.zsh
deleted file mode 100644
index bb7975b..0000000
--- a/.oh-my-zsh/plugins/jruby/jruby.plugin.zsh
+++ /dev/null
@@ -1,4 +0,0 @@
-# Aliases
-alias jrspec='jruby --debug -S rspec --debug'
-alias jprofile='jruby --profile.api -S rspec'
-alias jexec='jruby -S'
diff --git a/.oh-my-zsh/plugins/jsontools/README.md b/.oh-my-zsh/plugins/jsontools/README.md
deleted file mode 100644
index 4faf58b..0000000
--- a/.oh-my-zsh/plugins/jsontools/README.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# jsontools
-
-Handy command line tools for dealing with json data.
-
-## Tools
-
-- **pp_json** - pretty prints json
-- **is_json** - returns true if valid json; false otherwise
-- **urlencode_json** - returns a url encoded string for the given json 
-- **urldecode_json** - returns decoded json for the given url encoded string
-
-## Usage
-Usage is simple...just take your json data and pipe it into the appropriate jsontool.
-```sh
- | 
-```
-## Examples
-
-##### pp_json
-
-```sh
-# curl json data and pretty print the results
-curl https://coderwall.com/bobwilliams.json | pp_json
-```
-
-##### is_json
-```sh
-# pretty print the contents of an existing json file
-less data.json | is_json
-```
-
-##### urlencode_json
-```sh
-# json data directly from the command line
-echo '{"b":2, "a":1}' | urlencode_json
-```
-
-##### urldecode_json
-```sh
-# url encoded string to decode
-echo '%7B%22b%22:2,%20%22a%22:1%7D%0A' | urldecode_json
-```
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/jsontools/jsontools.plugin.zsh b/.oh-my-zsh/plugins/jsontools/jsontools.plugin.zsh
deleted file mode 100644
index 20d5eb1..0000000
--- a/.oh-my-zsh/plugins/jsontools/jsontools.plugin.zsh
+++ /dev/null
@@ -1,39 +0,0 @@
-# JSON Tools
-# Adds command line aliases useful for dealing with JSON
-
-if [[ $(whence $JSONTOOLS_METHOD) = "" ]]; then
-	JSONTOOLS_METHOD=""
-fi
-
-if [[ $(whence node) != "" && ( "x$JSONTOOLS_METHOD" = "x"  || "x$JSONTOOLS_METHOD" = "xnode" ) ]]; then
-	alias pp_json='xargs -0 node -e "console.log(JSON.stringify(JSON.parse(process.argv[1]), null, 4));"'
-	alias is_json='xargs -0 node -e "try {json = JSON.parse(process.argv[1]);} catch (e) { console.log(false); json = null; } if(json) { console.log(true); }"'
-	alias urlencode_json='xargs -0 node -e "console.log(encodeURIComponent(process.argv[1]))"'
-	alias urldecode_json='xargs -0 node -e "console.log(decodeURIComponent(process.argv[1]))"'
-elif [[ $(whence python) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xpython" ) ]]; then
-	alias pp_json='python -mjson.tool'
-	alias is_json='python -c "
-import json, sys;
-try: 
-	json.loads(sys.stdin.read())
-except ValueError, e: 
-	print False
-else:
-	print True
-sys.exit(0)"'
-	alias urlencode_json='python -c "
-import urllib, json, sys;
-print urllib.quote_plus(sys.stdin.read())
-sys.exit(0)"'
-	alias urldecode_json='python -c "
-import urllib, json, sys;
-print urllib.unquote_plus(sys.stdin.read())
-sys.exit(0)"'
-elif [[ $(whence ruby) != "" && ( "x$JSONTOOLS_METHOD" = "x" || "x$JSONTOOLS_METHOD" = "xruby" ) ]]; then
-	alias pp_json='ruby -e "require \"json\"; require \"yaml\"; puts JSON.parse(STDIN.read).to_yaml"'
-	alias is_json='ruby -e "require \"json\"; begin; JSON.parse(STDIN.read); puts true; rescue Exception => e; puts false; end"'
-	alias urlencode_json='ruby -e "require \"uri\"; puts URI.escape(STDIN.read)"'
-	alias urldecode_json='ruby -e "require \"uri\"; puts URI.unescape(STDIN.read)"'
-fi
-
-unset JSONTOOLS_METHOD
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/jump/jump.plugin.zsh b/.oh-my-zsh/plugins/jump/jump.plugin.zsh
deleted file mode 100644
index d082c11..0000000
--- a/.oh-my-zsh/plugins/jump/jump.plugin.zsh
+++ /dev/null
@@ -1,57 +0,0 @@
-# Easily jump around the file system by manually adding marks
-# marks are stored as symbolic links in the directory $MARKPATH (default $HOME/.marks)
-#
-# jump FOO: jump to a mark named FOO
-# mark FOO: create a mark named FOO
-# unmark FOO: delete a mark
-# marks: lists all marks
-#
-export MARKPATH=$HOME/.marks
-
-jump() {
-	cd -P "$MARKPATH/$1" 2>/dev/null || echo "No such mark: $1"
-}
-
-mark() {
-	if (( $# == 0 )); then
-		MARK=$(basename "$PWD")
-	else
-		MARK="$1"
-	fi
-	if read -q \?"Mark $PWD as ${MARK}? (y/n) "; then
-		mkdir -p "$MARKPATH"; ln -s "$PWD" "$MARKPATH/$MARK"
-	fi
-}
-
-unmark() {
-	rm -i "$MARKPATH/$1"
-}
-
-marks() {
-	for link in $MARKPATH/*(@); do
-		local markname="$fg[cyan]${link:t}$reset_color"
-		local markpath="$fg[blue]$(readlink $link)$reset_color"
-		printf "%s\t" $markname
-		printf "-> %s \t\n" $markpath
-	done
-}
-
-_completemarks() {
-	if [[ $(ls "${MARKPATH}" | wc -l) -gt 1 ]]; then
-		reply=($(ls $MARKPATH/**/*(-) | grep : | sed -E 's/(.*)\/([_a-zA-Z0-9\.\-]*):$/\2/g'))
-	else
-		if readlink -e "${MARKPATH}"/* &>/dev/null; then
-			reply=($(ls "${MARKPATH}"))
-		fi
-	fi
-}
-compctl -K _completemarks jump
-compctl -K _completemarks unmark
-
-_mark_expansion() {
-	setopt extendedglob
-	autoload -U modify-current-argument
-	modify-current-argument '$(readlink "$MARKPATH/$ARG")'
-}
-zle -N _mark_expansion
-bindkey "^g" _mark_expansion
diff --git a/.oh-my-zsh/plugins/kate/kate.plugin.zsh b/.oh-my-zsh/plugins/kate/kate.plugin.zsh
deleted file mode 100644
index eb16522..0000000
--- a/.oh-my-zsh/plugins/kate/kate.plugin.zsh
+++ /dev/null
@@ -1,9 +0,0 @@
-
-# Kate
-# Start kate always silent
-alias kate='kate >/dev/null 2>&1'
-
-function kt () {
-  cd $1
-  kate $1
-}
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/knife/_knife b/.oh-my-zsh/plugins/knife/_knife
deleted file mode 100644
index 1631492..0000000
--- a/.oh-my-zsh/plugins/knife/_knife
+++ /dev/null
@@ -1,201 +0,0 @@
-#compdef knife
-
-# You can override the path to knife.rb and your cookbooks by setting
-# KNIFE_CONF_PATH=/path/to/my/.chef/knife.rb
-# KNIFE_COOKBOOK_PATH=/path/to/my/chef/cookbooks
-# Read around where these are used for more detail.
-
-# These flags should be available everywhere according to man knife
-knife_general_flags=( --help --server-url --key --config --editor --format --log_level --logfile --no-editor --user --print-after --version --yes )
-
-# knife has a very special syntax, some example calls are:
-# knife status
-# knife cookbook list
-# knife role show ROLENAME
-# knife data bag show DATABAGNAME
-# knife role show ROLENAME --attribute ATTRIBUTENAME
-# knife cookbook show COOKBOOKNAME COOKBOOKVERSION recipes
-
-# The -Q switch in compadd allow for completions of things like "data bag" without having to go through two rounds of completion and avoids zsh inserting a \ for escaping spaces
-_knife() {
-  local curcontext="$curcontext" state line
-  typeset -A opt_args
-  cloudproviders=(bluebox ec2 rackspace slicehost terremark)
-  _arguments \
-    '1: :->knifecmd'\
-    '2: :->knifesubcmd'\
-    '3: :->knifesubcmd2' \
-    '4: :->knifesubcmd3' \
-    '5: :->knifesubcmd4' \
-    '6: :->knifesubcmd5'
-  
-  case $state in
-  knifecmd)
-    compadd -Q "$@" bootstrap client configure cookbook "cookbook site" "data bag" diff exec environment index node recipe role search ssh status upload vault windows $cloudproviders
-  ;;
-  knifesubcmd)
-    case $words[2] in
-    (bluebox|ec2|rackspace|slicehost|terremark)
-      compadd "$@" server images
-    ;;
-    client)
-      compadd -Q "$@" "bulk delete" list create show delete edit reregister
-    ;;
-    configure)
-      compadd "$@" client
-    ;;
-    cookbook)
-      compadd -Q "$@" test list create download delete "metadata from" show "bulk delete" metadata upload
-    ;;
-    diff)
-      _arguments '*:file or directory:_files -g "*"'
-    ;;
-    environment)
-      compadd -Q "$@" list create delete edit show "from file"
-    ;;
-    node)
-     compadd -Q "$@" "from file" create show edit delete list run_list "bulk delete"
-    ;;
-    recipe)
-     compadd "$@" list
-    ;;
-    role)
-      compadd -Q "$@" "bulk delete" create delete edit "from file" list show
-    ;; 
-    upload)
-     _arguments '*:file or directory:_files -g "*"'
-    ;;
-    vault)
-      compadd -Q "$@" create decrypt delete edit remove "rotate all keys" "rotate keys" show update
-    ;;
-    windows)
-      compadd "$@" bootstrap
-    ;;
-    *)
-    _arguments '2:Subsubcommands:($(_knife_options1))'
-    esac
-   ;;
-   knifesubcmd2)
-    case $words[3] in
-     server)
-      compadd "$@" list create delete
-    ;;
-     images)
-      compadd "$@" list
-    ;;
-     site)
-      compadd "$@" vendor show share search download list unshare
-    ;;
-     (show|delete|edit)
-     _arguments '3:Subsubcommands:($(_chef_$words[2]s_remote))'
-    ;;
-    (upload|test)
-     _arguments '3:Subsubcommands:($(_chef_$words[2]s_local) --all)'
-    ;;
-    list)
-     compadd -a "$@" knife_general_flags
-    ;;
-    bag)
-      compadd -Q "$@" show edit list "from file" create delete
-    ;;
-    *)
-      _arguments '3:Subsubcommands:($(_knife_options2))'
-    esac
-   ;;
-   knifesubcmd3)
-     case $words[3] in
-      show)
-       case $words[2] in
-       cookbook)
-          versioncomp=1
-          _arguments '4:Cookbookversions:($(_cookbook_versions) latest)'
-       ;;
-       (node|client|role)
-         compadd "$@" --attribute
-       esac
-     esac
-     case $words[4] in
-     (show|edit)
-     _arguments '4:Subsubsubcommands:($(_chef_$words[2]_$words[3]s_remote))'
-    ;;
-     file)
-     _arguments '*:file or directory:_files -g "*.(rb|json)"'
-    ;;
-      list)
-     compadd -a "$@" knife_general_flags
-    ;;
-        *)
-       _arguments '*:Subsubcommands:($(_knife_options3))'
-    esac
-    ;;
-    knifesubcmd4)
-      if (( versioncomp > 0 )); then
-        compadd "$@" attributes definitions files libraries providers recipes resources templates
-      else
-       _arguments '*:Subsubcommands:($(_knife_options2))'
-      fi
-    ;; 
-    knifesubcmd5) 
-      _arguments '*:Subsubcommands:($(_knife_options3))'
-   esac
-}
-
-# Helper functions to provide the argument completion for several depths of commands
-_knife_options1() {
- ( for line in $( knife $words[2] --help | grep -v "^knife" ); do echo $line | grep "\-\-"; done )
-}
-
-_knife_options2() {
- ( for line in $( knife $words[2] $words[3] --help | grep -v "^knife" ); do echo $line | grep "\-\-"; done )
-}
-
-_knife_options3() {
- ( for line in $( knife $words[2] $words[3] $words[4] --help | grep -v "^knife" ); do echo $line | grep "\-\-"; done )
-}
-
-# The chef_x_remote functions use knife to get a list of objects of type x on the server
-_chef_roles_remote() {
- (knife role list --format json | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
-}
-
-_chef_clients_remote() {
- (knife client list --format json | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
-}
-
-_chef_nodes_remote() {
- (knife node list --format json | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
-}
-
-_chef_cookbooks_remote() {
- (knife cookbook list --format json | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
-}
-
-_chef_sitecookbooks_remote() {
- (knife cookbook site list --format json | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
-}
-
-_chef_data_bags_remote() {
- (knife data bag list --format json | grep \" | awk '{print $1}' | awk -F"," '{print $1}' | awk -F"\"" '{print $2}')
-}
-
-_chef_environments_remote() {
-  (knife environment list | awk '{print $1}')
-}
-
-# The chef_x_local functions use the knife config to find the paths of relevant objects x to be uploaded to the server
-_chef_cookbooks_local() {
-  
-  local knife_rb=${KNIFE_CONF_PATH:-${HOME}/.chef/knife.rb}
-  if [ -f ./.chef/knife.rb ]; then
-    knife_rb="./.chef/knife.rb"
-  fi
-  local cookbook_path=${KNIFE_COOKBOOK_PATH:-$(grep cookbook_path $knife_rb | awk 'BEGIN {FS = "[" }; {print $2}' | sed 's/\,//g' | sed "s/'//g" | sed 's/\(.*\)]/\1/' )}
-  (for i in $cookbook_path; do ls $i; done)
-}
-
-# This function extracts the available cookbook versions on the chef server
-_cookbook_versions() {
-  (knife cookbook show $words[4] | grep -v $words[4] | grep -v -E '\]|\[|\{|\}' | sed 's/ //g' | sed 's/"//g')
-}
-
-_knife "$@"
diff --git a/.oh-my-zsh/plugins/knife_ssh/knife_ssh.plugin.zsh b/.oh-my-zsh/plugins/knife_ssh/knife_ssh.plugin.zsh
deleted file mode 100644
index 7fdd42a..0000000
--- a/.oh-my-zsh/plugins/knife_ssh/knife_ssh.plugin.zsh
+++ /dev/null
@@ -1,18 +0,0 @@
-function knife_ssh() {
-  grep -q $1 ~/.knife_comp~ 2> /dev/null || rm -f ~/.knife_comp~;
-  ssh $(knife node show $1 | awk '/IP:/{print $2}')
-}
-
-_knife_ssh() {
-  if hash knife 2>/dev/null; then
-    if [[ ! -f ~/.knife_comp~ ]]; then
-      echo "\nGenerating ~/.knife_comp~..." >/dev/stderr
-      knife node list > ~/.knife_comp~
-    fi
-    compadd $(<~/.knife_comp~)
-  else
-    echo "Could not find knife" > /dev/stderr;
-  fi
-}
-
-compdef _knife_ssh knife_ssh
diff --git a/.oh-my-zsh/plugins/laravel/_artisan b/.oh-my-zsh/plugins/laravel/_artisan
deleted file mode 100644
index 8637514..0000000
--- a/.oh-my-zsh/plugins/laravel/_artisan
+++ /dev/null
@@ -1,40 +0,0 @@
-#compdef artisan
-
-# Laravel autocompletion
-# Author: John Hamelink 
-#
-# 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
diff --git a/.oh-my-zsh/plugins/laravel/laravel.plugin.zsh b/.oh-my-zsh/plugins/laravel/laravel.plugin.zsh
deleted file mode 100644
index ed932ee..0000000
--- a/.oh-my-zsh/plugins/laravel/laravel.plugin.zsh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!zsh
-alias artisan='php artisan'
-alias bob='php artisan bob::build'
diff --git a/.oh-my-zsh/plugins/laravel4/laravel4.plugin.zsh b/.oh-my-zsh/plugins/laravel4/laravel4.plugin.zsh
deleted file mode 100644
index 0edc849..0000000
--- a/.oh-my-zsh/plugins/laravel4/laravel4.plugin.zsh
+++ /dev/null
@@ -1,20 +0,0 @@
-# Laravel4 basic command completion
-_laravel4_get_command_list () {
-	php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
-}
-
-_laravel4 () {
-  if [ -f artisan ]; then
-    compadd `_laravel4_get_command_list`
-  fi
-}
-
-compdef _laravel4 artisan
-compdef _laravel4 la4
-
-#Alias
-alias la4='php artisan'
-
-alias la4dump='php artisan dump-autoload'
-alias la4cache='php artisan cache:clear'
-alias la4routes='php artisan routes'
diff --git a/.oh-my-zsh/plugins/laravel5/laravel5.plugin.zsh b/.oh-my-zsh/plugins/laravel5/laravel5.plugin.zsh
deleted file mode 100644
index 2afa993..0000000
--- a/.oh-my-zsh/plugins/laravel5/laravel5.plugin.zsh
+++ /dev/null
@@ -1,20 +0,0 @@
-# Laravel5 basic command completion
-_laravel5_get_command_list () {
-	php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
-}
-
-_laravel5 () {
-  if [ -f artisan ]; then
-    compadd `_laravel5_get_command_list`
-  fi
-}
-
-compdef _laravel5 artisan
-compdef _laravel5 la5
-
-#Alias
-alias la5='php artisan'
-
-alias la5dump='php artisan dump-autoload'
-alias la5cache='php artisan cache:clear'
-alias la5routes='php artisan routes'
diff --git a/.oh-my-zsh/plugins/last-working-dir/last-working-dir.plugin.zsh b/.oh-my-zsh/plugins/last-working-dir/last-working-dir.plugin.zsh
deleted file mode 100644
index 4fa6fcc..0000000
--- a/.oh-my-zsh/plugins/last-working-dir/last-working-dir.plugin.zsh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/usr/bin/env zsh
-# Keeps track of the last used working directory and automatically jumps
-# into it for new shells.
-
-# Flag indicating if we've previously jumped to last directory.
-typeset -g ZSH_LAST_WORKING_DIRECTORY
-mkdir -p $ZSH_CACHE_DIR
-cache_file="$ZSH_CACHE_DIR/last-working-dir"
-
-# Updates the last directory once directory is changed.
-function chpwd() {
-  # Use >| in case noclobber is set to avoid "file exists" error
-	pwd >| "$cache_file"
-}
-
-# Changes directory to the last working directory.
-function lwd() {
-	[[ ! -r "$cache_file" ]] || cd `cat "$cache_file"`
-}
-
-# Automatically jump to last working directory unless this isn't the first time
-# this plugin has been loaded.
-if [[ -z "$ZSH_LAST_WORKING_DIRECTORY" ]]; then
-	lwd 2>/dev/null && ZSH_LAST_WORKING_DIRECTORY=1 || true
-fi
diff --git a/.oh-my-zsh/plugins/lein/lein.plugin.zsh b/.oh-my-zsh/plugins/lein/lein.plugin.zsh
deleted file mode 100644
index 11c9297..0000000
--- a/.oh-my-zsh/plugins/lein/lein.plugin.zsh
+++ /dev/null
@@ -1,41 +0,0 @@
-function _lein_commands() {
-    local ret=1 state
-    _arguments ':subcommand:->subcommand' && ret=0
-
-    case $state in
-      subcommand)
-        subcommands=(
-          "classpath:print the classpath of the current project"
-          "clean:remove compiled files and dependencies from project"
-          "compile:ahead-of-time compile the project"
-          "deploy:build jar and deploy to remote repository"
-          "deps:download and install all dependencies"
-          "help:display a list of tasks or help for a given task"
-          "install:install the project and its dependencies in your local repository"
-          "int:enter an interactive task shell"
-          "interactive:enter an interactive task shell"
-          "jack-in:jack in to a clojure slime session from emacs."
-          "jar:create a jar file containing the compiled .class files"
-          "javac:compile java source files"
-          "new:create a new project skeleton"
-          "plugin:manage user-level plugins"
-          "pom:write a pom.xml file to disk for maven interop"
-          "repl:start a repl session either with the current project or standalone"
-          "retest:run only the test namespaces which failed last time around"
-          "run:run the project's -main function"
-          "search:search remote maven repositories for matching jars"
-          "swank:launch swank server for Emacs to connect"
-          "test:run the project's tests"
-          "test!:run a project's tests after cleaning and fetching dependencies"
-          "trampoline:run a task without nesting the project's JVM inside Leiningen's."
-          "uberjar:Create a jar including the contents of each of deps"
-          "upgrade:upgrade leiningen to the latest stable release"
-          "version:print leiningen's version"
-        )
-        _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
-    esac
-
-    return ret
-}
-
-compdef _lein_commands lein
diff --git a/.oh-my-zsh/plugins/lighthouse/lighthouse.plugin.zsh b/.oh-my-zsh/plugins/lighthouse/lighthouse.plugin.zsh
deleted file mode 100644
index 7661c6a..0000000
--- a/.oh-my-zsh/plugins/lighthouse/lighthouse.plugin.zsh
+++ /dev/null
@@ -1,16 +0,0 @@
-# To use: add a .lighthouse file into your directory with the URL to the
-# individual project. For example:
-# https://rails.lighthouseapp.com/projects/8994
-# Example usage: http://screencast.com/t/ZDgwNDUwNT
-open_lighthouse_ticket () {
-  if [ ! -f .lighthouse-url ]; then
-    echo "There is no .lighthouse-url file in the current directory..."
-    return 0;
-  else
-    lighthouse_url=$(cat .lighthouse-url);
-    echo "Opening ticket #$1";
-    `open $lighthouse_url/tickets/$1`;
-  fi
-}
-
-alias lho='open_lighthouse_ticket'
diff --git a/.oh-my-zsh/plugins/lol/lol.plugin.zsh b/.oh-my-zsh/plugins/lol/lol.plugin.zsh
deleted file mode 100644
index 1b32ec2..0000000
--- a/.oh-my-zsh/plugins/lol/lol.plugin.zsh
+++ /dev/null
@@ -1,50 +0,0 @@
-# LOL!!1
-# Source: http://aur.archlinux.org/packages/lolbash/lolbash/lolbash.sh
-
-alias wtf='dmesg'
-alias onoz='cat /var/log/errors.log'
-alias rtfm='man'
-
-alias :3='echo'
-alias visible='echo'
-alias invisible='cat'
-alias moar='more'
-alias tldr='less'
-alias alwayz='tail -f'
-
-alias icanhas='mkdir'
-alias gimmeh='touch'
-alias donotwant='rm'
-alias dowant='cp'
-alias gtfo='mv'
-alias nowai='chmod'
-
-alias hai='cd'
-alias iz='ls'
-alias plz='pwd'
-alias ihasbucket='df -h'
-
-alias inur='locate'
-alias iminurbase='finger'
-
-alias btw='nice'
-alias obtw='nohup'
-
-alias nomz='ps aux'
-alias nomnom='killall'
-
-alias byes='exit'
-alias cya='reboot'
-alias kthxbai='halt'
-
-alias pwned='ssh'
-
-alias hackzor='git init'
-alias rulz='git push'
-alias bringz='git pull'
-alias chicken='git add'
-alias oanward='git commit -m'
-alias ooanward='git commit -am'
-alias letcat='git checkout'
-alias violenz='git rebase'
-
diff --git a/.oh-my-zsh/plugins/macports/_port b/.oh-my-zsh/plugins/macports/_port
deleted file mode 100644
index 06d7fb4..0000000
--- a/.oh-my-zsh/plugins/macports/_port
+++ /dev/null
@@ -1,89 +0,0 @@
-#compdef port
-
-local subcmds 
-
-# we cache the list of ports
-# we shall use some cache policy to avoid problems with new ports
-if (( ! $+portlist )); then
-	portlist=($(port echo all; echo "all current active inactive installed uninstalled outdated"))
-fi
-
-subcmds=(
-'activate'
-'archive'
-'build'
-'cat'
-'clean'
-'configure'
-'contents'
-'deactivate'
-'dependents'
-'deps'
-'destroot'
-'dir'
-'distcheck'
-'distclean'
-'dmg'
-'echo'
-'edit'
-'extract'
-'fetch'
-'file'
-'help'
-'info'
-'install' 
-'installed' 
-'list'
-'livecheck'
-'location'
-'mpkg'
-'outdated'
-'patch'
-'pkg'
-'provides'
-'rpmpackage'
-'search'
-'selfupdate'
-'sync'
-'test'
-'unarchive'
-'uninstall'
-'upgrade' 
-'variants'
-'version'
-)
-
-_arguments -C \
-'-v[verbose mode (generate verbose messages)]' \
-'-d[debug mode (generate debugging messages)]' \
-'-q[quiet mode (suppress messages)]' \
-'-D[specify portdir]' \
-'-k[keep mode (do not autoclean after install)]' \
-'-n[dont follow dependencies in upgrade (only for upgrading)]' \
-'-a[upgrade all installed ports (only for upgrading)]' \
-'-u[uninstall non-active ports when upgrading and uninstalling]' \
-'-f[force mode (ignore state file)]' \
-'-s[source-only mode]' \
-'-b[binary-only mode]' \
-'-o[honor state files older than Portfile]' \
-'*::command:->command' \
-&& return 0
-
-case $state in
-	command)
-	if ((CURRENT == 1)); then
-		state=subcommands
-	else
-		state=portname
-	fi
-	;;
-esac
-
-case $state in
-	subcommands)
-	_describe -t commands 'port commands' subcmds
-	;;
-	portname)
-	_describe -t commands 'available ports' portlist
-	;;
-esac
diff --git a/.oh-my-zsh/plugins/macports/macports.plugin.zsh b/.oh-my-zsh/plugins/macports/macports.plugin.zsh
deleted file mode 100644
index 277352e..0000000
--- a/.oh-my-zsh/plugins/macports/macports.plugin.zsh
+++ /dev/null
@@ -1,8 +0,0 @@
-#Aliases
-alias pc="sudo port clean --all installed"
-alias pi="sudo port install $1"
-alias psu="sudo port selfupdate"
-alias puni="sudo port uninstall inactive"
-alias puo="sudo port upgrade outdated"
-alias pup="psu && puo"
-
diff --git a/.oh-my-zsh/plugins/marked2/README.md b/.oh-my-zsh/plugins/marked2/README.md
deleted file mode 100644
index 101343a..0000000
--- a/.oh-my-zsh/plugins/marked2/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
-## marked2
-
-Plugin for Marked 2, a previewer for Markdown files on Mac OS X 
-
-### Requirements
-
- * [Marked 2](http://marked2app.com)
-
-### Usage
-
- * If `marked` is called without an argument, open Marked
-
- * If `marked` is passed a file, open it in Marked
diff --git a/.oh-my-zsh/plugins/marked2/marked2.plugin.zsh b/.oh-my-zsh/plugins/marked2/marked2.plugin.zsh
deleted file mode 100644
index 56863ad..0000000
--- a/.oh-my-zsh/plugins/marked2/marked2.plugin.zsh
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# If marked is called without an argument, open Marked
-# If marked is passed a file, open it in Marked
-#
-function marked() {
-    if [ "$1" ]
-    then
-        open -a "marked 2.app" "$1"
-    else
-        open -a "marked 2.app"
-    fi
-}
diff --git a/.oh-my-zsh/plugins/mercurial/mercurial.plugin.zsh b/.oh-my-zsh/plugins/mercurial/mercurial.plugin.zsh
deleted file mode 100644
index 86200cc..0000000
--- a/.oh-my-zsh/plugins/mercurial/mercurial.plugin.zsh
+++ /dev/null
@@ -1,66 +0,0 @@
-# Mercurial
-alias hgc='hg commit'
-alias hgb='hg branch'
-alias hgba='hg branches'
-alias hgbk='hg bookmarks'
-alias hgco='hg checkout'
-alias hgd='hg diff'
-alias hged='hg diffmerge'
-# pull and update
-alias hgi='hg incoming'
-alias hgl='hg pull -u'
-alias hglr='hg pull --rebase'
-alias hgo='hg outgoing'
-alias hgp='hg push'
-alias hgs='hg status'
-alias hgsl='hg log --limit 20 --template "{node|short} | {date|isodatesec} | {author|user}: {desc|strip|firstline}\n" '
-# this is the 'git commit --amend' equivalent
-alias hgca='hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip'
-# list unresolved files (since hg does not list unmerged files in the status command)
-alias hgun='hg resolve --list'
-
-function in_hg() {
-  if [[ -d .hg ]] || $(hg summary > /dev/null 2>&1); then
-    echo 1
-  fi
-}
-
-function hg_get_branch_name() {
-  if [ $(in_hg) ]; then
-    echo $(hg branch)
-  fi
-}
-
-function hg_prompt_info {
-  if [ $(in_hg) ]; then
-    _DISPLAY=$(hg_get_branch_name)
-    echo "$ZSH_PROMPT_BASE_COLOR$ZSH_THEME_HG_PROMPT_PREFIX\
-$ZSH_THEME_REPO_NAME_COLOR$_DISPLAY$ZSH_PROMPT_BASE_COLOR$ZSH_PROMPT_BASE_COLOR$(hg_dirty)$ZSH_THEME_HG_PROMPT_SUFFIX$ZSH_PROMPT_BASE_COLOR"
-    unset _DISPLAY
-  fi
-}
-
-function hg_dirty_choose {
-  if [ $(in_hg) ]; then
-    hg status 2> /dev/null | command grep -Eq '^\s*[ACDIM!?L]'
-    if [ $pipestatus[-1] -eq 0 ]; then
-      # Grep exits with 0 when "One or more lines were selected", return "dirty".
-      echo $1
-    else
-      # Otherwise, no lines were found, or an error occurred. Return clean.
-      echo $2
-    fi
-  fi
-}
-
-function hg_dirty {
-  hg_dirty_choose $ZSH_THEME_HG_PROMPT_DIRTY $ZSH_THEME_HG_PROMPT_CLEAN
-}
-
-function hgic() {
-    hg incoming "$@" | grep "changeset" | wc -l
-}
-
-function hgoc() {
-    hg outgoing "$@" | grep "changeset" | wc -l
-}
diff --git a/.oh-my-zsh/plugins/meteor/_meteor b/.oh-my-zsh/plugins/meteor/_meteor
deleted file mode 100644
index cd7fc30..0000000
--- a/.oh-my-zsh/plugins/meteor/_meteor
+++ /dev/null
@@ -1,48 +0,0 @@
-#compdef meteor
-#autoload
-
-# Meteor Autocomplete plugin for Oh-My-Zsh, based on homebrew completion
-# Original author: Dimitri JORGE (https://github.com/jorge-d)
-
-_meteor_all_packages() {
-  packages=(`meteor list | cut -d" " -f1`)
-}
-_meteor_installed_packages() {
-  installed_packages=(`meteor list --using`)
-}
-
-local -a _1st_arguments
-_1st_arguments=(
-  'run:[Default] Run this project in local development mode'
-  'create:Create a new project'
-  'update:Upgrade this project to the latest version of Meteor'
-  'add:Add a package to this project'
-  'remove:Remove a package from this project'
-  'list:List available packages'
-  'help:Display Meteor help'
-  'bundle:Pack this project up into a tarball'
-  'mongo:Connect to the Mongo database for the specified site'
-  'deploy:Deploy this project to Meteor'
-  'logs:Show logs for specified site'
-  'reset:Reset the project state. Erases the local database.'
-  'test-packages:Test one or more packages'
-)
-
-local expl
-local -a packages installed_packages
-
-if (( CURRENT == 2 )); then
-  _describe -t commands "meteor subcommand" _1st_arguments
-  return
-fi
-
-case "$words[2]" in
-    help)
-      _describe -t commands "meteor subcommand" _1st_arguments ;;
-    remove)
-      _meteor_installed_packages
-      _wanted installed_packages expl 'installed packages' compadd -a installed_packages ;;
-    add)
-      _meteor_all_packages
-      _wanted packages expl 'all packages' compadd -a packages ;;
-esac
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/mix/_mix b/.oh-my-zsh/plugins/mix/_mix
deleted file mode 100644
index b7c982e..0000000
--- a/.oh-my-zsh/plugins/mix/_mix
+++ /dev/null
@@ -1,64 +0,0 @@
-#compdef mix 
-#autoload
-
-# Elixir mix zsh completion
-
-local -a _1st_arguments
-_1st_arguments=(
-    'archive:Archive this project into a .ez file'
-    'clean:Clean generated application files'
-    'compile:Compile source files'
-    'deps:List dependencies and their status'
-    "deps.clean:Remove dependencies' files"
-    'deps.compile:Compile dependencies'
-    'deps.get:Get all out of date dependencies'
-    'deps.unlock:Unlock the given dependencies'
-    'deps.update:Update dependencies'
-    'do:Executes the commands separated by comma'
-    'escriptize:Generates an escript for the project'
-    'help:Print help information for tasks'
-    'local:List local tasks'
-    'local.install:Install a task or an archive locally'
-    'local.rebar:Install rebar locally'
-    'local.uninstall:Uninstall local tasks or archives'
-    'local.hex:Install Hex locally'
-    'new:Creates a new Elixir project'
-    'run:Run the given file or expression'
-    "test:Run a project's tests"
-    '--help:Describe available tasks'
-    '--version:Prints the Elixir version information'
-)
-
-__task_list ()
-{
-    local expl
-    declare -a tasks
-
-    tasks=(archive clean compile deps deps.clean deps.compile deps.get deps.unlock deps.update do escriptize help local local.install local.rebar local.uninstall new run test)
-
-    _wanted tasks expl 'help' compadd $tasks
-}
-
-local expl
-
-local curcontext="$curcontext" state line
-typeset -A opt_args
-
-_arguments -C \
-    ':command:->command' \
-    '*::options:->options'
-
-case $state in
-  (command)
-      _describe -t commands "mix subcommand" _1st_arguments
-      return
-  ;;
-
-  (options)
-    case $line[1] in
-      (help)
-         _arguments ':feature:__task_list' 
-    esac
-  ;;
-esac
-
diff --git a/.oh-my-zsh/plugins/mosh/mosh.plugin.zsh b/.oh-my-zsh/plugins/mosh/mosh.plugin.zsh
deleted file mode 100644
index ea36b7e..0000000
--- a/.oh-my-zsh/plugins/mosh/mosh.plugin.zsh
+++ /dev/null
@@ -1,2 +0,0 @@
-# Allow SSH tab completion for mosh hostnames
-compdef mosh=ssh
diff --git a/.oh-my-zsh/plugins/mvn/mvn.plugin.zsh b/.oh-my-zsh/plugins/mvn/mvn.plugin.zsh
deleted file mode 100644
index 865b152..0000000
--- a/.oh-my-zsh/plugins/mvn/mvn.plugin.zsh
+++ /dev/null
@@ -1,186 +0,0 @@
-# mvn-color based on https://gist.github.com/1027800
-export BOLD=`tput bold`
-export UNDERLINE_ON=`tput smul`
-export UNDERLINE_OFF=`tput rmul`
-export TEXT_BLACK=`tput setaf 0`
-export TEXT_RED=`tput setaf 1`
-export TEXT_GREEN=`tput setaf 2`
-export TEXT_YELLOW=`tput setaf 3`
-export TEXT_BLUE=`tput setaf 4`
-export TEXT_MAGENTA=`tput setaf 5`
-export TEXT_CYAN=`tput setaf 6`
-export TEXT_WHITE=`tput setaf 7`
-export BACKGROUND_BLACK=`tput setab 0`
-export BACKGROUND_RED=`tput setab 1`
-export BACKGROUND_GREEN=`tput setab 2`
-export BACKGROUND_YELLOW=`tput setab 3`
-export BACKGROUND_BLUE=`tput setab 4`
-export BACKGROUND_MAGENTA=`tput setab 5`
-export BACKGROUND_CYAN=`tput setab 6`
-export BACKGROUND_WHITE=`tput setab 7`
-export RESET_FORMATTING=`tput sgr0`
-
- 
-# Wrapper function for Maven's mvn command.
-mvn-color()
-{
-  (
-  # Filter mvn output using sed. Before filtering set the locale to C, so invalid characters won't break some sed implementations
-  unset LANG
-  LC_CTYPE=C mvn $@ | sed -e "s/\(\[INFO\]\)\(.*\)/${TEXT_BLUE}${BOLD}\1${RESET_FORMATTING}\2/g" \
-               -e "s/\(\[INFO\]\ BUILD SUCCESSFUL\)/${BOLD}${TEXT_GREEN}\1${RESET_FORMATTING}/g" \
-               -e "s/\(\[WARNING\]\)\(.*\)/${BOLD}${TEXT_YELLOW}\1${RESET_FORMATTING}\2/g" \
-               -e "s/\(\[ERROR\]\)\(.*\)/${BOLD}${TEXT_RED}\1${RESET_FORMATTING}\2/g" \
-               -e "s/Tests run: \([^,]*\), Failures: \([^,]*\), Errors: \([^,]*\), Skipped: \([^,]*\)/${BOLD}${TEXT_GREEN}Tests run: \1${RESET_FORMATTING}, Failures: ${BOLD}${TEXT_RED}\2${RESET_FORMATTING}, Errors: ${BOLD}${TEXT_RED}\3${RESET_FORMATTING}, Skipped: ${BOLD}${TEXT_YELLOW}\4${RESET_FORMATTING}/g"
- 
-  # Make sure formatting is reset
-  echo -ne ${RESET_FORMATTING}
-  )
-}
- 
-# Override the mvn command with the colorized one.
-#alias mvn="mvn-color"
-
-# aliases
-alias mvncie='mvn clean install eclipse:eclipse'
-alias mvnci='mvn clean install'
-alias mvncist='mvn clean install -DskipTests'
-alias mvne='mvn eclipse:eclipse'
-alias mvnce='mvn clean eclipse:clean eclipse:eclipse'
-alias mvnd='mvn deploy'
-alias mvnp='mvn package'
-alias mvnc='mvn clean'
-alias mvncom='mvn compile'
-alias mvnct='mvn clean test'
-alias mvnt='mvn test'
-alias mvnag='mvn archetype:generate'
-alias mvn-updates='mvn versions:display-dependency-updates'
-alias mvntc7='mvn tomcat7:run' 
-alias mvntc='mvn tomcat:run'
-alias mvnjetty='mvn jetty:run'
-alias mvndt='mvn dependency:tree'
-alias mvns='mvn site'
-alias mvnsrc='mvn dependency:sources'
-alias mvndocs='mvn dependency:resolve -Dclassifier=javadoc'
-
-function listMavenCompletions { 
-     reply=(
-        # common lifecycle
-        clean process-resources compile process-test-resources test-compile test integration-test package verify install deploy site
-        
-        # common plugins
-        deploy failsafe install site surefire checkstyle javadoc jxr pmd ant antrun archetype assembly dependency enforcer gpg help release repository source eclipse idea jetty cargo jboss tomcat tomcat6 tomcat7 exec versions war ear ejb android scm buildnumber nexus repository sonar license hibernate3 liquibase flyway gwt
-       
-        # deploy
-        deploy:deploy-file
-        # failsafe
-        failsafe:integration-test failsafe:verify
-        # install
-        install:install-file
-        # site
-        site:site site:deploy site:run site:stage site:stage-deploy
-        # surefire
-        surefire:test
-            
-        # checkstyle
-        checkstyle:checkstyle checkstyle:check
-        # javadoc
-        javadoc:javadoc javadoc:jar javadoc:aggregate
-        # jxr
-        jxr:jxr
-        # pmd
-        pmd:pmd pmd:cpd pmd:check pmd:cpd-check
-
-        # ant
-        ant:ant ant:clean
-        # antrun
-        antrun:run
-        # archetype
-        archetype:generate archetype:create-from-project archetype:crawl
-        # assembly
-        assembly:single assembly:assembly
-        # dependency
-        dependency:analyze dependency:analyze-dep-mgt dependency:analyze-only dependency:analyze-report dependency:build-classpath dependency:copy dependency:copy-dependencies dependency:get dependency:go-offline dependency:list dependency:purge-local-repository dependency:resolve dependency:resolve-plugins dependency:sources dependency:tree dependency:unpack dependency:unpack-dependencies
-        # enforcer
-        enforcer:enforce
-        # gpg
-        gpg:sign gpg:sign-and-deploy-file
-        # help
-        help:active-profiles help:all-profiles help:describe help:effective-pom help:effective-settings help:evaluate help:expressions help:system
-        # release
-        release:clean release:prepare release:rollback release:perform release:stage release:branch release:update-versions
-        # repository
-        repository:bundle-create repository:bundle-pack
-        # source
-        source:aggregate source:jar source:jar-no-fork
-            
-        # eclipse
-        eclipse:clean eclipse:eclipse
-        # idea
-        idea:clean idea:idea
-            
-        # jetty
-        jetty:run jetty:run-exploded
-        # cargo
-        cargo:start cargo:run cargo:stop cargo:deploy cargo:undeploy cargo:help
-        # jboss
-        jboss:start jboss:stop jboss:deploy jboss:undeploy jboss:redeploy
-        # tomcat
-        tomcat:start tomcat:stop tomcat:deploy tomcat:undeploy tomcat:redeploy
-        # tomcat6
-        tomcat6:run tomcat6:run-war tomcat6:run-war-only tomcat6:stop tomcat6:deploy tomcat6:undeploy
-        # tomcat7
-        tomcat7:run tomcat7:run-war tomcat7:run-war-only tomcat7:deploy
-	# tomee
-        tomee:run tomee:run-war tomee:run-war-only tomee:stop tomee:deploy tomee:undeploy	
-        # spring-boot
-        spring-boot:run spring-boot:repackage
-        # exec
-        exec:exec exec:java
-        # versions
-        versions:display-dependency-updates versions:display-plugin-updates versions:display-property-updates versions:update-parent versions:update-properties versions:update-child-modules versions:lock-snapshots versions:unlock-snapshots versions:resolve-ranges versions:set versions:use-releases versions:use-next-releases versions:use-latest-releases versions:use-next-snapshots versions:use-latest-snapshots versions:use-next-versions versions:use-latest-versions versions:commit versions:revert
-        # scm
-        scm:add scm:checkin scm:checkout scm:update scm:status
-        # buildnumber
-        buildnumber:create buildnumber:create-timestamp buildnumber:help buildnumber:hgchangeset
-
-        # war
-        war:war war:exploded war:inplace war:manifest
-        # ear
-        ear:ear ear:generate-application-xml
-        # ejb
-        ejb:ejb
-        # android
-        android:apk android:apklib android:deploy android:deploy-dependencies android:dex android:emulator-start android:emulator-stop android:emulator-stop-all android:generate-sources android:help android:instrument android:manifest-update android:pull android:push android:redeploy android:run android:undeploy android:unpack android:version-update android:zipalign android:devices
-        # nexus
-        nexus:staging-list nexus:staging-close nexus:staging-drop nexus:staging-release nexus:staging-build-promotion nexus:staging-profiles-list nexus:settings-download
-        # repository
-        repository:bundle-create repository:bundle-pack repository:help
-
-        # sonar
-        sonar:sonar
-        # license
-        license:format license:check
-        # hibernate3
-        hibernate3:hbm2ddl hibernate3:help
-        # liquibase
-        liquibase:changelogSync liquibase:changelogSyncSQL liquibase:clearCheckSums liquibase:dbDoc liquibase:diff liquibase:dropAll liquibase:help liquibase:migrate liquibase:listLocks liquibase:migrateSQL liquibase:releaseLocks liquibase:rollback liquibase:rollbackSQL liquibase:status liquibase:tag liquibase:update liquibase:updateSQL liquibase:updateTestingRollback
-        # flyway
-        flyway:clean flyway:history flyway:init flyway:migrate flyway:status flyway:validate
-        # gwt
-        gwt:browser gwt:clean gwt:compile gwt:compile-report gwt:css gwt:debug gwt:eclipse gwt:eclipseTest gwt:generateAsync gwt:help gwt:i18n gwt:mergewebxml gwt:resources gwt:run gwt:sdkInstall gwt:source-jar gwt:soyc gwt:test
-
-        # options
-        -Dmaven.test.skip=true -DskipTests -Dmaven.surefire.debug -DenableCiProfile -Dpmd.skip=true -Dcheckstyle.skip=true -Dtycho.mode=maven
-
-        # arguments
-        -am -amd -B -C -c -cpu -D -e -emp -ep -f -fae -ff -fn -gs -h -l -N -npr -npu -nsu -o -P -pl -q -rf -s -T -t -U -up -V -v -X
-
-        cli:execute cli:execute-phase 
-        archetype:generate generate-sources 
-        cobertura:cobertura
-        -Dtest= `if [ -d ./src/test/java ] ; then find ./src/test/java -type f -name '*.java' | grep -v svn | sed 's?.*/\([^/]*\)\..*?-Dtest=\1?' ; fi`
-    ); 
-}
-
-compctl -K listMavenCompletions mvn
diff --git a/.oh-my-zsh/plugins/mysql-macports/mysql-macports.plugin.zsh b/.oh-my-zsh/plugins/mysql-macports/mysql-macports.plugin.zsh
deleted file mode 100644
index c39563f..0000000
--- a/.oh-my-zsh/plugins/mysql-macports/mysql-macports.plugin.zsh
+++ /dev/null
@@ -1,8 +0,0 @@
-# commands to control local mysql-server installation
-# paths are for osx installation via macports
-
-alias mysqlstart='sudo /opt/local/share/mysql5/mysql/mysql.server start'
-alias mysqlstop='sudo /opt/local/share/mysql5/mysql/mysql.server stop'
-alias mysqlrestart='sudo /opt/local/share/mysql5/mysql/mysql.server restart'
-
-alias mysqlstatus='mysqladmin5 -u root -p ping'
diff --git a/.oh-my-zsh/plugins/nanoc/_nanoc b/.oh-my-zsh/plugins/nanoc/_nanoc
deleted file mode 100644
index fde07c3..0000000
--- a/.oh-my-zsh/plugins/nanoc/_nanoc
+++ /dev/null
@@ -1,44 +0,0 @@
-#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
diff --git a/.oh-my-zsh/plugins/nanoc/nanoc.plugin.zsh b/.oh-my-zsh/plugins/nanoc/nanoc.plugin.zsh
deleted file mode 100644
index 5a50646..0000000
--- a/.oh-my-zsh/plugins/nanoc/nanoc.plugin.zsh
+++ /dev/null
@@ -1,9 +0,0 @@
-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'
diff --git a/.oh-my-zsh/plugins/nmap/README.md b/.oh-my-zsh/plugins/nmap/README.md
deleted file mode 100644
index 8bb8e06..0000000
--- a/.oh-my-zsh/plugins/nmap/README.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# Nmap aliases plugin
-
-Adds some useful aliases for nmap similar to the profiles in zenmap.
-
-Nmap options are:
- * -sS - TCP SYN scan
- * -v - verbose
- * -T1 - timing of scan. Options are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
- * -sF - FIN scan (can sneak through non-stateful firewalls)
- * -PE - ICMP echo discovery probe
- * -PP - timestamp discovery probe
- * -PY - SCTP init ping
- * -g - use given number as source port
- * -A - enable OS detection, version detection, script scanning, and traceroute (aggressive)
- * -O - enable OS detection
- * -sA - TCP ACK scan
- * -F - fast scan
- * --script=vulscan - also access vulnerabilities in target
-
-## Aliases explained
-
- * nmap_open_ports - scan for open ports on target
- * nmap_list_interfaces - list all network interfaces on host where the command runs
- * nmap_slow - slow scan that avoids to spam the targets logs
- * nmap_fin - scan to see if hosts are up with TCP FIN scan
- * nmap_full - aggressive full scan that scans all ports, tries to determine OS and service versions
- * nmap_check_for_firewall - TCP ACK scan to check for firewall existence
- * nmap_ping_through_firewall - Host discovery with SYN and ACK probes instead of just pings to avoid firewall
-   restrictions
- * nmap_fast - Fast scan of the top 300 popular ports
- * nmap_detect_versions - detects versions of services and OS, runs on all ports
- * nmap_check_for_vulns - uses vulscan script to check target services for vulnerabilities
diff --git a/.oh-my-zsh/plugins/nmap/nmap.plugin.zsh b/.oh-my-zsh/plugins/nmap/nmap.plugin.zsh
deleted file mode 100644
index f3603f6..0000000
--- a/.oh-my-zsh/plugins/nmap/nmap.plugin.zsh
+++ /dev/null
@@ -1,28 +0,0 @@
-# Some useful nmap aliases for scan modes
-
-# Nmap options are:
-#  -sS - TCP SYN scan
-#  -v - verbose
-#  -T1 - timing of scan. Options are paranoid (0), sneaky (1), polite (2), normal (3), aggressive (4), and insane (5)
-#  -sF - FIN scan (can sneak through non-stateful firewalls)
-#  -PE - ICMP echo discovery probe
-#  -PP - timestamp discovery probe
-#  -PY - SCTP init ping
-#  -g - use given number as source port
-#  -A - enable OS detection, version detection, script scanning, and traceroute (aggressive)
-#  -O - enable OS detection
-#  -sA - TCP ACK scan
-#  -F - fast scan
-#  --script=vulscan - also access vulnerabilities in target
-
-alias nmap_open_ports="nmap --open"
-alias nmap_list_interfaces="nmap --iflist"
-alias nmap_slow="nmap -sS -v -T1"
-alias nmap_fin="nmap -sF -v"
-alias nmap_full="nmap -sS -T4 -PE -PP -PS80,443 -PY -g 53 -A -p1-65535 -v"
-alias nmap_check_for_firewall="nmap -sA -p1-65535 -v -T4"
-alias nmap_ping_through_firewall="nmap -PS -PA"
-alias nmap_fast="nmap -F -T5 --top-ports 300"
-alias nmap_detect_versions="nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn"
-alias nmap_check_for_vulns="nmap --script=vulscan"
-
diff --git a/.oh-my-zsh/plugins/node/node.plugin.zsh b/.oh-my-zsh/plugins/node/node.plugin.zsh
deleted file mode 100644
index 39d8b10..0000000
--- a/.oh-my-zsh/plugins/node/node.plugin.zsh
+++ /dev/null
@@ -1,13 +0,0 @@
-# Open the node api for your current version to the optional section.
-# TODO: Make the section part easier to use.
-function node-docs {
-  # get the open command
-  local open_cmd
-  if [[ "$OSTYPE" = darwin* ]]; then
-    open_cmd='open'
-  else
-    open_cmd='xdg-open'
-  fi
-
-  $open_cmd "http://nodejs.org/docs/$(node --version)/api/all.html#all_$1"
-}
diff --git a/.oh-my-zsh/plugins/npm/npm.plugin.zsh b/.oh-my-zsh/plugins/npm/npm.plugin.zsh
deleted file mode 100644
index 68ec5fa..0000000
--- a/.oh-my-zsh/plugins/npm/npm.plugin.zsh
+++ /dev/null
@@ -1,14 +0,0 @@
-eval "$(npm completion 2>/dev/null)"
-
-
-# npm package names are lowercase
-# - https://twitter.com/substack/status/23122603153150361
-# Thus, we've used camelCase for the following aliases:
-
-# Install and save to dependencies in your package.json
-# npms is used by https://www.npmjs.com/package/npms
-alias npmS="npm i -S "
-
-# Install and save to dev-dependencies in your package.json
-# npmd is used by https://github.com/dominictarr/npmd
-alias npmD="npm i -D "
diff --git a/.oh-my-zsh/plugins/nvm/_nvm b/.oh-my-zsh/plugins/nvm/_nvm
deleted file mode 100644
index a95c9e3..0000000
--- a/.oh-my-zsh/plugins/nvm/_nvm
+++ /dev/null
@@ -1,26 +0,0 @@
-#compdef nvm
-#autoload
-
-[[ -s ~/.nvm/nvm.sh ]] || return 0
-
-local -a _1st_arguments
-_1st_arguments=(
-  'help:show help'
-  'install:download and install a version'
-  'uninstall:uninstall a version'
-  'use:modify PATH to use version'
-  'run:run version with given arguments'
-  'ls:list installed versions or versions matching a given description'
-  'ls-remote:list remote versions available for install'
-  'deactivate:undo effects of NVM on current shell'
-  'alias:show or set aliases'
-  'unalias:deletes an alias'
-  'copy-packages:install global NPM packages to current version'
-)
-
-_arguments -C '*:: :->subcmds' && return 0
-
-if (( CURRENT == 1 )); then
-  _describe -t commands "nvm subcommand" _1st_arguments
-  return
-fi
\ No newline at end of file
diff --git a/.oh-my-zsh/plugins/nvm/nvm.plugin.zsh b/.oh-my-zsh/plugins/nvm/nvm.plugin.zsh
deleted file mode 100644
index 9709719..0000000
--- a/.oh-my-zsh/plugins/nvm/nvm.plugin.zsh
+++ /dev/null
@@ -1,3 +0,0 @@
-# The addition 'nvm install' attempts in ~/.profile
-
-[[ -s ~/.nvm/nvm.sh ]] && . ~/.nvm/nvm.sh
diff --git a/.oh-my-zsh/plugins/nyan/nyan.plugin.zsh b/.oh-my-zsh/plugins/nyan/nyan.plugin.zsh
deleted file mode 100644
index ac9d001..0000000
--- a/.oh-my-zsh/plugins/nyan/nyan.plugin.zsh
+++ /dev/null
@@ -1,5 +0,0 @@
-if [[ -x `which nc` ]]; then
-  alias nyan='nc -v nyancat.dakko.us 23' # nyan cat
-fi
-
-
diff --git a/.oh-my-zsh/plugins/osx/_man-preview b/.oh-my-zsh/plugins/osx/_man-preview
deleted file mode 100644
index 6cc344a..0000000
--- a/.oh-my-zsh/plugins/osx/_man-preview
+++ /dev/null
@@ -1,5 +0,0 @@
-#compdef man-preview
-#autoload
-
-_man
-
diff --git a/.oh-my-zsh/plugins/osx/osx.plugin.zsh b/.oh-my-zsh/plugins/osx/osx.plugin.zsh
deleted file mode 100644
index d0f9f00..0000000
--- a/.oh-my-zsh/plugins/osx/osx.plugin.zsh
+++ /dev/null
@@ -1,228 +0,0 @@
-# ------------------------------------------------------------------------------
-#          FILE:  osx.plugin.zsh
-#   DESCRIPTION:  oh-my-zsh plugin file.
-#        AUTHOR:  Sorin Ionescu (sorin.ionescu@gmail.com)
-#       VERSION:  1.1.0
-# ------------------------------------------------------------------------------
-
-function tab() {
-  local command="cd \\\"$PWD\\\"; clear; "
-  (( $# > 0 )) && command="${command}; $*"
-
-  the_app=$(
-    osascript 2>/dev/null </dev/null </dev/null < 0 )) && command="${command}; $*"
-
-  the_app=$(
-    osascript 2>/dev/null </dev/null < 0 )) && command="${command}; $*"
-
-  the_app=$(
-    osascript 2>/dev/null </dev/null </dev/null </dev/null < 0 )) && qlmanage -p $* &>/dev/null &
-}
-
-function man-preview() {
-  man -t "$@" | open -f -a Preview
-}
-
-function trash() {
-  local trash_dir="${HOME}/.Trash"
-  local temp_ifs="$IFS"
-  IFS=$'\n'
-  for item in "$@"; do
-    if [[ -e "$item" ]]; then
-      item_name="$(basename $item)"
-      if [[ -e "${trash_dir}/${item_name}" ]]; then
-        mv -f "$item" "${trash_dir}/${item_name} $(date "+%H-%M-%S")"
-      else
-        mv -f "$item" "${trash_dir}/"
-      fi
-    fi
-  done
-  IFS=$temp_ifs
-}
-
-function vncviewer() {
-  open vnc://$@
-}
-
-# iTunes control function
-function itunes() {
-	local opt=$1
-	shift
-	case "$opt" in
-		launch|play|pause|stop|rewind|resume|quit)
-			;;
-		mute)
-			opt="set mute to true"
-			;;
-		unmute)
-			opt="set mute to false"
-			;;
-		next|previous)
-			opt="$opt track"
-			;;
-		vol)
-			opt="set sound volume to $1" #$1 Due to the shift
-			;;
-		shuf|shuff|shuffle)
-			# The shuffle property of current playlist can't be changed in iTunes 12,
-			# so this workaround uses AppleScript to simulate user input instead.
-			# Defaults to toggling when no options are given.
-			# The toggle option depends on the shuffle button being visible in the Now playing area.
-			# On and off use the menu bar items.
-			local state=$1
-
-			if [[ -n "$state" && ! "$state" =~ "^(on|off|toggle)$" ]]
-			then
-				print "Usage: itunes shuffle [on|off|toggle]. Invalid option."
-				return 1
-			fi
-
-			case "$state" in
-				on|off)
-					# Inspired by: http://stackoverflow.com/a/14675583
-					osascript 1>/dev/null 2>&1 <<-EOF
-					tell application "System Events" to perform action "AXPress" of (menu item "${state}" of menu "Shuffle" of menu item "Shuffle" of menu "Controls" of menu bar item "Controls" of menu bar 1 of application process "iTunes" )
-EOF
-					return 0
-					;;
-				toggle|*)
-					osascript 1>/dev/null 2>&1 <<-EOF
-					tell application "System Events" to perform action "AXPress" of (button 2 of process "iTunes"'s window "iTunes"'s scroll area 1)
-EOF
-					return 0
-					;;
-			esac
-			;;
-		""|-h|--help)
-			echo "Usage: itunes