Commit c90abbeddabb3b1ecb86941b5d047ce09d2afa1f

Authored by mj
Exists in master and in 2 other branches 02-merge, dev

Merge branch 'master' into dev

Showing 20 changed files Inline Diff

repos/robbyrussell/oh-my-zsh/MIT-LICENSE.txt
1 The MIT License 1 The MIT License
2 2
3 Copyright (c) 2009-2015 Robby Russell and contributors (see https://github.com/robbyrussell/oh-my-zsh/contributors) 3 Copyright (c) 2009-2015 Robby Russell and contributors (see https://github.com/robbyrussell/oh-my-zsh/contributors)
4 4
5 Permission is hereby granted, free of charge, to any person obtaining a copy 5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal 6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights 7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is 9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions: 10 furnished to do so, subject to the following conditions:
11 11
12 The above copyright notice and this permission notice shall be included in 12 The above copyright notice and this permission notice shall be included in
13 all copies or substantial portions of the Software. 13 all copies or substantial portions of the Software.
14 14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 THE SOFTWARE. 21 THE SOFTWARE.
22 22
repos/robbyrussell/oh-my-zsh/README.markdown
File was created 1 ![Oh My Zsh](https://s3.amazonaws.com/ohmyzsh/oh-my-zsh-logo.png)
2
3
4 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.
5
6 __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 interace 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.
7
8 To learn more, visit http://ohmyz.sh and/or follow [ohmyzsh](https://twitter.com/ohmyzsh) on twitter.
9
10 ## Getting Started
11
12
13 ### Prerequisites
14
15 __Disclaimer:__ _Oh My Zsh works best on Mac OS X and Linux._
16
17 * Unix-based operating system (Mac OS X or Linux)
18 * [Zsh](http://www.zsh.org) should be installed (v4.3.9 or more recent)
19 * This is commonly pre-installed. (`zsh --version` to confirm)
20 * `curl` or `wget` should be installed
21
22 ### Basic Installation
23
24 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`.
25
26 #### via curl
27
28 `curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh`
29
30 #### via wget
31
32 `wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh`
33
34 ## Using Oh My Zsh
35
36 ### Plugins
37
38 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.
39
40 #### Enabling Plugins
41
42 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.
43
44 For example, this line might begin to look like...
45
46 `plugins=(git bundler osx rake ruby)`
47
48 #### Using Plugins
49
50 Most plugins (should! we're working on this) include a __README__, which documents how to use them.
51
52 ### Themes
53
54 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!
55
56 #### Selecting a Theme
57
58 _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)._
59
60 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:
61
62 `ZSH_THEME="robbyrussell"`
63
64 To use a different theme, simple change the value to match the name of your desired theme. For example:
65
66 `ZSH_THEME="agnoster"` (this is one of the fancy ones)
67
68 Open up a new terminal window and your prompt should look something like...
69
70 ## Advanced Topics
71
72 If you're the type that likes to get their hands dirty... these sections might resonate.
73
74 ### Advanced Installation
75
76 For those who want to install this manually and/or set custom paths.
77
78 #### Custom Directory
79
80 The default location is `~/.oh-my-zsh` (hidden in your home directory)
81
82 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:
83
84 `curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | ZSH=~/.dotfiles/zsh sh`
85
86 #### Manual Installation
87
88 ##### 1. Clone the repository:
89
90 `git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh`
91
92 ##### 2. *Optionally*, backup your existing @~/.zshrc@ file:
93
94 `cp ~/.zshrc ~/.zshrc.orig`
95
96 ##### 3. Create a new zsh configuration file
97
98 You can create a new zsh config file by copying the template that we included for you.
99
100 `cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc`
101
102 ##### 4. Change your default shell
103
104 `chsh -s /bin/zsh`
105
106 ##### 5. Initialize your new zsh configuration
107
108 Once you open up a new terminal window, it should load zsh with Oh My Zsh's configuration.
109
110 ### Installation Problems
111
112 If you have any hiccups installing, here are a few common fixes.
113
114 * You _might_ need to modify your `PATH` in `~/.zshrc` if you're not able to find some commands after switching to `oh-my-zsh`.
115 * If you installed manually or changed the install location, check the `ZSH` environment variable in `~/.zshrc`.
116
117 ### Custom Plugins and Themes
118
119 If you want to override any of the default behaviors, just add a new file (ending in `.zsh`) in the `custom/` directory.
120
121 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.
122
123 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/`.
124
125 ## Getting Updates
126
127 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`:
128
129 `DISABLE_UPDATE_PROMPT=true`
130
131 To disable automatic upgrades, set the following in your `~/.zshrc`:
132
133 `DISABLE_AUTO_UPDATE=true`
134
135 ### Manual Updates
136
137 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:
138
139 `upgrade_oh_my_zsh`
140
141 Magic!
142
143 ## Uninstalling Oh My Zsh
144
145 Oh My Zsh isn't for everyone. We'll miss you, but we want to make this an easy breakup.
146
147 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.
148
149 ## Contributing
150
151 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!
152
153 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.
154
155 ### Do NOT Send Us Themes
156
157 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.
158
159 ## Contributors
160
161 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.
162
163 Thank you so much!
164
165 ## Follow Us
166
167 We have an [ohmyzsh](https://twitter.com/ohmyzsh) account. You should follow it.
168
169 ## Merchandise
170
171 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!
172
173 ## LICENSE
174
175 Oh My Zsh is released under the [MIT license](https://github.com/robbyrussell/oh-my-zsh/blob/master/MIT-LICENSE.txt).
1 ![Oh My Zsh](https://s3.amazonaws.com/ohmyzsh/oh-my-zsh-logo.png) 176
repos/robbyrussell/oh-my-zsh/lib/completion.zsh
1 # fixme - the load process here seems a bit bizarre 1 # fixme - the load process here seems a bit bizarre
2 2
3 unsetopt menu_complete # do not autoselect the first completion entry 3 unsetopt menu_complete # do not autoselect the first completion entry
4 unsetopt flowcontrol 4 unsetopt flowcontrol
5 setopt auto_menu # show completion menu on succesive tab press 5 setopt auto_menu # show completion menu on succesive tab press
6 setopt complete_in_word 6 setopt complete_in_word
7 setopt always_to_end 7 setopt always_to_end
8 8
9 WORDCHARS='' 9 WORDCHARS=''
10 10
11 zmodload -i zsh/complist 11 zmodload -i zsh/complist
12 12
13 ## case-insensitive (all),partial-word and then substring completion 13 ## case-insensitive (all),partial-word and then substring completion
14 if [ "x$CASE_SENSITIVE" = "xtrue" ]; then 14 if [ "x$CASE_SENSITIVE" = "xtrue" ]; then
15 zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' 15 zstyle ':completion:*' matcher-list 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
16 unset CASE_SENSITIVE 16 unset CASE_SENSITIVE
17 else 17 else
18 zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' 18 zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
19 fi 19 fi
20 20
21 zstyle ':completion:*' list-colors '' 21 zstyle ':completion:*' list-colors ''
22 22
23 # should this be in keybindings? 23 # should this be in keybindings?
24 bindkey -M menuselect '^o' accept-and-infer-next-history 24 bindkey -M menuselect '^o' accept-and-infer-next-history
25 25
26 zstyle ':completion:*:*:*:*:*' menu select 26 zstyle ':completion:*:*:*:*:*' menu select
27 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01' 27 zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
28 if [ "$OSTYPE[0,7]" = "solaris" ] 28 if [ "$OSTYPE[0,7]" = "solaris" ]
29 then 29 then
30 zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm" 30 zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm"
31 else 31 else
32 zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w -w" 32 zstyle ':completion:*:*:*:*:processes' command "ps -u $USER -o pid,user,comm -w -w"
33 fi 33 fi
34 34
35 # disable named-directories autocompletion 35 # disable named-directories autocompletion
36 zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories 36 zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
37
38 # Use caching so that commands like apt and dpkg complete are useable 37
39 zstyle ':completion::complete:*' use-cache 1 38 # Use caching so that commands like apt and dpkg complete are useable
40 zstyle ':completion::complete:*' cache-path $ZSH_CACHE_DIR 39 zstyle ':completion::complete:*' use-cache 1
41 40 zstyle ':completion::complete:*' cache-path $ZSH_CACHE_DIR
42 # Don't complete uninteresting users 41
43 zstyle ':completion:*:*:*:users' ignored-patterns \ 42 # Don't complete uninteresting users
44 adm amanda apache at avahi avahi-autoipd beaglidx bin cacti canna \ 43 zstyle ':completion:*:*:*:users' ignored-patterns \
45 clamav daemon dbus distcache dnsmasq dovecot fax ftp games gdm \ 44 adm amanda apache at avahi avahi-autoipd beaglidx bin cacti canna \
46 gkrellmd gopher hacluster haldaemon halt hsqldb ident junkbust kdm \ 45 clamav daemon dbus distcache dnsmasq dovecot fax ftp games gdm \
47 ldap lp mail mailman mailnull man messagebus mldonkey mysql nagios \ 46 gkrellmd gopher hacluster haldaemon halt hsqldb ident junkbust kdm \
48 named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn \ 47 ldap lp mail mailman mailnull man messagebus mldonkey mysql nagios \
49 operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd \ 48 named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn \
50 rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp \ 49 operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd \
51 usbmux uucp vcsa wwwrun xfs '_*' 50 rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp \
52 51 usbmux uucp vcsa wwwrun xfs '_*'
53 # ... unless we really want to. 52
54 zstyle '*' single-ignored show 53 # ... unless we really want to.
55 54 zstyle '*' single-ignored show
56 if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then 55
57 expand-or-complete-with-dots() { 56 if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then
58 echo -n "\e[31m......\e[0m" 57 expand-or-complete-with-dots() {
59 zle expand-or-complete 58 echo -n "\e[31m......\e[0m"
60 zle redisplay 59 zle expand-or-complete
61 } 60 zle redisplay
62 zle -N expand-or-complete-with-dots 61 }
63 bindkey "^I" expand-or-complete-with-dots 62 zle -N expand-or-complete-with-dots
64 fi 63 bindkey "^I" expand-or-complete-with-dots
65 64 fi
repos/robbyrussell/oh-my-zsh/lib/directories.zsh
1 # Changing/making/removing directory 1 # Changing/making/removing directory
2 setopt auto_pushd 2 setopt auto_pushd
3 setopt pushd_ignore_dups 3 setopt pushd_ignore_dups
4 setopt pushdminus 4 setopt pushdminus
5 5
6 alias -g ...='../..' 6 alias -g ...='../..'
7 alias -g ....='../../..' 7 alias -g ....='../../..'
8 alias -g .....='../../../..' 8 alias -g .....='../../../..'
9 alias -g ......='../../../../..' 9 alias -g ......='../../../../..'
10 10
11 alias 1='cd -' 11 alias 1='cd -'
12 alias 2='cd -2' 12 alias 2='cd -2'
13 alias 3='cd -3' 13 alias 3='cd -3'
14 alias 4='cd -4' 14 alias 4='cd -4'
15 alias 5='cd -5' 15 alias 5='cd -5'
16 alias 6='cd -6' 16 alias 6='cd -6'
17 alias 7='cd -7' 17 alias 7='cd -7'
18 alias 8='cd -8' 18 alias 8='cd -8'
19 alias 9='cd -9' 19 alias 9='cd -9'
20 20
21 alias md='mkdir -p' 21 alias md='mkdir -p'
22 alias rd=rmdir 22 alias rd=rmdir
23 alias d='dirs -v | head -10' 23 alias d='dirs -v | head -10'
24 24
25 # List directory contents 25 # List directory contents
26 alias lsa='ls -lah' 26 alias lsa='ls -lah'
27 alias l='ls -lah' 27 alias l='ls -lah'
28 alias ll='ls -lh' 28 alias ll='ls -lh'
29 alias la='ls -lAh' 29 alias la='ls -lAh'
30 30
31 # Push and pop directories on directory stack 31 # Push and pop directories on directory stack
32 alias pu='pushd' 32 alias pu='pushd'
33 alias po='popd' 33 alias po='popd'
34 34
repos/robbyrussell/oh-my-zsh/plugins/chucknorris/.gitignore
File was created 1 fortunes/chucknorris.dat
1 fortunes/chucknorris.dat 2
repos/robbyrussell/oh-my-zsh/plugins/chucknorris/LICENSE
File was created 1 License: GPL v2
2 Thanks to http://www.k-lug.org/~kessler/projects.html for the fortune file.
1 License: GPL v2 3
repos/robbyrussell/oh-my-zsh/plugins/chucknorris/chucknorris.plugin.zsh
File was created 1 if [ ! -f $ZSH/plugins/chucknorris/fortunes/chucknorris.dat ]; then
2 strfile $ZSH/plugins/chucknorris/fortunes/chucknorris $ZSH/plugins/chucknorris/fortunes/chucknorris.dat
3 fi
4
5 alias chuck="fortune -a $ZSH/plugins/chucknorris/fortunes"
6 alias chuck_cow="chuck | cowthink"
1 if [ ! -f $ZSH/plugins/chucknorris/fortunes/chucknorris.dat ]; then 7
repos/robbyrussell/oh-my-zsh/plugins/chucknorris/fortunes/chucknorris
File was created 1 Chuck Norris' tears cure cancer. Too bad he has never cried. Ever.
2 %
3 Chuck Norris does not sleep. He waits.
4 %
5 Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
6 %
7 The chief export of Chuck Norris is pain.
8 %
9 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.
10 %
11 Chuck Norris has counted to infinity. Twice.
12 %
13 Chuck Norris does not hunt because the word hunting implies the probability of failure. Chuck Norris goes killing.
14 %
15 Chuck Norris' blood type is AK+. Ass-Kicking Positive. It is compatible only with heavy construction equipment, tanks, and fighter jets.
16 %
17 Chuck Norris is 1/8th Cherokee. This has nothing to do with ancestry, the man ate a fucking Indian.
18 %
19 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.
20 There is no chin behind Chuck Norris' beard. There is only another fist.
21 %
22 Chuck Norris does not teabag the ladies. He potato-sacks them.
23 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.
24 %
25 When Chuck Norris goes to donate blood, he declines the syringe, and instead requests a hand gun and a bucket.
26 %
27 There are no steroids in baseball. Just players Chuck Norris has breathed on.
28 %
29 Chuck Norris once challenged Lance Armstrong in a "Who has more testicles?" contest. Chuck Norris won by 5.
30 %
31 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.
32 %
33 Chuck Norris sheds his skin twice a year.
34 %
35 When Chuck Norris calls 1-900 numbers, he doesnt get charged. He holds up the phone and money falls out.
36 %
37 Chuck Norris once ate a whole cake before his friends could tell him there was a stripper in it.
38 %
39 Some people like to eat frogs' legs. Chuck Norris likes to eat lizard legs. Hence, snakes.
40 %
41 There are no races, only countries of people Chuck Norris has beaten to different shades of black and blue.
42 %
43 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.
44 %
45 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.
46 %
47 A Chuck Norris-delivered Roundhouse Kick is the preferred method of execution in 16 states.
48 %
49 When Chuck Norris falls in water, Chuck Norris doesn't get wet. Water gets Chuck Norris.
50 %
51 Scientists have estimated that the energy given off during the Big Bang is roughly equal to 1CNRhK (Chuck Norris Roundhouse Kick)
52 %
53 Chuck Norris' house has no doors, only walls that he walks through.
54 %
55 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.
56 %
57 How much wood would a woodchuck chuck if a woodchuck could Chuck Norris? ...All of it.
58 %
59 Chuck Norris doesn't actually write books, the words assemble themselves out of fear.
60 %
61 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".
62 %
63 Chuck Norris CAN believe it's not butter.
64 %
65 If tapped, a Chuck Norris roundhouse kick could power the country of Australia for 44 minutes.
66 %
67 Chuck Norris can divide by zero.
68 %
69 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.
70 %
71 A picture is worth a thousand words. A Chuck Norris is worth 1 billion words.
72 %
73 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.
74 %
75 Chuck Norris invented his own type of karate. It's called Chuck-Will-Kill.
76 %
77 When an episode of Walker Texas Ranger was aired in France, the French surrendered to Chuck Norris just to be on the safe side.
78 %
79 While urinating, Chuck Norris is easily capable of welding titanium.
80 %
81 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.
82 %
83 When Chuck Norris talks, everybody listens. And dies.
84 %
85 When Steven Seagal kills a ninja, he only takes its hide. When Chuck Norris kills a ninja, he uses every part.
86 %
87 Wilt Chamberlain claims to have slept with more than 20,000 women in his lifetime. Chuck Norris calls this "a slow Tuesday."
88 %
89 Contrary to popular belief, there is indeed enough Chuck Norris to go around.
90 %
91 Chuck Norris doesnt shave; he kicks himself in the face. The only thing that can cut Chuck Norris is Chuck Norris.
92 %
93 For some, the left testicle is larger than the right one. For Chuck Norris, each testicle is larger than the other one.
94 %
95 Chuck Norris always knows the EXACT location of Carmen SanDiego.
96 %
97 When taking the SAT, write "Chuck Norris" for every answer. You will score over 8000.
98 %
99 Chuck Norris invented black. In fact, he invented the entire spectrum of visible light. Except pink. Tom Cruise invented pink.
100 %
101 When you're Chuck Norris, anything + anything is equal to 1. One roundhouse kick to the face.
102 %
103 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.
104 %
105 On his birthday, Chuck Norris randomly selects one lucky child to be thrown into the sun.
106 %
107 Nobody doesn't like Sara Lee. Except Chuck Norris.
108 %
109 Chuck Norris doesn't throw up if he drinks too much. Chuck Norris throws down!
110 %
111 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.
112 %
113 Chuck Norris has 12 moons. One of those moons is the Earth.
114 %
115 Chuck Norris grinds his coffee with his teeth and boils the water with his own rage.
116 %
117 Archeologists unearthed an old english dictionary dating back to the year 1236. It defined "victim" as "one who has encountered Chuck Norris"
118 %
119 Chuck Norris ordered a Big Mac at Burger King, and got one.
120 %
121 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.
122 %
123 If you Google search "Chuck Norris getting his ass kicked" you will generate zero results. It just doesn't happen.
124 %
125 Chuck Norris can drink an entire gallon of milk in thirty-seven seconds.
126 %
127 Little known medical fact: Chuck Norris invented the Caesarean section when he roundhouse-kicked his way out of his monther's womb.
128 %
129 Chuck Norris doesn't bowl strikes, he just knocks down one pin and the other nine faint.
130 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.
131 %
132 It takes Chuck Norris 20 minutes to watch 60 Minutes.
133 %
134 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.
135 %
136 Chuck Norris has a deep and abiding respect for human life... unless it gets in his way.
137 %
138 The Bermuda Triangle used to be the Bermuda Square, until Chuck Norris Roundhouse kicked one of the corners off.
139 %
140 There are no weapons of mass destruction in Iraq, Chuck Norris lives in Oklahoma.
141 %
142 Chuck Norris doesn't believe in Germany.
143 %
144 When Chuck Norris is in a crowded area, he doesn't walk around people. He walks through them.
145 %
146 Chuck Norris once ate an entire bottle of sleeping pills. They made him blink.
147 %
148 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.
149 %
150 Chuck Norris can touch MC Hammer.
151 %
152 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.
153 %
154 Chuck Norris played Russian Roulette with a fully loaded gun and won.
155 %
156 It takes 14 puppeteers to make Chuck Norris smile, but only 2 to make him destroy an orphanage.
157 %
158 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.
159 %
160 Some people wear Superman pajamas. Superman wears Chuck Norris pajamas.
161 %
162 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.
163 %
164 Simply by pulling on both ends, Chuck Norris can stretch diamonds back into coal.
165 %
166 When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
167 %
168 Chuck Norris invented the bolt-action rifle, liquor, sexual intercourse, and football-- in that order.
169 %
170 A high tide means Chuck Norris is flying over your coast. The tide is caused by God pissing his pants.
171 %
172 Chuck Norris keeps his friends close and his enemies closer. Close enough to drop them with one round house kick to the face.
173 %
174 There is in fact an "I" in Norris, but there is no "team"? not even close.
175 %
176 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.
177 %
178 An anagram for Walker Texas Ranger is KARATE WRANGLER SEX. I don't know what that is, but it sounds AWESOME.
179 %
180 Chuck Norris doesn't stub his toes. He accidentally destroys chairs, bedframes, and sidewalks.
181 %
182 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.
183 %
184 Chuck Norris roundhouse kicks don't really kill people. They wipe out their entire existence from the space-time continuum.
185 %
186 Chuck Norris does not own a stove, oven, or microwave , because revenge is a dish best served cold.
187 %
188 Tom Clancy has to pay royalties to Chuck Norris because "The Sum of All Fears" is the name of Chuck Norris' autobiography.
189 %
190 Chuck Norris can slam a revolving door.
191 %
192 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.
193 %
194 Chuck Norris built a better mousetrap, but the world was too frightened to beat a path to his door.
195 %
196 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.
197 %
198 Hellen Keller's favorite color is Chuck Norris.
199 %
200 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."
201 %
202 If, by some incredible space-time paradox, Chuck Norris would ever fight himself, he'd win. Period.
203 %
204 Chuck Norris is currently suing myspace for taking the name of what he calls everything around you.
205 %
206 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.
207 %
208 Science Fact: Roundhouse kicks are comprised primarily of an element called Chucktanium.
209 %
210 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.
211 %
212 Chuck Norris proved that we are alone in the universe. We weren't before his first space expedition.
213 %
214 Superman once watched an episode of Walker, Texas Ranger. He then cried himself to sleep.
215 %
216 Chuck Norris doesn't step on toes. Chuck Norris steps on necks.
217 %
218 The movie "Delta Force" was extremely hard to make because Chuck had to downplay his abilities. The first few cuts were completely unbelievable.
219 %
220 Movie trivia: The movie "Invasion U.S.A." is, in fact, a documentary.
221 %
222 Chuck Norris does not "style" his hair. It lays perfectly in place out of sheer terror.
223 %
224 There is no such thing as global warming. Chuck Norris was cold, so he turned the sun up.
225 %
226 A study showed the leading causes of death in the United States are:
227 1:Heart disease
228 2:Chuck Norris
229 3:Cancer
230 %
231 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.
232 %
233 Chuck Norris did in fact, build Rome in a day.
234 %
235 Along with his black belt, Chuck Norris often chooses to wear brown shoes. No one has DARED call him on it. Ever.
236 %
237 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.
238 %
239 Once you go Norris, you are physically unable to go back.
240 %
241 Ninjas want to grow up to be just like Chuck Norris. But usually they grow up just to be killed by Chuck Norris.
242 %
243 Chuck Norris once sued Burger King after they refused to put razor wire in his Whopper Jr, insisting that that actually is "his" way.
244 %
245 The last thing you hear before Chuck Norris gives you a roundhouse kick? No one knows because dead men tell no tales.
246 %
247 Chuck Norris doesn't play god. Playing is for children.
248 %
249 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.
250 %
251 Chuck Norris is the only person in the world that can actually email a roundhouse kick.
252 %
253 Chuck Norris won super bowls VII and VIII singlehandedly before unexpectedly retiring to pursue a career in ass-kicking.
254 %
255 Wo hu cang long. The translation from Mandarin Chinese reads: "Crouching Chuck, Hidden Norris"
256 %
257 Chuck Norris can set ants on fire with a magnifying glass. At night.
258 %
259 Some kids play Kick the can. Chuck Norris played Kick the keg.
260 %
261 'Icy-Hot' is too weak for Chuck Norris. After a workout, Chuck Norris rubs his muscles down with liquid-hot MAGMA.
262 %
263 Chuck Norris cannot love, he can only not kill.
264 %
265 When Chuck Norris was a baby, he didn't suck his mother's breast. His mother served him whiskey, straight out of the bottle.
266 %
267 According to Einstein's theory of relativity, Chuck Norris can actually roundhouse kick you yesterday.
268 %
269 Chuck Norris once pulled out a single hair from his beard and skewered three men through the heart with it.
270 %
271 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.
272 %
273 Chuck Norris' favourite cut of meat is the roundhouse.
274 %
275 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.
276 %
277 Chuck Norris recently had the idea to sell his urine as a canned beverage. We know this beverage as Red Bull.
278 %
279 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.
280 %
281 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.
282 %
283 If at first you don't succeed, you're not Chuck Norris.
284 If Chuck Norris were a calendar, every month would be named Chucktober, and every day he'd kick your ass.
285 %
286 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."
287 Too late, asshole.
288 %
289 Chuck Norris's show is called Walker: Texas Ranger, because Chuck Norris doesn't run.
290 %
291 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.
292 %
293 Behind every successful man, there is a woman. Behind every dead man, there is Chuck Norris.
294 %
295 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".
296 %
297 Chuck Norris brushes his teeth with a mixture of iron shavings, industrial paint remover, and wood-grain alcohol.
298 %
299 The easiest way to determine Chuck Norris' age is to cut him in half and count the rings.
300 %
301 There is endless debate about the existence of the human soul. Well it does exist, and Chuck Norris finds it delicious.
302 %
303 Most boots are made for walkin'. Chuck Norris' boots ain't that merciful.
304 %
305 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.
306 %
307 Chuck Norris wears a live rattlesnake as a condom.
308 %
309 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
310 %
311 The Bible was originally titled "Chuck Norris and Friends"
312 %
313 Chuck Norris began selling the Total Gym as an ill-fated attempt to make his day-to-day opponents less laughably pathetic.
314 %
315 Do you know why Baskin Robbins only has 31 flavors? Because Chuck Norris doesn't like Fudge Ripple.
316 %
317 When Chuck Norris says "More cowbell", he fucking MEANS it.
318 %
319 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.
320 %
321 Chuck Norris was what Willis was talkin' about.
322 %
323 Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you.
324 %
325 Chuck Norris can lead a horse to water AND make it drink.
326 %
327 Nagasaki never had a bomb dropped on it. Chuck Norris jumped out of a plane and punched the ground.
328 %
329 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.
330 %
331 Chuck Norris destroyed the periodic table, because Chuck Norris only recognizes the element of surprise.
332 %
333 It is believed dinosaurs are extinct due to a giant meteor. That's true if you want to call Chuck Norris a giant meteor.
334 %
335 Chuck Norris shot the sheriff, but he round house kicked the deputy.
336 %
337 That's not Chuck Norris doing push-ups -- that's Chuck Norris moving the Earth away from the path of a deadly asteroid.
338 %
339 Chuck Norris can judge a book by its cover.
340 %
341 Nothing can escape the gravity of a black hole, except for Chuck Norris. Chuck Norris eats black holes. They taste like chicken.
342 %
343 Chuck Norris does not play the lottery. It doesn't have nearly enough balls.
344 %
345 Q: How many Chuck Norris' does it take to change a light bulb?
346 A: None, Chuck Norris prefers to kill in the dark.
347 %
348 As President Roosevelt said: "We have nothing to fear but fear itself. And Chuck Norris."
349 %
350 Chuck Norris just says "no" to drugs. If he said "yes", it would collapse Colombia's infrastructure.
351 %
352 Since 1940, the year Chuck Norris was born, roundhouse-kick related deaths have increased 13,000 percent. 
353 %
354 Crime does not pay - unless you are an undertaker following Walker, Texas Ranger, on a routine patrol.
355 %
356 Chuck Norris invented the internet? just so he had a place to store his porn.
357 %
358 Chuck Norris does not own a house. He walks into random houses and people move.
359 %
360 It is better to give than to receive. This is especially true of a Chuck Norris roundhouse kick.
361 %
362 Chuck Norris is the only person to ever win a staring contest against Ray Charles and Stevie Wonder at the same time.
363 %
364 Industrial logging isn't the cause of deforestation. Chuck Norris needs toothpicks.
365 %
366 Chuck Norris smells what the Rock is cooking... because the Rock is Chuck Norris' personal chef.
367 %
368 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.
369 %
370 Chuck Norris is the reason why Waldo is hiding.
371 %
372 "Brokeback Mountain" is not just a movie. It's also what Chuck Norris calls the pile of dead ninjas in his front yard.
373 %
374 When God said, "let there be light", Chuck Norris said, "say 'please'."
375 %
376 Chuck Norris does not eat. Food understands that the only safe haven from Chuck Norris' fists is inside his own body.
377 %
378 One day Chuck Norris walked down the street with a massive erection. There were no survivors.
379 %
380 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.
381 %
382 Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
383 %
384 Chuck Norris uses a night light. Not because Chuck Norris is afraid of the dark, but the dark is afraid of Chuck Norris.
385 %
386 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.
387 %
388 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.
389 %
390 When Bruce Banner gets mad, he turns into the Hulk. When the Hulk gets mad, he turns into Chuck Norris.
391 %
392 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.
393 %
394 Chuck Norris once kicked a horse in the chin. Its decendants are known today as Giraffes.
395 %
396 Sticks and stones may break your bones, but a Chuck Norris glare will liquefy your kidneys.
397 %
398 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.
399 %
400 Chuck Norris once went skydiving, but promised never to do it again. One Grand Canyon is enough.
401 %
402 Chuck Norris's version of a "chocolate milkshake" is a raw porterhouse wrapped around ten Hershey bars, and doused in diesel fuel.
403 %
404 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.
405 %
406 In a fight between Batman and Darth Vader, the winner would be Chuck Norris.
407 %
408 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.
409 %
410 Everybody loves Raymond. Except Chuck Norris.
411 %
412 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.
413 %
414 Chuck Norris got his drivers license at the age of 16. Seconds.
415 %
416 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.
417 %
418 Chuck Norris' sperm is so badass, he had sex with Nicole Kidman, and 7 months later she prematurely gave birth to a Ford Excursion.
419 %
420 Chuck Norris can win at solitaire with only 18 cards.
421 %
422 Chuck Norris once shat blood - the blood of 11,940 natives he had killed and eaten.
423 %
424 Maslow's theory of higher needs does not apply to Chuck Norris. He only has two needs: killing people and finding people to kill.
425 %
426 The truth will set you free. Unless Chuck Norris has you, in which case, forget it buddy!
427 %
428 For most people, home is where the heart is. For Chuck Norris, home is where he stores his collection of human skulls.
429 %
430 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.
431 %
432 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.
433 %
434 Coroners refer to dead people as "ABC's". Already Been Chucked.
435 %
436 Chuck Norris doesn't look both ways before he crosses the street... he just roundhouses any cars that get too close.
437 %
438 Chuck Norris does not have to answer the phone. His beard picks up the incoming electrical impulses and translates them into audible sound.
439 %
440 How many roundhouse kicks does it take to get to the center of a tootsie pop? Just one. From Chuck Norris.
441 %
442 Chuck Norris doesnt wear a watch, HE decides what time it is.
443 %
444 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.
445 %
446 When chuck Norris does division, there are no remainders.
447 %
448 If you rearrange the letters in "Chuck Norris", they also spell "Crush Rock In". The words "with his fists" are understood.
449 %
450 Never look a gift Chuck Norris in the mouth, because he will bite your damn eyes off.
451 %
452 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.
453 %
454 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.
455 %
456 The original title for Star Wars was "Skywalker: Texas Ranger". Starring Chuck Norris.
457 %
458 Guantuanamo Bay, Cuba, is the military code-word for "Chuck Norris' basement".
459 %
460 The phrase 'balls to the wall' was originally conceived to describe Chuck Norris entering any building smaller than an aircraft hangar.
461 %
462 Chuck Norris' roundhouse kick is so powerful, it can be seen from outer space by the naked eye.
463 %
464 Ozzy Osbourne bites the heads off of bats. Chuck Norris bites the heads off of Siberian Tigers.
465 %
466 He who lives by the sword, dies by the sword. He who lives by Chuck Norris, dies by the roundhouse kick.
467 %
468 The best-laid plans of mice and men often go awry. Even the worst-laid plans of Chuck Norris come off without a hitch.
469 %
470 The phrase 'dead ringer' refers to someone who sits behind Chuck Norris in a movie theater and forgets to turn their cell phone off.
471 %
472 Chuck Norris' Roundhouse kick is so powerful, that on the set of Sidekicks he single-footedly destroyed Jonathan Brandis' Career.
473 %
474 Staring at Chuck Norris for extended periods of time without proper eye protection will cause blindess, and possibly foot sized brusies on the face.
475 %
476 Chuck Norris can taste lies.
477 %
478 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.
479 %
480 One time, Chuck Norris accidentally stubbed his toe. It destroyed the entire state of Ohio.
481 %
482 Little Miss Muffet sat on her tuffet, until Chuck Norris roundhouse kicked her into a glacier.
483 %
484 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.
485 %
486 Chuck Norris can blow bubbles with beef jerky.
487 %
488 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.
489 %
490 Chuck Norris does, in fact, live in a round house.
491 %
492 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.
493 %
494 When Chuck Norris works out on the Total Gym, the Total Gym feels like it's been raped.
495 %
496 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.
497 %
498 Chuck Norris can skeletize a cow in two minutes.
499 %
500 The only sure things are Death and Taxes?and when Chuck Norris goes to work for the IRS, they'll be the same thing.
501 Chuck Norris' first job was as a paperboy. There were no survivors.
502 %
503 With the rising cost of gasoline, Chuck Norris is beginning to worry about his drinking habit.
504 %
505 The square root of Chuck Norris is pain. Do not try to square Chuck Norris, the result is death.
506 %
507 Chuck Norris' testicles do not produce sperm. They produce tiny white ninjas that recognize only one mission: seek and destroy.
508 %
509 To be or not to be? That is the question. The answer? Chuck Norris.
510 %
511 Chuck Norris has never been in a fight, ever. Do you call one roundhouse kick to the face a fight?
512 %
513 There are two types of people in the world... people that suck, and Chuck Norris.
514 %
515 Chuck Norris never wet his bed as a child. The bed wet itself out of fear.
516 %
517 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?
518 %
519 70% of a human's weight is water. 70% of Chuck Norris' weight is his dick.
520 %
521 Jean-Claude Van Damme once kicked Chuck Norris' ass. He was then awakened from his dream by a roundhouse kick to the face.
522 %
523 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.
524 %
525 Chuck Norris uses 8'x10' sheets of plywood as toilet paper.
526 %
527 Noah was the only man notified before Chuck Norris relieved himself in the Atlantic Ocean.
528 %
529 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.
530 %
531
532 %
533 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.
534 %
535 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.
536 %
537 Chuck Norris eats steak for every single meal. Most times he forgets to kill the cow.
538 %
539 The First Law of Thermodynamics states that energy can neither be created nor destroyed... unless it meets Chuck Norris.
540 %
541 Chuck Norris doesn't go on the internet, he has every internet site stored in his memory. He refreshes webpages by blinking.
542 %
543 Fact: Chuck Norris doesn't consider it sex if the woman survives.
544 %
545 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.
546 %
547 Chuck Norris knows everything there is to know - Except for the definition of mercy.
548 %
549 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.
550 %
551 Chuck Norris never has to wax his skis because they're always slick with blood.
552 %
553 When you say "no one's perfect", Chuck Norris takes this as a personal insult.
554 %
555 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.
556 %
557 182,000 Americans die from Chuck Norris-related accidents every year.
558 %
559 Paper beats rock, rock beats scissors, and scissors beats paper, but Chuck Norris beats all 3 at the same time.
560 %
561 Jesus can walk on water, but Chuck Norris can walk on Jesus.
562 %
563 All roads lead to Chuck Norris. And by the transitive property, a roundhouse kick to the face.
564 %
565 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.
566 %
567 July 4th is Independence day. And the day Chuck Norris was born. Coincidence? i think not.
568 %
569 Chuck Norris never goes to the dentist because his teeth are unbreakable. His enemies never go to the dentist because they have no teeth.
570 %
571 In the medical community, death is referred to as "Chuck Norris Disease"
572 %
573 Chuck Norris was once in a knife fight, and the knife lost.
574 %
575 If you work in an office with Chuck Norris, don't ask him for his three-hole-punch.
576 %
577 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.
578 %
579 The First rule of Chuck Norris is: you do not talk about Chuck Norris.
580 %
581 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.
582 %
583 When Chuck Norris plays Monopoly, it affects the actual world economy.
584 %
585 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.
586 %
587 Chuck Norris drinks napalm to quell his heartburn.
588 %
589 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.
590 %
591 As an infant, Chuck Norris' parents gave him a toy hammer. He gave the world Stonehenge.
592 %
593 Chuck Norris once ordered a steak in a restaurant. The steak did what it was told.
594 %
595 Most people fear the Reaper. Chuck Norris considers him "a promising Rookie".
596 %
597 There are only two things that can cut diamonds: other diamonds, and Chuck Norris.
598 %
599 President Roosevelt once rode his horse 100 miles. Chuck Norris carried his the same distance in half the time.
600 %
601 Chuck Norris once ate four 30lb bowling balls without chewing.
602 %
603 What many people dont know is chuck norris is the founder of planned parenthood. Not even unborn children can escape his wrath.
604 %
605 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.
606 %
607 Chuck Norris qualified with a top speed of 324 mph at the Daytona 500, without a car.
608 %
609 Chuck Norris likes his coffee half and half: half coffee grounds, half wood-grain alcohol.
610 %
611 Chuck Norris uses tabasco sauce instead of visine.
612 %
613 The chemical formula for the highly toxic cyanide ion is CN-. These are also Chuck Norris' initials. This is not a coincidence.
614 %
615 Chuck Norris' credit cards have no limit. Last weekend, he maxed them out.
616 %
617 Think of a hot woman. Chuck Norris did her.
618 %
619 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.
620 %
621 Chuck Norris sleeps with a pillow under his gun.
622 %
623 Chuck Norris owns a chain of fast-food restaurants throughout the southwest. They serve nothing but barbecue-flavored ice cream and Hot Pockets.
624 %
625 Chuck Norris doesn't chew gum. Chuck Norris chews tin foil.
626 %
627 Aliens DO indeed exist. They just know better than to visit a planet that Chuck Norris is on.
628 %
629 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.
630 %
631 Every time Chuck Norris smiles, someone dies. Unless he smiles while he's roundhouse kicking someone in the face. Then two people die.
632 %
633 Some people ask for a Kleenex when they sneeze, Chuck Norris asks for a body bag.
634 %
635 There's an order to the universe: space, time, Chuck Norris.... Just kidding, Chuck Norris is first.
636 %
637 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.
638 %
639 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.
640 %
641 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.
642 %
643 Chuck Norris doesn't see dead people. He makes people dead.
644 %
645 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.
646 %
647 For undercover police work, Chuck Norris pins his badge underneath his shirt, directly into his chest.
648 %
649 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.
650 %
651 We live in an expanding universe. All of it is trying to get away from Chuck Norris.
652 %
653 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!"
654 %
655 It is said that every time you masturbate, God kills a kitten. Every time God masturbates, Chuck Norris kills a lion.
656 %
657 The word 'Kill' was invented by Chuck Norris. Other words were 'Die', 'Beer', and 'What'.
658 %
659 Chuck Norris is a vegetarian. Meaning, he does not eat animals until first he puts them into vegetative state with his fists.
660 %
661 The 11th commandment is "Thou shalt not piss off Chuck Norris" This commandment is rarely enforced, as it is impossible to accomplish.
662 %
663 Chuck Norris is his own line at the DMV.
664 %
665 Two wrongs don't make a right. Unless you're Chuck Norris. Then two wrongs make a roundhouse kick to the face.
666 %
667 Who let the dogs out? Chuck Norris let the dogs out... and then roundhouse kicked them through an Oldsmobile.
668 %
669 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.
670 %
671 When Chuck Norris goes to out to eat, he orders a whole chicken, but he only eats its soul.
672 %
673 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.
674 %
675 Chuck Norris has never won an Academy Award for acting... because he's not acting.
676 %
677 If Chuck Norris wants your opinion, he'll beat it into you.
678 %
679 Not everyone that Chuck Norris is mad at gets killed. Some get away. They are called astronauts.
680 %
681 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.
682 %
683 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.
684 %
685 Godzilla is a Japanese rendition of Chuck Norris' first visit to Tokyo.
686 %
687 They once made a Chuck Norris toilet paper, but there was a problem-- It wouldn't take shit from anybody.
688 %
689 Chuck Norris once rode a nine foot grizzly bear through an automatic car wash, instead of taking a shower.
690 %
691 "Sweating bullets" is literally what happens when Chuck Norris gets too hot.
692 %
693 Chuck Norris' sperm can be seen with the naked eye. Each one is the size of a quarter.
694 %
695 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?"
696 %
697 Chuck Norris doesn't daydream. He's too busy giving other people nightmares.
698 %
699 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.
700 %
701 There are no such things as tornados. Chuck Norris just hates trailer parks.
702 %
703 Chuck Norris' Penis is a third degree blackbelt, and an honorable 32nd-degree mason.
704 %
705 Chuck Norris does not follow fashion trends, they follow him. But then he turns around and kicks their ass. Nobody follows Chuck Norris.
706 %
707 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.
708 %
709 Chuck Norris' roundhouse kick is so powerful, it can be seen from outer space by the naked eye.
710 %
711 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.
712 %
713 Chuck Norris once participated in the running of the bulls. He walked.
714 %
715 The Drummer for Def Leppard's only got one arm. Chuck Norris needed a back scratcher.
716 %
717 Chuck Norris was the orginal sculptor of Mount Rushmore. He completed the entire project using only a bottle opener and a drywall trowel.
718 %
719 Chuck Norris once rode a bull, and nine months later it had a calf.
720 %
721 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.
722 %
723 For Spring Break '05, Chuck Norris drove to Madagascar, riding a chariot pulled by two electric eels.
724 %
725 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.
726 %
727 Chuck Norris has banned rainbows from the state of North Dakota.
728 %
729 Divide Chuck Norris by zero and you will in fact get one........one bad-ass motherfucker that is.
730 %
731 TNT was originally developed by Chuck Norris to cure indigestion.
732 %
733 After returning from World War 2 unscathed, Bob Dole was congratulated by Chuck Norris with a handshake. The rest is history.
734 %
735 Chuck Norris runs on batteries. Specifically, Die Hards.
736 %
737 "Let the Bodies Hit the Floor" was originally written as Chuck Norris' theme song.
738 %
739 Chuck Norris will never have a heart attack. His heart isn't nearly foolish enough to attack him.
740 %
741 Only Chuck Norris can prevent forest fires.
742 %
743 When Chuck Norris makes a burrito, its main ingredient is real toes.
744 %
745 Chuck Norris is not Irish. His hair is soaked in the blood of his victims.
746 %
747 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.
748 %
749 Chuck Norris' dick is so big, it has it's own dick, and that dick is still bigger than yours.
750 %
751 They say curiosity killed the cat. This is false. Chuck Norris killed the cat. Every single one of them.
752 %
753 There is no such thing as a lesbian, just a woman who has never met Chuck Norris.
754 %
755 Chuck Norris crossed the road. No one has ever dared question his motives.
756 %
757 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.
758 %
759 One time, at band camp, Chuck Norris ate a percussionist.
760 %
761 Chuck Norris doesn't say "who's your daddy", because he knows the answer.
762 %
763 Chuck Norris originally wrote the first dictionary. The definition for each word is as follows - A swift roundhouse kick to the face.
764 %
765 Love does not hurt. Chuck Norris does.
766 %
767 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.
768 %
769 Chuck Norris once round-house kicked a salesman. Over the phone.
770 %
771 The pen is mighter than the sword, but only if the pen is held by Chuck Norris.
772 %
773 Chuck Norris doesn't kill two birds with one stone. Chuck Norris kills all birds, with two stones. The ones in his pants.
774 %
775 Chuck Norris knows the last digit of pi.
776 %
777 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.
778 %
779 The air around Chuck Norris is always a balmy 78 degrees.
780 %
781 When Chuck Norris wants an egg, he cracks open a chicken.
782 %
783 Chuck Norris plays racquetball with a waffle iron and a bowling ball.
784 %
785 According to the Bible, God created the universe in six days. Before that, Chuck Norris created God by snapping his fingers.
786 %
787 Chuck Norris doesn't believe in ravioli. He stuffs a live turtle with beef and smothers it in pig's blood.
788 %
789 Count from one to ten. That's how long it would take Chuck Norris to kill you...Fourty seven times.
790 %
791 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.
792 %
793 Chuck Norris is not Politically Correct. He is just Correct. Always.
794 %
795 Mr. T pities the fool. Chuck Norris rips the fool's fucking head off.
796 %
797 Chuck Norris had to stop washing his clothes in the ocean. The tsunamis were killing people.
798 %
799 Chuck Norris has volunteered to remain on earth after the Rapture; he will spend his time fighting the Anti-Christ.
800 %
801 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."
802 %
803 Chuck Norris is the only known mammal in history to have an opposable thumb. On his penis.
804 %
805 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.
806 %
807 Chuck Norris' favorite cereal is Kellogg's Nails 'N' Gravel.
808 %
809 In the first Jurassic Park movie, the Tyrannosaurus Rex wasn't chasing the jeep. Chuck Norris was chasing the Tyrannosaurus AND the jeep.
810 %
811 Chuck Norris has never been accused of murder for the simple fact that his roundhouse kicks are recognized world-wide as "acts of God."
812 %
813 "Brokeback Mountain" is not just a movie. It's also what Chuck Norris calls the pile of dead ninjas in his front yard.
814 %
815 Chuck Norris does not wear a condom. Because there is no such thing as protection from Chuck Norris.
816 %
817 Chuck Norris once had sex with a cigarette machine in the Osaka airport.
818 %
819 Rules of fighting: 1) Don't bring a knife to a gun fight. 2) Don't bring a gun to a Chuck Norris fight.
820 %
821 Chuck Norris is the only man who has, literally, beaten the odds. With his fists.
822 %
823 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.
824 %
825 Chuck Norris wipes his ass with chain mail and sandpaper.
826 %
827 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.
828 %
829 Chuck Norris describes human beings as "a sociable holder for blood and guts".
830 %
831 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.
832 %
833 Chuck Norris likes his ice like he likes his skulls: crushed.
834 %
835 Chuck Norris can kick through all 6 degrees of separation, hitting anyone, anywhere, in the face, at any time.
836 %
837 Most tough men eat nails for breakfast. chuck Norris does all of his grocery shopping at Home Depot.
838 %
839 Chuck Norris did not "lose" his virginity, he stalked it and then destroyed it with extreme prejudice.
840 %
841 Everything King Midas touches turnes to gold. Everything Chuck Norris touches turns up dead.
842 %
843 Chuck Norris' pulse is measured on the richter scale.
844 %
845 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."
846 %
847 Chuck Norris once roundhouse-kicked a ten dollar bill into 200 nickels.
848 %
849 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.
850 %
851 Chuck Norris' penis has a Hemi.
852 %
853 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.
854 %
855 Chuck Norris CAN in fact 'raise the roof'. And he can do it with one hand.
856 %
857 Kenny G is allowed to live because Chuck Norris doesn't kill women.
858 %
859 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.
860 %
861 For Chuck Norris, every street is "one way". HIS WAY.
862 %
863 There are now five cup sizes at Starbucks: Short, Tall, Grande, Venti, and Chuck Norris.
864 %
865 During the Vietnam War, Chuck Norris allowed himself to be captured. For torture, they made him eat his own entrails. He asked for seconds.
866 %
867 Chuck Norris once created a flamethrower by urinating into a lighter.
868 %
869 Instead of having a cigarette after sex, Chuck Norris heads outside and brands his cattle.
870 %
871 Chuck Norris actually built the stairway to heaven.
872 %
873 Whoever said "only the good die young" was probably in Chuck Norris's kindergarten class.
874 %
875 Chuck Norris once skewered a man with the Eiffel tower.
876 %
877 The best part of waking up, is not Folgers in your cup, but knowing that Chuck Norris didn't kill you in your sleep.
878 %
879 Chuck Norris doesn't own a can opener, he just chews through the can.
880 %
881 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.
882 %
883 Chuck Norris needs a monkeywrench and a blowtorch to masturbate.
884 %
885 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.
886 %
887 Chuck Norris invented all 32 letters of the alphabet.
888 %
889 Remember The Ultimate Warrior? He quit wrestling because Chuck Norris wanted his nickname back.
890 %
891 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.
892 %
893 Chuck Norris actually owns IBM. It was an extremely hostile takeover.
894 %
895 He, who laughs last, laughs best. He who laughs at Chuck Norris ? dies.
896 %
897 Chuck Norris is like a dog, not only because he can smell fear, but because he can piss on whatever the fuck he wants.
898 %
899 Chuck Norris can jump-start a car using jumper cables attached to his nipples.
900 %
901 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.
902 %
903 Chuck Norris doesn't have blood. He is filled with magma.
904 %
1 Chuck Norris' tears cure cancer. Too bad he has never cried. Ever. 905
repos/robbyrussell/oh-my-zsh/plugins/composer/composer.plugin.zsh
1 # ------------------------------------------------------------------------------ 1 # ------------------------------------------------------------------------------
2 # FILE: composer.plugin.zsh 2 # FILE: composer.plugin.zsh
3 # DESCRIPTION: oh-my-zsh composer plugin file. 3 # DESCRIPTION: oh-my-zsh composer plugin file.
4 # AUTHOR: Daniel Gomes (me@danielcsgomes.com) 4 # AUTHOR: Daniel Gomes (me@danielcsgomes.com)
5 # VERSION: 1.0.0 5 # VERSION: 1.0.0
6 # ------------------------------------------------------------------------------ 6 # ------------------------------------------------------------------------------
7 7
8 # Composer basic command completion 8 # Composer basic command completion
9 _composer_get_command_list () { 9 _composer_get_command_list () {
10 $_comp_command1 --no-ansi | sed "1,/Available commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }' 10 $_comp_command1 --no-ansi | sed "1,/Available commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }'
11 } 11 }
12 12
13 _composer_get_required_list () { 13 _composer_get_required_list () {
14 $_comp_command1 show -s --no-ansi | sed '1,/requires/d' | awk 'NF > 0 && !/^requires \(dev\)/{ print $1 }' 14 $_comp_command1 show -s --no-ansi | sed '1,/requires/d' | awk 'NF > 0 && !/^requires \(dev\)/{ print $1 }'
15 } 15 }
16 16
17 _composer () { 17 _composer () {
18 local curcontext="$curcontext" state line 18 local curcontext="$curcontext" state line
19 typeset -A opt_args 19 typeset -A opt_args
20 _arguments \ 20 _arguments \
21 '1: :->command'\ 21 '1: :->command'\
22 '*: :->args' 22 '*: :->args'
23 23
24 case $state in 24 case $state in
25 command) 25 command)
26 compadd $(_composer_get_command_list) 26 compadd $(_composer_get_command_list)
27 ;; 27 ;;
28 *) 28 *)
29 compadd $(_composer_get_required_list) 29 compadd $(_composer_get_required_list)
30 ;; 30 ;;
31 esac 31 esac
32 } 32 }
33 33
34 compdef _composer composer 34 compdef _composer composer
35 compdef _composer composer.phar 35 compdef _composer composer.phar
36 36
37 # Aliases 37 # Aliases
38 alias c='composer' 38 alias c='composer'
39 alias csu='composer self-update' 39 alias csu='composer self-update'
40 alias cu='composer update' 40 alias cu='composer update'
41 alias cr='composer require' 41 alias cr='composer require'
42 alias ci='composer install' 42 alias ci='composer install'
43 alias ccp='composer create-project' 43 alias ccp='composer create-project'
44 alias cdu='composer dump-autoload' 44 alias cdu='composer dump-autoload'
45 alias cgu='composer global update' 45 alias cgu='composer global update'
46 alias cgr='composer global require' 46 alias cgr='composer global require'
47 47
48 # install composer in the current directory 48 # install composer in the current directory
49 alias cget='curl -s https://getcomposer.org/installer | php' 49 alias cget='curl -s https://getcomposer.org/installer | php'
50 50
51 # Add Composer's global binaries to PATH 51 # Add Composer's global binaries to PATH
52 export PATH=$PATH:~/.composer/vendor/bin 52 export PATH=$PATH:~/.composer/vendor/bin
53 53
repos/robbyrussell/oh-my-zsh/plugins/docker/_docker
1 #compdef docker 1 #compdef docker
2 2
3 # Docker autocompletion for oh-my-zsh 3 # Docker autocompletion for oh-my-zsh
4 # Requires: Docker installed 4 # Requires: Docker installed
5 # Author: Azaan (@aeonazaan) 5 # Author: Azaan (@aeonazaan)
6 # Updates: Bob Maerten (@bobmaerten) for Docker v0.9+ 6 # Updates: Bob Maerten (@bobmaerten) for Docker v0.9+
7 # Paul van den Berg (@bergvandenp) for Docker v1.3+ 7 # Paul van den Berg (@bergvandenp) for Docker v1.3+
8 8
9 9
10 # ----- Helper functions 10 # ----- Helper functions
11 # Output a selectable list of all running docker containers 11 # Output a selectable list of all running docker containers
12 __docker_containers() { 12 __docker_containers() {
13 declare -a cont_cmd 13 declare -a cont_cmd
14 cont_cmd=($(docker ps | awk 'NR>1{print $NF":[CON("$1")"$2"("$3")]"}')) 14 cont_cmd=($(docker ps | awk 'NR>1{print $NF":[CON("$1")"$2"("$3")]"}'))
15 _describe 'containers' cont_cmd 15 _describe 'containers' cont_cmd
16 } 16 }
17 17
18 # output a selectable list of all docker images 18 # output a selectable list of all docker images
19 __docker_images() { 19 __docker_images() {
20 declare -a img_cmd 20 declare -a img_cmd
21 img_cmd=($(docker images | awk 'NR>1{print $1}')) 21 img_cmd=($(docker images | awk 'NR>1{print $1}'))
22 _describe 'images' img_cmd 22 _describe 'images' img_cmd
23 } 23 }
24 24
25 # ----- Commands 25 # ----- Commands
26 # Seperate function for each command, makes extension easier later 26 # Seperate function for each command, makes extension easier later
27 # --------------------------- 27 # ---------------------------
28 __attach() { 28 __attach() {
29 _arguments \ 29 _arguments \
30 '--no-stdin[Do not attach stdin]' \ 30 '--no-stdin[Do not attach stdin]' \
31 '--sig-proxy[Proxify all received signal to the process (even in non-tty mode)]' 31 '--sig-proxy[Proxify all received signal to the process (even in non-tty mode)]'
32 __docker_containers 32 __docker_containers
33 } 33 }
34 34
35 __build() { 35 __build() {
36 _arguments \ 36 _arguments \
37 '--no-cache[Do not use cache when building the image]' \ 37 '--no-cache[Do not use cache when building the image]' \
38 '(-q,--quiet)'{-q,--quiet}'[Suppress the verbose output generated by the containers]' \ 38 '(-q,--quiet)'{-q,--quiet}'[Suppress the verbose output generated by the containers]' \
39 '--rm[Remove intermediate containers after a successful build]' \ 39 '--rm[Remove intermediate containers after a successful build]' \
40 '(-t,--tag=)'{-t,--tag=}'[Repository name (and optionally a tag) to be applied to the resulting image in case of success]' \ 40 '(-t,--tag=)'{-t,--tag=}'[Repository name (and optionally a tag) to be applied to the resulting image in case of success]' \
41 '*:files:_files' 41 '*:files:_files'
42 } 42 }
43 43
44 __commit() { 44 __commit() {
45 _arguments \ 45 _arguments \
46 '(-a,--author=)'{-a,--author=}'[Author (eg. "John Hannibal Smith <hannibal@a-team.com>"]' \ 46 '(-a,--author=)'{-a,--author=}'[Author (eg. "John Hannibal Smith <hannibal@a-team.com>"]' \
47 '(-m,--message=)'{-m,--message=}'[Commit message]' \ 47 '(-m,--message=)'{-m,--message=}'[Commit message]' \
48 '--run=[Config automatically applied when the image is run.]' 48 '--run=[Config automatically applied when the image is run.]'
49 __docker_containers 49 __docker_containers
50 } 50 }
51 51
52 __cp() { 52 __cp() {
53 __docker_containers 53 __docker_containers
54 } 54 }
55 55
56 __diff() { 56 __diff() {
57 __docker_containers 57 __docker_containers
58 } 58 }
59 59
60 __events() { 60 __events() {
61 _arguments \ 61 _arguments \
62 '--since=[Show previously created events and then stream.]' 62 '--since=[Show previously created events and then stream.]'
63 } 63 }
64 64
65 __export() { 65 __export() {
66 __docker_containers 66 __docker_containers
67 } 67 }
68 68
69 __history() { 69 __history() {
70 _arguments \ 70 _arguments \
71 '--no-trunc=[Don''t truncate output]' \ 71 '--no-trunc=[Don''t truncate output]' \
72 '(-q,--quiet)'{-q,--quiet}'[Only show numeric IDs]' 72 '(-q,--quiet)'{-q,--quiet}'[Only show numeric IDs]'
73 __docker_images 73 __docker_images
74 } 74 }
75 75
76 __images() { 76 __images() {
77 _arguments \ 77 _arguments \
78 '(-a,--all)'{-a,--all}'[Show all images (by default filter out the intermediate images used to build)]' \ 78 '(-a,--all)'{-a,--all}'[Show all images (by default filter out the intermediate images used to build)]' \
79 '--no-trunc[Don''t truncate output]' \ 79 '--no-trunc[Don''t truncate output]' \
80 '(-q,--quiet=)'{-q,--quiet=}'[Only show numeric IDs]' \ 80 '(-q,--quiet=)'{-q,--quiet=}'[Only show numeric IDs]' \
81 '(-t,--tree=)'{-t,--tree=}'[Output graph in tree format]' \ 81 '(-t,--tree=)'{-t,--tree=}'[Output graph in tree format]' \
82 '(-v,--viz=)'{-v,--viz=}'[Output graph in graphviz format]' 82 '(-v,--viz=)'{-v,--viz=}'[Output graph in graphviz format]'
83 __docker_images 83 __docker_images
84 } 84 }
85 85
86 __import() { 86 __import() {
87 _arguments '*:files:_files' 87 _arguments '*:files:_files'
88 } 88 }
89 89
90 __info() { 90 __info() {
91 # no arguments 91 # no arguments
92 } 92 }
93 93
94 __insert() { 94 __insert() {
95 __docker_images 95 __docker_images
96 _arguments '*:files:_files' 96 _arguments '*:files:_files'
97 } 97 }
98 98
99 __inspect() { 99 __inspect() {
100 __docker_images 100 __docker_images
101 __docker_containers 101 __docker_containers
102 } 102 }
103 103
104 __kill() { 104 __kill() {
105 __docker_containers 105 __docker_containers
106 } 106 }
107 107
108 __load() { 108 __load() {
109 _arguments '*:files:_files' 109 _arguments '*:files:_files'
110 } 110 }
111 111
112 __login() { 112 __login() {
113 _arguments \ 113 _arguments \
114 '(-e,--email=)'{-e,-email=}'[Email]' \ 114 '(-e,--email=)'{-e,-email=}'[Email]' \
115 '(-p,--password=)'{-p,-password=}'[Password]' \ 115 '(-p,--password=)'{-p,-password=}'[Password]' \
116 '(-u,--username=)'{-u,-username=}'[Username]' 116 '(-u,--username=)'{-u,-username=}'[Username]'
117 } 117 }
118 118
119 __logs() { 119 __logs() {
120 _arguments \ 120 _arguments \
121 '(-f,--follow)'{-f,-follow}'[Follow log output]' 121 '(-f,--follow)'{-f,-follow}'[Follow log output]'
122 __docker_containers 122 __docker_containers
123 } 123 }
124 124
125 __port() { 125 __port() {
126 __docker_containers 126 __docker_containers
127 } 127 }
128 128
129 __top() { 129 __top() {
130 __docker_containers 130 __docker_containers
131 } 131 }
132 132
133 __ps() { 133 __ps() {
134 _arguments \ 134 _arguments \
135 '(-a,--all)'{-a,--all}'[Show all containers. Only running containers are shown by default.]' \ 135 '(-a,--all)'{-a,--all}'[Show all containers. Only running containers are shown by default.]' \
136 '--before-id=[Show only container created before Id, include non-running ones.]' \ 136 '--before-id=[Show only container created before Id, include non-running ones.]' \
137 '(-l,--latest)'{-l,--latest}'[Show only the latest created container, include non-running ones.]' \ 137 '(-l,--latest)'{-l,--latest}'[Show only the latest created container, include non-running ones.]' \
138 '-n=[Show n last created containers, include non-running ones. default=-1.]' \ 138 '-n=[Show n last created containers, include non-running ones. default=-1.]' \
139 '--no-trunc[Don''t truncate output]' \ 139 '--no-trunc[Don''t truncate output]' \
140 '(-q,--quiet)'{-q,--quiet}'[Only display numeric IDs]' \ 140 '(-q,--quiet)'{-q,--quiet}'[Only display numeric IDs]' \
141 '(-s,--size)'{-s,--size}'[Display sizes]' \ 141 '(-s,--size)'{-s,--size}'[Display sizes]' \
142 '--since-id=[Show only containers created since Id, include non-running ones.]' 142 '--since-id=[Show only containers created since Id, include non-running ones.]'
143 } 143 }
144 144
145 __pull() { 145 __pull() {
146 _arguments \ 146 _arguments \
147 '(-t,--tag=)'{-t,--tag=}'[Download tagged image in repository]' 147 '(-t,--tag=)'{-t,--tag=}'[Download tagged image in repository]'
148 } 148 }
149 149
150 __push() { 150 __push() {
151 # no arguments 151 # no arguments
152 } 152 }
153 153
154 __restart() { 154 __restart() {
155 _arguments \ 155 _arguments \
156 '(-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]' 156 '(-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]'
157 __docker_containers 157 __docker_containers
158 } 158 }
159 159
160 __rm() { 160 __rm() {
161 _arguments \ 161 _arguments \
162 '(-f,--force=)'{-f,--force=}'[Force removal of running container]' \ 162 '(-f,--force=)'{-f,--force=}'[Force removal of running container]' \
163 '(-l,--link=)'{-l,--link=}'[Remove the specified link and not the underlying container]' \ 163 '(-l,--link=)'{-l,--link=}'[Remove the specified link and not the underlying container]' \
164 '(-v,--volumes=)'{-v,--volumes=}'[Remove the volumes associated to the container]' 164 '(-v,--volumes=)'{-v,--volumes=}'[Remove the volumes associated to the container]'
165 __docker_containers 165 __docker_containers
166 } 166 }
167 167
168 __rmi() { 168 __rmi() {
169 _arguments \ 169 _arguments \
170 '(-f,--force=)'{-f,--force=}'[Force]' 170 '(-f,--force=)'{-f,--force=}'[Force]'
171 __docker_images 171 __docker_images
172 } 172 }
173 173
174 __run() { 174 __run() {
175 _arguments \ 175 _arguments \
176 '(-P,--publish-all=)'{-P,--publish-all=}'[Publish all exposed ports to the host interfaces]' \ 176 '(-P,--publish-all=)'{-P,--publish-all=}'[Publish all exposed ports to the host interfaces]' \
177 '(-a,--attach=)'{-a,--attach=}'[Attach to stdin, stdout or stderr.]' \ 177 '(-a,--attach=)'{-a,--attach=}'[Attach to stdin, stdout or stderr.]' \
178 '(-c,--cpu-shares=)'{-c,--cpu-shares=}': CPU shares (relative weight)]' \ 178 '(-c,--cpu-shares=)'{-c,--cpu-shares=}': CPU shares (relative weight)]' \
179 '--cidfile=[Write the container ID to the file]' \ 179 '--cidfile=[Write the container ID to the file]' \
180 '(-d,--detach=)'{-d,--detach=}'[Detached mode: Run container in the background, print new container id]' \ 180 '(-d,--detach=)'{-d,--detach=}'[Detached mode: Run container in the background, print new container id]' \
181 '--dns=[Set custom dns servers]' \ 181 '--dns=[Set custom dns servers]' \
182 '(-e,--env=)'{-e,--env=}'[Set environment variables]' \ 182 '(-e,--env=)'{-e,--env=}'[Set environment variables]' \
183 '--entrypoint=[Overwrite the default entrypoint of the image]' \ 183 '--entrypoint=[Overwrite the default entrypoint of the image]' \
184 '--expose=[Expose a port from the container without publishing it to your host]' \ 184 '--expose=[Expose a port from the container without publishing it to your host]' \
185 '(-h,--hostname=)'{-h,--hostname=}'[Container host name]' \ 185 '(-h,--hostname=)'{-h,--hostname=}'[Container host name]' \
186 '(-i,--interactive=)'{-i,--interactive=}'[Keep stdin open even if not attached]' \ 186 '(-i,--interactive=)'{-i,--interactive=}'[Keep stdin open even if not attached]' \
187 '--link=[Add link to another container (name:alias)]' \ 187 '--link=[Add link to another container (name:alias)]' \
188 '--lxc-conf=[Add custom lxc options -lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"]' \ 188 '--lxc-conf=[Add custom lxc options -lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"]' \
189 '(-m,--memory=)'{-m,--memory=}'[Memory limit (format: <number><optional unit>, where unit = b, k, m or g)]' \ 189 '(-m,--memory=)'{-m,--memory=}'[Memory limit (format: <number><optional unit>, where unit = b, k, m or g)]' \
190 '(-n,--networking=)'{-n,--networking=}'[Enable networking for this container]' \ 190 '(-n,--networking=)'{-n,--networking=}'[Enable networking for this container]' \
191 '--name=[Assign a name to the container]' \ 191 '--name=[Assign a name to the container]' \
192 '(-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)]' \ 192 '(-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)]' \
193 '--privileged=[Give extended privileges to this container]' \ 193 '--privileged=[Give extended privileges to this container]' \
194 '--rm=[Automatically remove the container when it exits (incompatible with -d)]' \ 194 '--rm=[Automatically remove the container when it exits (incompatible with -d)]' \
195 '--sig-proxy=[Proxify all received signal to the process (even in non-tty mode)]' \ 195 '--sig-proxy=[Proxify all received signal to the process (even in non-tty mode)]' \
196 '(-t,--tty=)'{-t,--tty=}'[Allocate a pseudo-tty]' \ 196 '(-t,--tty=)'{-t,--tty=}'[Allocate a pseudo-tty]' \
197 '(-u,--user=)'{-u,--user=}'[Username or UID]' \ 197 '(-u,--user=)'{-u,--user=}'[Username or UID]' \
198 '(-v,--volume=)'{-v,--volume=}'[Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container)]' \ 198 '(-v,--volume=)'{-v,--volume=}'[Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container)]' \
199 '--volumes-from=[Mount volumes from the specified container(s)]' \ 199 '--volumes-from=[Mount volumes from the specified container(s)]' \
200 '(-w,--workdir=)'{-w,--workdir=}'[Working directory inside the container]' 200 '(-w,--workdir=)'{-w,--workdir=}'[Working directory inside the container]'
201 __docker_images 201 __docker_images
202 } 202 }
203 203
204 __search() { 204 __search() {
205 _arguments \ 205 _arguments \
206 '--no-trunc=[Don''t truncate output]' \ 206 '--no-trunc=[Don''t truncate output]' \
207 '-s,--stars=)'{-s,--stars=}'[Only displays with at least xxx stars]' \ 207 '-s,--stars=)'{-s,--stars=}'[Only displays with at least xxx stars]' \
208 '-t,--trusted=)'{-t,--trusted=}'[Only show trusted builds]' 208 '-t,--trusted=)'{-t,--trusted=}'[Only show trusted builds]'
209 } 209 }
210 210
211 __save() { 211 __save() {
212 __docker_images 212 __docker_images
213 } 213 }
214 214
215 __start() { 215 __start() {
216 _arguments \ 216 _arguments \
217 '(-a,--attach=)'{-a,--attach=}'[Attach container''s stdout/stderr and forward all signals to the process]' \ 217 '(-a,--attach=)'{-a,--attach=}'[Attach container''s stdout/stderr and forward all signals to the process]' \
218 '(-i,--interactive=)'{-i,--interactive=}'[Attach container''s stdin]' 218 '(-i,--interactive=)'{-i,--interactive=}'[Attach container''s stdin]'
219 __docker_containers 219 __docker_containers
220 } 220 }
221 221
222 __stats() {
223 __docker_containers
224 }
225
222 __stats() { 226 __stop() {
223 __docker_containers 227 _arguments \
224 } 228 '(-t,--time=)'{-t,--time=}'[Number of seconds to wait for the container to stop before killing it.]'
225 229 __docker_containers
226 __stop() { 230 }
227 _arguments \ 231
228 '(-t,--time=)'{-t,--time=}'[Number of seconds to wait for the container to stop before killing it.]' 232 __tag() {
229 __docker_containers 233 _arguments \
230 } 234 '(-f,--force=)'{-f,--force=}'[Force]'
231 235 __docker_images
232 __tag() { 236 }
233 _arguments \ 237
234 '(-f,--force=)'{-f,--force=}'[Force]' 238 __version() {
235 __docker_images 239 # no arguments
236 } 240 }
237 241
238 __version() { 242 __wait() {
239 # no arguments 243 __docker_containers
240 } 244 }
241 245
242 __wait() { 246 __exec() {
243 __docker_containers 247 _arguments \
244 } 248 '(-d,--detach=)'{-d,--detach=}'[Detached mode: run command in the background]' \
245 249 '(-i,--interactive=)'{-i,--interactive=}'[Keep STDIN open even if not attached]' \
246 __exec() { 250 '(-t,--tty=)'{-t,--tty=}'[Allocate a pseudo-TTY]'
247 _arguments \ 251 __docker_containers
248 '(-d,--detach=)'{-d,--detach=}'[Detached mode: run command in the background]' \ 252 }
249 '(-i,--interactive=)'{-i,--interactive=}'[Keep STDIN open even if not attached]' \ 253
250 '(-t,--tty=)'{-t,--tty=}'[Allocate a pseudo-TTY]' 254 # end commands ---------
251 __docker_containers 255 # ----------------------
252 } 256
253 257 local -a _1st_arguments
254 # end commands --------- 258 _1st_arguments=(
255 # ---------------------- 259 "attach":"Attach to a running container"
256 260 "build":"Build a container from a Dockerfile"
257 local -a _1st_arguments 261 "commit":"Create a new image from a container's changes"
258 _1st_arguments=( 262 "cp":"Copy files/folders from the containers filesystem to the host path"
259 "attach":"Attach to a running container" 263 "diff":"Inspect changes on a container's filesystem"
260 "build":"Build a container from a Dockerfile" 264 "events":"Get real time events from the server"
261 "commit":"Create a new image from a container's changes" 265 "export":"Stream the contents of a container as a tar archive"
262 "cp":"Copy files/folders from the containers filesystem to the host path" 266 "history":"Show the history of an image"
263 "diff":"Inspect changes on a container's filesystem" 267 "images":"List images"
264 "events":"Get real time events from the server" 268 "import":"Create a new filesystem image from the contents of a tarball"
265 "export":"Stream the contents of a container as a tar archive" 269 "info":"Display system-wide information"
266 "history":"Show the history of an image" 270 "insert":"Insert a file in an image"
267 "images":"List images" 271 "inspect":"Return low-level information on a container"
268 "import":"Create a new filesystem image from the contents of a tarball" 272 "kill":"Kill a running container"
269 "info":"Display system-wide information" 273 "load":"Load an image from a tar archive"
270 "insert":"Insert a file in an image" 274 "login":"Register or Login to the docker registry server"
271 "inspect":"Return low-level information on a container" 275 "logs":"Fetch the logs of a container"
272 "kill":"Kill a running container" 276 "port":"Lookup the public-facing port which is NAT-ed to PRIVATE_PORT"
273 "load":"Load an image from a tar archive" 277 "ps":"List containers"
274 "login":"Register or Login to the docker registry server" 278 "pull":"Pull an image or a repository from the docker registry server"
275 "logs":"Fetch the logs of a container" 279 "push":"Push an image or a repository to the docker registry server"
276 "port":"Lookup the public-facing port which is NAT-ed to PRIVATE_PORT" 280 "restart":"Restart a running container"
277 "ps":"List containers" 281 "rm":"Remove one or more containers"
278 "pull":"Pull an image or a repository from the docker registry server" 282 "rmi":"Remove one or more images"
279 "push":"Push an image or a repository to the docker registry server" 283 "run":"Run a command in a new container"
280 "restart":"Restart a running container" 284 "save":"Save an image to a tar archive"
281 "rm":"Remove one or more containers" 285 "search":"Search for an image in the docker index"
282 "rmi":"Remove one or more images" 286 "start":"Start a stopped container"
287 "stats":"Display a live stream of one or more containers' resource usage statistics"
283 "run":"Run a command in a new container" 288 "stop":"Stop a running container"
284 "save":"Save an image to a tar archive" 289 "tag":"Tag an image into a repository"
285 "search":"Search for an image in the docker index" 290 "top":"Lookup the running processes of a container"
286 "start":"Start a stopped container" 291 "version":"Show the docker version information"
287 "stats":"Display a live stream of one or more containers' resource usage statistics" 292 "wait":"Block until a container stops, then print its exit code"
288 "stop":"Stop a running container" 293 "exec":"Run a task inside a running container"
289 "tag":"Tag an image into a repository" 294 )
290 "top":"Lookup the running processes of a container" 295
291 "version":"Show the docker version information" 296 _arguments '*:: :->command'
292 "wait":"Block until a container stops, then print its exit code" 297
293 "exec":"Run a task inside a running container" 298 if (( CURRENT == 1 )); then
294 ) 299 _describe -t commands "docker command" _1st_arguments
295 300 return
296 _arguments '*:: :->command' 301 fi
297 302
298 if (( CURRENT == 1 )); then 303 local -a _command_args
299 _describe -t commands "docker command" _1st_arguments 304 case "$words[1]" in
300 return 305 attach)
301 fi 306 __attach ;;
302 307 build)
303 local -a _command_args 308 __build ;;
304 case "$words[1]" in 309 commit)
305 attach) 310 __commit ;;
306 __attach ;; 311 cp)
307 build) 312 __cp ;;
308 __build ;; 313 diff)
309 commit) 314 __diff ;;
310 __commit ;; 315 events)
311 cp) 316 __events ;;
312 __cp ;; 317 export)
313 diff) 318 __export ;;
314 __diff ;; 319 history)
315 events) 320 __history ;;
316 __events ;; 321 images)
317 export) 322 __images ;;
318 __export ;; 323 import)
319 history) 324 __import ;;
320 __history ;; 325 info)
321 images) 326 __info ;;
322 __images ;; 327 insert)
323 import) 328 __insert ;;
324 __import ;; 329 inspect)
325 info) 330 __inspect ;;
326 __info ;; 331 kill)
327 insert) 332 __kill ;;
328 __insert ;; 333 load)
329 inspect) 334 __load ;;
330 __inspect ;; 335 login)
331 kill) 336 __login ;;
332 __kill ;; 337 logs)
333 load) 338 __logs ;;
334 __load ;; 339 port)
335 login) 340 __port ;;
336 __login ;; 341 ps)
337 logs) 342 __ps ;;
338 __logs ;; 343 pull)
339 port) 344 __pull ;;
340 __port ;; 345 push)
341 ps) 346 __push ;;
342 __ps ;; 347 restart)
343 pull) 348 __restart ;;
344 __pull ;; 349 rm)
345 push) 350 __rm ;;
346 __push ;; 351 rmi)
347 restart) 352 __rmi ;;
348 __restart ;; 353 run)
349 rm) 354 __run ;;
350 __rm ;; 355 save)
351 rmi) 356 __save ;;
352 __rmi ;; 357 search)
353 run) 358 __search ;;
359 stats)
360 __stats ;;
354 __run ;; 361 start)
355 save) 362 __start ;;
356 __save ;; 363 stop)
357 search) 364 __stop ;;
358 __search ;; 365 tag)
359 stats) 366 __tag ;;
360 __stats ;; 367 top)
361 start) 368 __top ;;
362 __start ;; 369 version)
363 stop) 370 __version ;;
364 __stop ;; 371 wait)
365 tag) 372 __wait ;;
366 __tag ;; 373 exec)
367 top) 374 __exec ;;
368 __top ;; 375 esac
369 version) 376
repos/robbyrussell/oh-my-zsh/plugins/ember-cli/README.md
File was created 1 # Ember-cli
2
3 **Maintainer:** [BilalBudhani](http://www.github.com/BilalBudhani)
4
5 Ember-cli (http://www.ember-cli.com/)
6
7 ### List of Aliases
8
9 alias es='ember serve'
10 alias ea='ember addon'
11 alias eb='ember build'
12 alias ed='ember destroy'
13 alias eg='ember generate'
14 alias eh='ember help'
15 alias ein='ember init'
16 alias eia='ember install:addon'
17 alias eib='ember install:bower'
18 alias ein='ember install:npm'
19 alias ei='ember install'
20 alias et='ember test'
21 alias eu='ember update'
22 alias ev='ember version'
1 # Ember-cli 23
repos/robbyrussell/oh-my-zsh/plugins/ember-cli/ember-cli.plugin.zsh
File was created 1 # Ember ClI
2 # visit http://www.ember-cli.com/ to view user guid
3
4 alias es='ember serve'
5 alias ea='ember addon'
6 alias eb='ember build'
7 alias ed='ember destroy'
8 alias eg='ember generate'
9 alias eh='ember help'
10 alias ein='ember init'
11 alias eia='ember install:addon'
12 alias eib='ember install:bower'
13 alias ein='ember install:npm'
14 alias ei='ember install'
15 alias et='ember test'
16 alias eu='ember update'
17
18 # version
19 alias ev='ember version'
1 # Ember ClI 20
repos/robbyrussell/oh-my-zsh/plugins/jhbuild/README.md
File was created 1 ## JHBuild
2 **Maintainer:** [Miguel Vaello](https://github.com/miguxbe)
3
4 This plugin adds some jhbuild aliases and increase the completion function provided by zsh.
1 ## JHBuild 5
repos/robbyrussell/oh-my-zsh/plugins/jhbuild/jhbuild.plugin.zsh
File was created 1 # Aliases
2 #
3 alias jh='jhbuild'
4 # Build
5 alias jhb='jhbuild build'
6 alias jhbo='jhbuild buildone'
7 # Checks
8 alias jhckb='jhbuild checkbranches'
9 alias jhckm='jhbuild checkmodulesets'
10 # Info & list
11 alias jhi='jhbuild info'
12 alias jhl='jhbuild list'
13 # Clean
14 alias jhc='jhbuild clean'
15 alias jhco='jhbuild cleanone'
16 # Run
17 alias jhr='jhbuild run'
18 # Depends
19 alias jhrd='jhbuild rdepends'
20 alias jhsd='jhbuild sysdeps'
21 # Update
22 alias jhu='jhbuild update'
23 alias jhuo='jhbuild updateone'
24 # Uninstall
25 alias jhun='jhbuild uninstall'
26
27
28
1 # Aliases 29
repos/robbyrussell/oh-my-zsh/plugins/laravel4/laravel4.plugin.zsh
1 # Laravel4 basic command completion 1 # Laravel4 basic command completion
2 _laravel4_get_command_list () { 2 _laravel4_get_command_list () {
3 php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }' 3 php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
4 } 4 }
5 5
6 _laravel4 () { 6 _laravel4 () {
7 if [ -f artisan ]; then 7 if [ -f artisan ]; then
8 compadd `_laravel4_get_command_list` 8 compadd `_laravel4_get_command_list`
9 fi 9 fi
10 } 10 }
11 11
12 compdef _laravel4 artisan 12 compdef _laravel4 artisan
13 compdef _laravel4 la4 13 compdef _laravel4 la4
14 14
15 #Alias 15 #Alias
16 alias la4='php artisan' 16 alias la4='php artisan'
17 17
18 alias la4dump='php artisan dump-autoload' 18 alias la4dump='php artisan dump-autoload'
19 alias la4cache='php artisan cache:clear' 19 alias la4cache='php artisan cache:clear'
20 alias la4routes='php artisan routes' 20 alias la4routes='php artisan routes'
21 21
repos/robbyrussell/oh-my-zsh/plugins/laravel5/laravel5.plugin.zsh
File was created 1 # Laravel5 basic command completion
2 _laravel5_get_command_list () {
3 php artisan --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
4 }
5
6 _laravel5 () {
7 if [ -f artisan ]; then
8 compadd `_laravel5_get_command_list`
9 fi
10 }
11
12 compdef _laravel5 artisan
13 compdef _laravel5 la5
14
15 #Alias
16 alias la5='php artisan'
17
18 alias la5dump='php artisan dump-autoload'
19 alias la5cache='php artisan cache:clear'
20 alias la5routes='php artisan routes'
1 # Laravel5 basic command completion 21
repos/robbyrussell/oh-my-zsh/plugins/taskwarrior/_task
1 #compdef task 1 #compdef task
2 # zsh completion for taskwarrior 2 # zsh completion for taskwarrior
3 # 3 #
4 # taskwarrior - a command line task list manager. 4 # taskwarrior - a command line task list manager.
5 # 5 #
6 # Copyright 2010 - 2011 Johannes Schlatow 6 # Copyright 2010 - 2011 Johannes Schlatow
7 # Copyright 2009 P.C. Shyamshankar 7 # Copyright 2009 P.C. Shyamshankar
8 # 8 #
9 # Permission is hereby granted, free of charge, to any person obtaining a copy 9 # Permission is hereby granted, free of charge, to any person obtaining a copy
10 # of this software and associated documentation files (the "Software"), to deal 10 # of this software and associated documentation files (the "Software"), to deal
11 # in the Software without restriction, including without limitation the rights 11 # in the Software without restriction, including without limitation the rights
12 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 # copies of the Software, and to permit persons to whom the Software is 13 # copies of the Software, and to permit persons to whom the Software is
14 # furnished to do so, subject to the following conditions: 14 # furnished to do so, subject to the following conditions:
15 # 15 #
16 # The above copyright notice and this permission notice shall be included 16 # The above copyright notice and this permission notice shall be included
17 # in all copies or substantial portions of the Software. 17 # in all copies or substantial portions of the Software.
18 # 18 #
19 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 19 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 21 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 # SOFTWARE. 25 # SOFTWARE.
26 # 26 #
27 # http://www.opensource.org/licenses/mit-license.php 27 # http://www.opensource.org/licenses/mit-license.php
28 # 28 #
29 typeset -g _task_cmds _task_projects _task_tags _task_config _task_modifiers 29 typeset -g _task_cmds _task_projects _task_tags _task_config _task_modifiers
30 _task_projects=($(task _projects)) 30 _task_projects=($(task _projects))
31 _task_tags=($(task _tags)) 31 _task_tags=($(task _tags))
32 _task_ids=($(task _ids)) 32 _task_ids=($(task _ids))
33 _task_config=($(task _config)) 33 _task_config=($(task _config))
34 _task_columns=($(task _columns)) 34 _task_columns=($(task _columns))
35 _task_modifiers=( 35 _task_modifiers=(
36 'before' \ 36 'before' \
37 'after' \ 37 'after' \
38 'none' \ 38 'none' \
39 'any' \ 39 'any' \
40 'is' \ 40 'is' \
41 'isnt' \ 41 'isnt' \
42 'has' \ 42 'has' \
43 'hasnt' \ 43 'hasnt' \
44 'startswith' \ 44 'startswith' \
45 'endswith' \ 45 'endswith' \
46 'word' \ 46 'word' \
47 'noword' 47 'noword'
48 ) 48 )
49 _task_conjunctions=( 49 _task_conjunctions=(
50 'and' \ 50 'and' \
51 'or' \ 51 'or' \
52 'xor' \ 52 'xor' \
53 '\)' 53 '\)'
54 '\(' 54 '\('
55 ) 55 )
56 _task_cmds=($(task _commands)) 56 _task_cmds=($(task _commands))
57 _task_zshcmds=( ${(f)"$(task _zshcommands)"} ) 57 _task_zshcmds=( ${(f)"$(task _zshcommands)"} )
58 58
59 _task() { 59 _task() {
60 _arguments -s -S \ 60 _arguments -s -S \
61 "*::task default:_task_default" 61 "*::task default:_task_default"
62 return 0 62 return 0
63 } 63 }
64 64
65 local -a reply args word 65 local -a reply args word
66 word=$'[^\0]#\0' 66 word=$'[^\0]#\0'
67 67
68 # priorities 68 # priorities
69 local -a task_priorities 69 local -a task_priorities
70 _regex_words values 'task priorities' \ 70 _regex_words values 'task priorities' \
71 'H:High' \ 71 'H:High' \
72 'M:Middle' \ 72 'M:Middle' \
73 'L:Low' 73 'L:Low'
74 task_priorities=("$reply[@]") 74 task_priorities=("$reply[@]")
75 75
76 # projects 76 # projects
77 local -a task_projects 77 local -a task_projects
78 task_projects=( 78 task_projects=(
79 /"$word"/ 79 /"$word"/
80 ":values:task projects:compadd -a _task_projects" 80 ":values:task projects:compadd -a _task_projects"
81 ) 81 )
82 82
83 local -a _task_dates 83 local -a _task_dates
84 _regex_words values 'task dates' \ 84 _regex_words values 'task dates' \
85 'tod*ay:Today' \ 85 'tod*ay:Today' \
86 'yes*terday:Yesterday' \ 86 'yes*terday:Yesterday' \
87 'tom*orrow:Tomorrow' \ 87 'tom*orrow:Tomorrow' \
88 'sow:Start of week' \ 88 'sow:Start of week' \
89 'soww:Start of work week' \ 89 'soww:Start of work week' \
90 'socw:Start of calendar week' \ 90 'socw:Start of calendar week' \
91 'som:Start of month' \ 91 'som:Start of month' \
92 'soy:Start of year' \ 92 'soy:Start of year' \
93 'eow:End of week' \ 93 'eow:End of week' \
94 'eoww:End of work week' \ 94 'eoww:End of work week' \
95 'eocw:End of calendar week' \ 95 'eocw:End of calendar week' \
96 'eom:End of month' \ 96 'eom:End of month' \
97 'eoy:End of year' \ 97 'eoy:End of year' \
98 'mon:Monday' \ 98 'mon:Monday' \
99 'tue:Tuesday'\ 99 'tue:Tuesday'\
100 'wed:Wednesday' \ 100 'wed:Wednesday' \
101 'thu:Thursday' \ 101 'thu:Thursday' \
102 'fri:Friday' \ 102 'fri:Friday' \
103 'sat:Saturday' \ 103 'sat:Saturday' \
104 'sun:Sunday' 104 'sun:Sunday'
105 _task_dates=("$reply[@]") 105 _task_dates=("$reply[@]")
106 106
107 local -a _task_reldates 107 local -a _task_reldates
108 _regex_words values 'task reldates' \ 108 _regex_words values 'task reldates' \
109 'hrs:n hours' \ 109 'hrs:n hours' \
110 'day:n days' \ 110 'day:n days' \
111 '1st:first' \ 111 '1st:first' \
112 '2nd:second' \ 112 '2nd:second' \
113 '3rd:third' \ 113 '3rd:third' \
114 'th:4th, 5th, etc.' \ 114 'th:4th, 5th, etc.' \
115 'wks:weeks' 115 'wks:weeks'
116 _task_reldates=("$reply[@]") 116 _task_reldates=("$reply[@]")
117 117
118 task_dates=( 118 task_dates=(
119 \( "$_task_dates[@]" \| 119 \( "$_task_dates[@]" \|
120 \( /$'[0-9][0-9]#'/- \( "$_task_reldates[@]" \) \) 120 \( /$'[0-9][0-9]#'/- \( "$_task_reldates[@]" \) \)
121 \) 121 \)
122 ) 122 )
123 123
124 _regex_words values 'task frequencies' \ 124 _regex_words values 'task frequencies' \
125 'daily:Every day' \ 125 'daily:Every day' \
126 'day:Every day' \ 126 'day:Every day' \
127 'weekdays:Every day skipping weekend days' \ 127 'weekdays:Every day skipping weekend days' \
128 'weekly:Every week' \ 128 'weekly:Every week' \
129 'biweekly:Every two weeks' \ 129 'biweekly:Every two weeks' \
130 'fortnight:Every two weeks' \ 130 'fortnight:Every two weeks' \
131 + 'monthly:Every month' \ 131 + 'monthly:Every month' \
132 'quarterly:Every three months' \ 132 'quarterly:Every three months' \
133 'semiannual:Every six months' \ 133 'semiannual:Every six months' \
134 'annual:Every year' \ 134 'annual:Every year' \
135 'yearly:Every year' \ 135 'yearly:Every year' \
136 'biannual:Every two years' \ 136 'biannual:Every two years' \
137 'biyearly:Every two years' 137 'biyearly:Every two years'
138 _task_freqs=("$reply[@]") 138 _task_freqs=("$reply[@]")
139 139
140 local -a _task_frequencies 140 local -a _task_frequencies
141 _regex_words values 'task frequencies' \ 141 _regex_words values 'task frequencies' \
142 'd:days' \ 142 'd:days' \
143 'w:weeks' \ 143 'w:weeks' \
144 'q:quarters' \ 144 'q:quarters' \
145 'y:years' 145 'y:years'
146 _task_frequencies=("$reply[@]") 146 _task_frequencies=("$reply[@]")
147 147
148 task_freqs=( 148 task_freqs=(
149 \( "$_task_freqs[@]" \| 149 \( "$_task_freqs[@]" \|
150 \( /$'[0-9][0-9]#'/- \( "$_task_frequencies[@]" \) \) 150 \( /$'[0-9][0-9]#'/- \( "$_task_frequencies[@]" \) \)
151 \) 151 \)
152 ) 152 )
153 153
154 # attributes 154 # attributes
155 local -a task_attributes 155 local -a task_attributes
156 _regex_words -t ':' default 'task attributes' \ 156 _regex_words -t ':' default 'task attributes' \
157 'pro*ject:Project name:$task_projects' \ 157 'pro*ject:Project name:$task_projects' \
158 'du*e:Due date:$task_dates' \ 158 'du*e:Due date:$task_dates' \
159 'wa*it:Date until task becomes pending:$task_dates' \ 159 'wa*it:Date until task becomes pending:$task_dates' \
160 're*cur:Recurrence frequency:$task_freqs' \ 160 're*cur:Recurrence frequency:$task_freqs' \
161 'pri*ority:priority:$task_priorities' \ 161 'pri*ority:priority:$task_priorities' \
162 'un*til:Recurrence end date:$task_dates' \ 162 'un*til:Recurrence end date:$task_dates' \
163 'fg:Foreground color' \ 163 'fg:Foreground color' \
164 'bg:Background color' \ 164 'bg:Background color' \
165 'li*mit:Desired number of rows in report' 165 'li*mit:Desired number of rows in report'
166 task_attributes=("$reply[@]") 166 task_attributes=("$reply[@]")
167 167
168 args=( 168 args=(
169 \( "$task_attributes[@]" \| 169 \( "$task_attributes[@]" \|
170 \( /'(project|due|wait|recur|priority|until|fg|bg|limit).'/- \( /$'[^:]#:'/ ":default:modifiers:compadd -S ':' -a _task_modifiers" \) \) \| 170 \( /'(project|due|wait|recur|priority|until|fg|bg|limit).'/- \( /$'[^:]#:'/ ":default:modifiers:compadd -S ':' -a _task_modifiers" \) \) \|
171 \( /'(rc).'/- \( /$'[^:]#:'/ ":arguments:config:compadd -S ':' -a _task_config" \) \) \| 171 \( /'(rc).'/- \( /$'[^:]#:'/ ":arguments:config:compadd -S ':' -a _task_config" \) \) \|
172 \( /'(+|-)'/- \( /"$word"/ ":values:remove tag:compadd -a _task_tags" \) \) \| 172 \( /'(+|-)'/- \( /"$word"/ ":values:remove tag:compadd -a _task_tags" \) \) \|
173 \( /"$word"/ \) 173 \( /"$word"/ \)
174 \) \# 174 \) \#
175 ) 175 )
176 _regex_arguments _task_attributes "${args[@]}" 176 _regex_arguments _task_attributes "${args[@]}"
177 177
178 ## task commands 178 ## task commands
179 179
180 # filter completion 180 # filter completion
181 (( $+functions[_task_filter] )) || 181 (( $+functions[_task_filter] )) ||
182 _task_filter() { 182 _task_filter() {
183 _task_attributes "$@" 183 _task_attributes "$@"
184 184
185 # TODO complete conjunctions only if the previous word is a filter expression, i.e. attribute, ID, any non-command 185 # TODO complete conjunctions only if the previous word is a filter expression, i.e. attribute, ID, any non-command
186 _describe -t default 'task conjunctions' _task_conjunctions 186 _describe -t default 'task conjunctions' _task_conjunctions
187 } 187 }
188 188
189 # merge completion 189 # merge completion
190 (( $+functions[_task_merge] )) || 190 (( $+functions[_task_merge] )) ||
191 _task_merge() { 191 _task_merge() {
192 # TODO match URIs in .taskrc 192 # TODO match URIs in .taskrc
193 _files 193 _files
194 } 194 }
195 195
196 # push completion 196 # push completion
197 (( $+functions[_task_push] )) || 197 (( $+functions[_task_push] )) ||
198 _task_push() { 198 _task_push() {
199 # TODO match URIs in .taskrc 199 # TODO match URIs in .taskrc
200 _files 200 _files
201 } 201 }
202 202
203 # pull completion 203 # pull completion
204 (( $+functions[_task_pull] )) || 204 (( $+functions[_task_pull] )) ||
205 _task_pull() { 205 _task_pull() {
206 # TODO match URIs in .taskrc 206 # TODO match URIs in .taskrc
207 _files 207 _files
208 } 208 }
209 209
210 # execute completion 210 # execute completion
211 (( $+functions[_task_execute] )) || 211 (( $+functions[_task_execute] )) ||
212 _task_execute() { 212 _task_execute() {
213 _files 213 _files
214 } 214 }
215 215
216 # id-only completion 216 # id-only completion
217 (( $+functions[_task_id] )) || 217 (( $+functions[_task_id] )) ||
218 _task_id() { 218 _task_id() {
219 _describe -t values 'task IDs' _task_zshids 219 _describe -t values 'task IDs' _task_zshids
220 } 220 }
221 221
222 ## first level completion => task sub-command completion 222 ## first level completion => task sub-command completion
223 (( $+functions[_task_default] )) || 223 (( $+functions[_task_default] )) ||
224 _task_default() { 224 _task_default() {
225 local cmd ret=1 225 local cmd ret=1
226 226
227 integer i=1 227 integer i=1
228 while (( i < $#words )) 228 while (( i < $#words ))
229 do 229 do
230 cmd="${_task_cmds[(r)$words[$i]]}" 230 cmd="${_task_cmds[(r)$words[$i]]}"
231 if (( $#cmd )); then 231 if (( $#cmd )); then
232 _call_function ret _task_${cmd} || 232 _call_function ret _task_${cmd} ||
233 _call_function ret _task_filter || 233 _call_function ret _task_filter ||
234 _message "No command remaining." 234 _message "No command remaining."
235 return ret 235 return ret
236 fi 236 fi
237 (( i++ )) 237 (( i++ ))
238 done 238 done
239 239
240 # update IDs 240 # update IDs
241 _task_zshids=( ${(f)"$(task _zshids)"} ) 241 _task_zshids=( ${(f)"$(task _zshids)"} )
242 242
243 _describe -t commands 'task command' _task_zshcmds 243 _describe -t commands 'task command' _task_zshcmds
244 _describe -t values 'task IDs' _task_zshids 244 _describe -t values 'task IDs' _task_zshids
245 _call_function ret _task_filter 245 _call_function ret _task_filter
246 246
247 return ret 247 return ret
248 } 248 }
249
250 _task
249 251
repos/robbyrussell/oh-my-zsh/plugins/vi-mode/vi-mode.plugin.zsh
1 # Ensures that $terminfo values are valid and updates editor information when 1 # Ensures that $terminfo values are valid and updates editor information when
2 # the keymap changes. 2 # the keymap changes.
3 function zle-keymap-select zle-line-init zle-line-finish { 3 function zle-keymap-select zle-line-init zle-line-finish {
4 # The terminal must be in application mode when ZLE is active for $terminfo 4 # The terminal must be in application mode when ZLE is active for $terminfo
5 # values to be valid. 5 # values to be valid.
6 if (( ${+terminfo[smkx]} )); then 6 if (( ${+terminfo[smkx]} )); then
7 printf '%s' ${terminfo[smkx]} 7 printf '%s' ${terminfo[smkx]}
8 fi 8 fi
9 if (( ${+terminfo[rmkx]} )); then 9 if (( ${+terminfo[rmkx]} )); then
10 printf '%s' ${terminfo[rmkx]} 10 printf '%s' ${terminfo[rmkx]}
11 fi 11 fi
12 12
13 zle reset-prompt 13 zle reset-prompt
14 zle -R 14 zle -R
15 } 15 }
16 16
17 # Ensure that the prompt is redrawn when the terminal size changes. 17 # Ensure that the prompt is redrawn when the terminal size changes.
18 TRAPWINCH() { 18 TRAPWINCH() {
19 zle && { zle reset-prompt; zle -R } 19 zle && { zle reset-prompt; zle -R }
20 } 20 }
21 21
22 zle -N zle-line-init 22 zle -N zle-line-init
23 zle -N zle-line-finish 23 zle -N zle-line-finish
24 zle -N zle-keymap-select 24 zle -N zle-keymap-select
25 zle -N edit-command-line 25 zle -N edit-command-line
26 26
27 27
28 bindkey -v 28 bindkey -v
29 29
30 # allow v to edit the command line (standard behaviour) 30 # allow v to edit the command line (standard behaviour)
31 autoload -Uz edit-command-line 31 autoload -Uz edit-command-line
32 bindkey -M vicmd 'v' edit-command-line 32 bindkey -M vicmd 'v' edit-command-line
33 33
34 # allow ctrl-p, ctrl-n for navigate history (standard behaviour) 34 # allow ctrl-p, ctrl-n for navigate history (standard behaviour)
35 bindkey '^P' up-history 35 bindkey '^P' up-history
36 bindkey '^N' down-history 36 bindkey '^N' down-history
37
38 # allow ctrl-h, ctrl-w, ctrl-? for char and word deletion (standard behaviour)
39 bindkey '^?' backward-delete-char
40 bindkey '^h' backward-delete-char
41 bindkey '^w' backward-kill-word
42
43 # if mode indicator wasn't setup by theme, define default
44 if [[ "$MODE_INDICATOR" == "" ]]; then
45 MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"
37 46 fi
38 # allow ctrl-h, ctrl-w, ctrl-? for char and word deletion (standard behaviour) 47
39 bindkey '^?' backward-delete-char 48 function vi_mode_prompt_info() {
40 bindkey '^h' backward-delete-char 49 echo "${${KEYMAP/vicmd/$MODE_INDICATOR}/(main|viins)/}"
41 bindkey '^w' backward-kill-word 50 }
42 51
43 # if mode indicator wasn't setup by theme, define default 52 # define right prompt, if it wasn't defined by a theme
44 if [[ "$MODE_INDICATOR" == "" ]]; then 53 if [[ "$RPS1" == "" && "$RPROMPT" == "" ]]; then
45 MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}" 54 RPS1='$(vi_mode_prompt_info)'
46 fi 55 fi
47 56
1 # ** Initiate with: ** 1 # ** Initiate with: **
2 # cd && wget http://git.str8.biz/mj/zsh-config/raw/master/tools/install.sh -O -- | sh 2 # cd && wget http://git.str8.biz/mj/zsh-config/raw/master/tools/install.sh -O -| sh
3 # ----------------------------------------------------------------------------------- 3 # -----------------------------------------------------------------------------------
4 4
5 set -e 5 set -e
6 6
7 if [ ! -n "$ZCNF" ]; then 7 if [ ! -n "$ZCNF" ]; then
8 ZCNF=~/.config/zsh-config 8 ZCNF=~/.config/zsh-config
9 fi 9 fi
10 10
11 if [ ! -n "$ZSH" ]; then 11 if [ ! -n "$ZSH" ]; then
12 ZSH=$ZCNF/tools/oh-my-zsh 12 ZSH=$ZCNF/tools/oh-my-zsh
13 fi 13 fi
14 14
15 echo "\033[0;34mCleaning...\033[0m"
16 if [ -d ~/.config ]; then
17 if [ -d ~/.config/zsh-config ]; then
18 rm -rf ~/.config/zsh-config
19 fi
20 if [ -d ~/.config/oh-my-zsh ]; then
21 rm -rf ~/.config/oh-my-zsh
22 fi
23 if [ -d ~/.config/antigen ]; then
24 rm -rf ~/.config/antigen
25 fi
26 fi
27 if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
28 rm ~/.zshrc
29 fi
30 if [ -f ~/.bash_aliases ] || [ -h ~/.bash_aliases ]; then
31 rm ~/.bash_aliases
32 fi
33
15 echo "\033[0;34mCloning Zsh Config...\033[0m" 34 echo "\033[0;34mCloning Zsh Config...\033[0m"
16 hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || { 35 hash git >/dev/null 2>&1 && env git clone --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || {
17 echo "can't clone repo.. trying to pull" 36 echo "can't clone repo.."
18 hash git >/dev/null 2>&1 && env git pull --depth=1 http://git.str8.biz/mj/zsh-config.git $ZCNF || {
19 echo "can't pull, either.. giving up.."
20 }
21 } 37 }
22 38
23 echo "\033[0;34mLooking for an existing zsh config...\033[0m" 39 echo "\033[0;34mLooking for an existing zsh config...\033[0m"
24 if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then 40 if [ -f ~/.zshrc ] || [ -h ~/.zshrc ]; then
25 echo "\033[0;33mFound ~/.zshrc.\033[0m \033[0;32mBacking up to ~/.zshrc.pre-zsh-cnf\033[0m"; 41 echo "\033[0;33mFound ~/.zshrc.\033[0m \033[0;32mBacking up to ~/.zshrc.pre-zsh-cnf\033[0m";
26 mv ~/.zshrc ~/.zshrc.pre-zsh-cnf; 42 mv ~/.zshrc ~/.zshrc.pre-zsh-cnf;
27 fi 43 fi
28 44
29 echo "\033[0;34mUsing the Zsh Config template file and adding it to ~/.zshrc\033[0m" 45 echo "\033[0;34mUsing the Zsh Config template file and adding it to ~/.zshrc\033[0m"
30 ln -s $ZCNF/templates/zshrc ~/.zshrc 46 ln -s $ZCNF/templates/zshrc ~/.zshrc
31 ln -s $ZCNF/templates/bash_aliases ~/.bash_aliases 47 ln -s $ZCNF/templates/bash_aliases ~/.bash_aliases
32 sed -i -e "/^export ZSH=/ c\\ 48 sed -i -e "/^export ZSH=/ c\\
33 export ZSH=$ZSH 49 export ZSH=$ZSH
34 " ~/.zshrc 50 " ~/.zshrc
35 51
36 echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m" 52 echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"
37 sed -i -e "/export PATH=/ c\\ 53 sed -i -e "/export PATH=/ c\\
38 export PATH=\"$PATH\" 54 export PATH=\"$PATH\"
39 " ~/.zshrc 55 " ~/.zshrc
40 56
41 if [ "$SHELL" != "$(which zsh)" ]; then 57 if [ "$SHELL" != "$(which zsh)" ]; then
42 echo "\033[0;34mTime to change your default shell to zsh!\033[0m" 58 echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
43 chsh -s `which zsh` 59 chsh -s `which zsh`
44 fi 60 fi
45 61
46 echo "\033[0;32m"' __ __ '"\033[0m" 62 echo "\033[0;32m"' __ __ '"\033[0m"
47 echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m" 63 echo "\033[0;32m"' ____ / /_ ____ ___ __ __ ____ _____/ /_ '"\033[0m"
48 echo "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m" 64 echo "\033[0;32m"' / __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \ '"\033[0m"
49 echo "\033[0;32m"'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '"\033[0m" 65 echo "\033[0;32m"'/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / / '"\033[0m"
50 echo "\033[0;32m"'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '"\033[0m" 66 echo "\033[0;32m"'\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/ '"\033[0m"
51 echo "\033[0;32m"' /____/ ....is now installed!'"\033[0m" 67 echo "\033[0;32m"' /____/ ....is now installed!'"\033[0m"
52 echo "\n\n \033[0;32mPlease look over the ~/.zshrc file to select plugins, themes, and options.\033[0m" 68 echo "\n\n \033[0;32mPlease look over the ~/.zshrc file to select plugins, themes, and options.\033[0m"
53 echo "\n\n \033[0;32mp.s. Follow us at http://twitter.com/ohmyzsh.\033[0m" 69 echo "\n\n \033[0;32mp.s. Follow us at http://twitter.com/ohmyzsh.\033[0m"
54 echo "\n\n \033[0;32mp.p.s. Get stickers and t-shirts at http://shop.planetargon.com.\033[0m" 70 echo "\n\n \033[0;32mp.p.s. Get stickers and t-shirts at http://shop.planetargon.com.\033[0m"