LoginSignup
17
14

More than 5 years have passed since last update.

OS X El Capitan‎にtreeコマンドをインストール

Last updated at Posted at 2015-10-20

OS X El Capitan‎ にtreeコマンドをインストールする。

環境

  • OS X El Capitan

まずは、Homebrewのインストール

ターミナルでこちらのコマンドを実行

ターミナル
$ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

バージョンの確認

ターミナル
$brew --version 
0.9.5 (git revision f3fc; last commit 2015-10-20)

Homebrewのインストールは、OSをクリーンインストールした環境だったので、うまくいったようです。
アップデートした環境では、問題が発生するみたいなので注意。
【Mac】OS X 10.11 El CapitanにHomebrewをインストールする方法

次に、Homebrewでtreeコマンドをインストールする。

ターミナル
$brew install tree
==> Downloading https://homebrew.bintray.com/bottles/tree-1.7.0.el_capitan.bottl
######################################################################## 100.0%
==> Pouring tree-1.7.0.el_capitan.bottle.1.tar.gz
🍺  /usr/local/Cellar/tree/1.7.0: 7 files, 128K

バージョンの確認

ターミナル
$tree --version
tree v1.7.0 (c) 1996 - 2014 by Steve Baker, Thomas Moore, Francesc Rocher, Florian Sesser, Kyosuke Tokoro 

これでtreeコマンドが使えるよになります。

17
14
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
17
14