<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://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>https://jackxiang.com/post//</link>
<title><![CDATA[[实践OK]手把手教你打造高效的 Kubernetes 命令行终端]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[虚拟云与Docker]]></category>
<pubDate>Mon, 17 Aug 2020 09:56:30 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<textarea name="code" class="php" rows="15" cols="100">
echo &quot;source &lt;(kubectl completion bash)&quot; &gt;&gt; ~/.bashrc
source ~/.bashrc


如果发现不能自动补全，可以尝试安装 bash-completion 然后刷新即可！
#kubectl&nbsp;&nbsp;--contex-bash: _get_comp_words_by_ref: command not found
 ^M
-bash: $&#039;&#92;r&#039;: command not found

重新成功安装步骤如下：
yum install -y bash-completion&nbsp;&nbsp; #安装后还是不能补全

source /usr/share/bash-completion/bash_completion
source &lt;(kubectl completion bash)&nbsp;&nbsp;&nbsp;&nbsp;#运行这一句就能提示了，下面这一行是登录后自动运行这一行，写到~/.bashrc里。
echo &quot;source &lt;(kubectl completion bash)&quot; &gt;&gt; ~/.bashrc

能补全了！
</textarea><br/><br/><br/><br/><br/>在mac上<br/><br/>$ brew install bash-completion<br/>$ source $(brew --prefix)/etc/bash_completion<br/>$ source &lt;(kubectl completion bash)<br/><br/><br/>来自：https://juejin.im/entry/6844903678898356237<br/>Mac： https://i4t.com/3245.html
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]手把手教你打造高效的 Kubernetes 命令行终端]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>