<p>I'm tired of writing all <code>kubectl</code> and <code>kubeadm</code> commands by hand. Is there any way of enabling autocomplete on these commands?</p>

Lukasz Dynowski
<h3>Bash Solution</h3>
<pre><code># Execute these commands
$ echo &quot;source &lt;(kubectl completion bash)&quot; &gt;&gt; ~/.bashrc
$ echo &quot;source &lt;(kubeadm completion bash)&quot; &gt;&gt; ~/.bashrc

# Reload bash without logging out
$ source ~/.bashrc 
</code></pre>
