LoginSignup
0
1

More than 5 years have passed since last update.

Macでbash-completionを有効化する方法

Last updated at Posted at 2019-04-30

もしあなたが普段多くのサーバーにログインしている場合、sshログインする際のホスト名の自動補完ツールとしてbash-completionが有用である。

例えばMac環境では以下のコマンドでbash-completionをインストール・有効化できる。

mac@xxxxxx:~$ brew install bash-completion
mac@xxxxxx:~$ vi ~/.bash_profile
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1