forked from ohmyzsh/ohmyzsh
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'robby/master'
* robby/master: (72 commits) Basic support for Docker related commands. Add Composer's global binaries to PATH Add /usr/bin/subl path for who has linked sublime text there Plugin jump: autocompletion for numbers and dots added useful mvn aliases Add spring to bundled commands git_prompt_info: ignore git-config errors Add missing `command` wrapper for git Add missing quotes to within-bundler-project function Add pip2 and pip-2.7 support to pip plugin Add pip3 completion support to pip plugin ignore usernames beginning with underscore return 0 when not a git repo before, 128 was returned, which could display an error, but out of a git repo this should exit silently fixes ohmyzsh#2226 fix root mode not working in bureau Autojump plugin: check user local installation first. Vundle plugin now works with submodules. fixed rvm warning New alias for repo: ru and rst Add startproject to django command completions Adding compression to rsync commands ...
- Loading branch information
Showing
53 changed files
with
451 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
alias man='nocorrect man' | ||
alias mv='nocorrect mv' | ||
alias mysql='nocorrect mysql' | ||
alias mkdir='nocorrect mkdir' | ||
alias gist='nocorrect gist' | ||
alias heroku='nocorrect heroku' | ||
alias ebuild='nocorrect ebuild' | ||
alias hpodder='nocorrect hpodder' | ||
alias sudo='nocorrect sudo' | ||
|
||
if [[ "$ENABLE_CORRECTION" == "true" ]]; then | ||
alias ebuild='nocorrect ebuild' | ||
alias gist='nocorrect gist' | ||
alias heroku='nocorrect heroku' | ||
alias hpodder='nocorrect hpodder' | ||
alias man='nocorrect man' | ||
alias mkdir='nocorrect mkdir' | ||
alias mv='nocorrect mv' | ||
alias mysql='nocorrect mysql' | ||
alias sudo='nocorrect sudo' | ||
|
||
setopt correct_all | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Autocompletion for homebrew-cask. | ||
# | ||
# This script intercepts calls to the brew plugin and adds autocompletion | ||
# for the cask subcommand. | ||
# | ||
# Author: https://github.com/pstadler | ||
|
||
compdef _brew-cask brew | ||
|
||
_brew-cask() | ||
{ | ||
local curcontext="$curcontext" state line | ||
typeset -A opt_args | ||
|
||
_arguments -C \ | ||
':command:->command' \ | ||
':subcmd:->subcmd' \ | ||
'*::options:->options' | ||
|
||
case $state in | ||
(command) | ||
__call_original_brew | ||
cask_commands=( | ||
'cask:manage casks' | ||
) | ||
_describe -t commands 'brew cask command' cask_commands ;; | ||
|
||
(subcmd) | ||
case "$line[1]" in | ||
cask) | ||
if (( CURRENT == 3 )); then | ||
local -a subcommands | ||
subcommands=( | ||
"alfred:used to modify Alfred's scope to include the Caskroom" | ||
'audit:verifies installability of casks' | ||
'checklinks:checks for bad cask links' | ||
'cleanup:cleans up cached downloads' | ||
'create:creates a cask of the given name and opens it in an editor' | ||
'doctor:checks for configuration issues' | ||
'edit:edits the cask of the given name' | ||
'fetch:downloads Cask resources to local cache' | ||
'home:opens the homepage of the cask of the given name' | ||
'info:displays information about the cask of the given name' | ||
'install:installs the cask of the given name' | ||
'list:with no args, lists installed casks; given installed casks, lists installed files' | ||
'search:searches all known casks' | ||
'uninstall:uninstalls the cask of the given name' | ||
"update:a synonym for 'brew update'" | ||
) | ||
_describe -t commands "brew cask subcommand" subcommands | ||
fi ;; | ||
|
||
*) | ||
__call_original_brew ;; | ||
esac ;; | ||
|
||
(options) | ||
local -a casks installed_casks | ||
local expl | ||
case "$line[2]" in | ||
list|uninstall) | ||
__brew_installed_casks | ||
_wanted installed_casks expl 'installed casks' compadd -a installed_casks ;; | ||
audit|edit|home|info|install) | ||
__brew_all_casks | ||
_wanted casks expl 'all casks' compadd -a casks ;; | ||
esac ;; | ||
esac | ||
} | ||
|
||
__brew_all_casks() { | ||
casks=(`brew cask search`) | ||
} | ||
|
||
__brew_installed_casks() { | ||
installed_casks=(`brew cask list`) | ||
} | ||
|
||
__call_original_brew() | ||
{ | ||
local ret=1 | ||
_call_function ret _brew | ||
compdef _brew-cask brew | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.