<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]macbook更新zsh出现compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask的解决办法。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Thu, 30 Sep 2021 16:13:11 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	执行命令：sudo su -<br/>source ~/.zshrc<br/>compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask<br/><br/>出现：compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask<br/>解决办法：<br/>vim /usr/local/share/zsh/site-functions/_brew_cask<br/><br/><textarea name="code" class="php" rows="15" cols="100">
#compdef brew-cask
#autoload

# Zsh Autocompletion script for Homebrew Cask
#&nbsp;&nbsp; https://github.com/homebrew/brew

# Authors:
#&nbsp;&nbsp; Patrick Stadler (https://github.com/pstadler)
#&nbsp;&nbsp; Josh McKinney (https://github.com/joshka)

# only display the main commands (but enable completing aliases like &#039;ls&#039;)
zstyle -T &#039;:completion:*:*:*:brew-cask:*&#039; tag-order &amp;&amp; &#92;
&nbsp;&nbsp;zstyle &#039;:completion:*:*:*:brew-cask:*&#039; tag-order &#039;commands&#039;

__brew_all_casks() &#123;
&nbsp;&nbsp;local -a list
&nbsp;&nbsp;local expl
&nbsp;&nbsp;local comp_cachename=brew_casks

&nbsp;&nbsp;if ! _retrieve_cache $comp_cachename; then
&nbsp;&nbsp;&nbsp;&nbsp;list=( $(brew search --cask) )
&nbsp;&nbsp;&nbsp;&nbsp;_store_cache $comp_cachename list
&nbsp;&nbsp;fi

&nbsp;&nbsp;_wanted list expl &#039;all casks&#039; compadd -a list
&#125;

__brew_installed_casks() &#123;
&nbsp;&nbsp;local -a list
&nbsp;&nbsp;local expl
&nbsp;&nbsp;list=( $(brew list --cask) )
&nbsp;&nbsp;_wanted list expl &#039;installed casks&#039; compadd -a list
&#125;

__brew_cask_commands() &#123;
&nbsp;&nbsp;local -a commands
&nbsp;&nbsp;commands=(
&nbsp;&nbsp;&nbsp;&nbsp;&#039;audit:verifies installability of Casks&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;cat:dump raw source of the given Cask to the standard output&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;create:creates the given Cask and opens it in an editor&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;doctor:checks for configuration issues&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;edit:edits the given Cask&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;fetch:downloads remote application files to local cache&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;home:opens the homepage of the given Cask&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;info:displays information about the given Cask&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;install:installs the given Cask&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;list:with no args, lists installed Casks; given installed Casks, lists staged files&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;outdated:list the outdated installed Casks&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;reinstall:reinstalls the given Cask&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;style:checks Cask style using RuboCop&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;uninstall:uninstalls the given Cask&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;upgrade:upgrade installed Casks with newer versions&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;zap:zaps all files associated with the given Cask&#039;
&nbsp;&nbsp;)
&nbsp;&nbsp;_describe -t commands &quot;brew cask command&quot; commands
&#125;

__brew_cask_aliases() &#123;
&nbsp;&nbsp;local -a aliases
&nbsp;&nbsp;aliases=(
&nbsp;&nbsp;&nbsp;&nbsp;&#039;dr&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;homepage&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;abv&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;ls&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;-S&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;rm&#039;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;remove&#039;
&nbsp;&nbsp;)
&nbsp;&nbsp;_describe -t commands &quot;brew cask command aliases&quot; aliases
&#125;

__brew_cask_command() &#123;
&nbsp;&nbsp;local command=&quot;$1&quot;
&nbsp;&nbsp;local completion_func=&quot;_brew_cask_$&#123;command//-/_&#125;&quot;
&nbsp;&nbsp;declare -f &quot;$completion_func&quot; &gt;/dev/null &amp;&amp; &quot;$completion_func&quot; &amp;&amp; return
&#125;

_brew_cask_abv() &#123;
&nbsp;&nbsp;_brew_cask_info
&#125;

_brew_cask_audit() &#123;
&nbsp;&nbsp;__brew_all_casks
&#125;

_brew_cask_cat() &#123;
&nbsp;&nbsp;__brew_all_casks
&#125;

_brew_cask_create() &#123;
&nbsp;&nbsp;_arguments &#039;*::token:&#039;
&#125;

_brew_cask_edit() &#123;
&nbsp;&nbsp;__brew_all_casks
&#125;

_brew_cask_fetch() &#123;
&nbsp;&nbsp;_arguments : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--force:force re-download even if the files are already cached&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::token:__brew_all_casks&#039;
&#125;

_brew_cask_home() &#123;
&nbsp;&nbsp;__brew_all_casks
&#125;

_brew_cask_homepage() &#123;
&nbsp;&nbsp;__brew_cask_home
&#125;

_brew_cask_info() &#123;
&nbsp;&nbsp;__brew_all_casks
&#125;

_brew_cask_install() &#123;
&nbsp;&nbsp;_arguments : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--force:re-install even if the Cask appears to be already present&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--skip-cask-deps:skip any Cask dependencies&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--require-sha:abort installation if the Cask does not have a checksum defined&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::token:__brew_all_casks&#039;
&#125;

_brew_cask_list() &#123;
&nbsp;&nbsp;_arguments : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;-1[format output in a single column]&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;-l[format as detailed list]&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::token:__brew_installed_casks&#039;
&#125;

_brew_cask_outdated() &#123;
&nbsp;&nbsp;_arguments : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--greedy:also list Casks with auto_updates or version &#92;:latest&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::token:__brew_installed_casks&#039;
&#125;

_brew_cask_remove() &#123;
&nbsp;&nbsp;_brew_cask_uninstall
&#125;

_brew_cask_rm() &#123;
&nbsp;&nbsp;_brew_cask_uninstall
&#125;

_brew_cask_style() &#123;
&nbsp;&nbsp;_arguments : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--fix:auto-correct any style errors if possible&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::token:__brew_all_casks&#039;
&#125;

_brew_cask_uninstall() &#123;
&nbsp;&nbsp;_arguments : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--force:uninstall even if the Cask does not appear to be present&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::token:__brew_installed_casks&#039;
&#125;

_brew_cask_upgrade() &#123;
&nbsp;&nbsp;_arguments : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--force:upgrade even if Cask is not present, and --force the install&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--greedy:also upgrade Casks with auto_updates or version &#92;:latest&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::token:__brew_installed_casks&#039;
&#125;

_brew_cask_zap() &#123;
&nbsp;&nbsp;__brew_all_casks
&#125;

_brew_cask()
&#123;
&nbsp;&nbsp;local curcontext=&quot;$curcontext&quot; state state_descr line
&nbsp;&nbsp;typeset -A opt_args

&nbsp;&nbsp;_arguments -C : &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--verbose:Give additional feedback during installation.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--appdir=-:Target location for Applications. The default value is /Applications:&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--colorpickerdir=-:Target location for Color Pickers. The default value is ~/Library/ColorPickers.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--prefpanedir=-:Target location for Preference Panes. The default value is ~/Library/PreferencePanes.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--qlplugindir=-:Target location for QuickLook Plugins. The default value is ~/Library/QuickLook.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--dictionarydir=-:Target location for Dictionaries. The default value is ~/Library/Dictionaries.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--fontdir=-:Target location for Fonts. The default value is ~/Library/Fonts.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--servicedir=-:Target location for Services. The default value is ~/Library/Services.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--input_methoddir=-:Target location for Input Methods. The default value is ~/Library/Input Methods.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--internet_plugindir=-:Target location for Internet Plugins. The default value is ~/Library/Internet Plug-Ins.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--audio_unit_plugindir=-:Target location for Audio Unit Plugins. The default value is ~/Library/Audio/Plug-Ins/Components.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--vst_plugindir=-:Target location for VST Plugins. The default value is ~/Library/Audio/Plug-Ins/VST.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--vst3_plugindir=-:Target location for VST3 Plugins. The default value is ~/Library/Audio/Plug-Ins/VST3.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--screen_saverdir=-:Target location for Screen Savers. The default value is ~/Library/Screen Savers.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--no-binaries:Do not link &quot;helper&quot; executables to /usr/local/bin.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;--debug:Output debugging information of use to Cask authors and developers.&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;:command:-&gt;command&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&#039;*::options:-&gt;options&#039;

&nbsp;&nbsp;case &quot;$state&quot; in
&nbsp;&nbsp;(command)
&nbsp;&nbsp;&nbsp;&nbsp;_alternative -C &#039;brew-cask&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#039;aliases:alias:__brew_cask_aliases&#039; &#92;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#039;commands:command:__brew_cask_commands&#039; ;;
&nbsp;&nbsp;(options)
&nbsp;&nbsp;&nbsp;&nbsp;__brew_cask_command &quot;$line[1]&quot; ;;
&nbsp;&nbsp;esac
&#125;

_brew_cask &quot;$@&quot;


</textarea><br/><br/>来自：https://blog.csdn.net/shentian885/article/details/115902464
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]macbook更新zsh出现compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask的解决办法。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>