bash auto completion 下增加 hostname...

bash 的 auto completion 預設只吃 .ssh/known_hosts 的內容,而我想讓他加上 yp 的 hosts,查了一下發現這篇 2008 年的文章:「Auto-complete hostnames with using bash」。

因為我的 yp 已經進了 Git,所以我就這樣設就好:

export HOSTFILE="$HOME/git/kkyp/hosts"

This entry was posted in Computer, Murmuring, Network, Software and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>