9eadaf562ae403d9721ce5d9ea998769dd500cc9
- Author
- Patrick Stadler <patrick.stadler@gmail.com>
- Committer
- Patrick Stadler <patrick.stadler@gmail.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/plugins/brew-cask/brew-cask.plugin.zsh b/plugins/brew-cask/brew-cask.plugin.zsh
2index e0ee62293a6fbc5e49bd2974eaf34ee453d7ee5a..91ce0f49816ca34fe566895fc5a8c217f2009224 100644
3--- a/plugins/brew-cask/brew-cask.plugin.zsh
4+++ b/plugins/brew-cask/brew-cask.plugin.zsh
5@@ -9,76 +9,76 @@ compdef _brew-cask brew
6
7 _brew-cask()
8 {
9- local curcontext="$curcontext" state line
10- typeset -A opt_args
11+ local curcontext="$curcontext" state line
12+ typeset -A opt_args
13
14- _arguments -C \
15- ':command:->command' \
16- ':subcmd:->subcmd' \
17- '*::options:->options'
18+ _arguments -C \
19+ ':command:->command' \
20+ ':subcmd:->subcmd' \
21+ '*::options:->options'
22
23- case $state in
24- (command)
25- __call_original_brew
26- cask_commands=(
27- 'cask:manage casks'
28- )
29- _describe -t commands 'brew cask command' cask_commands ;;
30+ case $state in
31+ (command)
32+ __call_original_brew
33+ cask_commands=(
34+ 'cask:manage casks'
35+ )
36+ _describe -t commands 'brew cask command' cask_commands ;;
37
38- (subcmd)
39- case "$line[1]" in
40- cask)
41- if (( CURRENT == 3 )); then
42- local -a subcommands
43- subcommands=(
44- "alfred:used to modify Alfred's scope to include the Caskroom"
45- 'audit:verifies installability of casks'
46- 'checklinks:checks for bad cask links'
47- 'cleanup:cleans up cached downloads'
48- 'create:creates a cask of the given name and opens it in an editor'
49- 'doctor:checks for configuration issues'
50- 'edit:edits the cask of the given name'
51- 'fetch:downloads Cask resources to local cache'
52- 'home:opens the homepage of the cask of the given name'
53- 'info:displays information about the cask of the given name'
54- 'install:installs the cask of the given name'
55- 'list:with no args, lists installed casks; given installed casks, lists installed files'
56- 'search:searches all known casks'
57- 'uninstall:uninstalls the cask of the given name'
58- "update:a synonym for 'brew update'"
59- )
60- _describe -t commands "brew cask subcommand" subcommands
61- fi ;;
62+ (subcmd)
63+ case "$line[1]" in
64+ cask)
65+ if (( CURRENT == 3 )); then
66+ local -a subcommands
67+ subcommands=(
68+ "alfred:used to modify Alfred's scope to include the Caskroom"
69+ 'audit:verifies installability of casks'
70+ 'checklinks:checks for bad cask links'
71+ 'cleanup:cleans up cached downloads'
72+ 'create:creates a cask of the given name and opens it in an editor'
73+ 'doctor:checks for configuration issues'
74+ 'edit:edits the cask of the given name'
75+ 'fetch:downloads Cask resources to local cache'
76+ 'home:opens the homepage of the cask of the given name'
77+ 'info:displays information about the cask of the given name'
78+ 'install:installs the cask of the given name'
79+ 'list:with no args, lists installed casks; given installed casks, lists installed files'
80+ 'search:searches all known casks'
81+ 'uninstall:uninstalls the cask of the given name'
82+ "update:a synonym for 'brew update'"
83+ )
84+ _describe -t commands "brew cask subcommand" subcommands
85+ fi ;;
86
87- *)
88- __call_original_brew ;;
89- esac ;;
90+ *)
91+ __call_original_brew ;;
92+ esac ;;
93
94- (options)
95- local -a casks installed_casks
96- local expl
97- case "$line[2]" in
98- list|uninstall)
99- __brew_installed_casks
100- _wanted installed_casks expl 'installed casks' compadd -a installed_casks ;;
101- audit|edit|home|info|install)
102- __brew_all_casks
103- _wanted casks expl 'all casks' compadd -a casks ;;
104- esac ;;