Mac 套件工具

記錄日常小工具

顯示資料夾結構

install

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$ brew install tree
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
gatsby-cli netlify-cli
==> Updated Formulae
agda enchant imageoptim-cli lmod protobuf-c tox webtorrent-cli
ammonite-repl ettercap ios-webkit-debug-proxy mill re2 unzip xonsh
bgpstream ffsend janet nco sceptre userspace-rcu youtube-dl
calicoctl git-cinnabar jenkins odpi shc uwsgi zshdb
cfengine glooctl juju paket sqlmap vulkan-headers
collectd guile libtrace picard-tools terragrunt wandio
convox helmsman libuninameslist pmd topgrade webpack

==> Downloading https://homebrew.bintray.com/bottles/tree-1.8.0.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring tree-1.8.0.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/tree/1.8.0: 8 files, 117KB

Syntax

1
2
3
4
tree
tree /path/to/directory
tree [options]
tree [options] /path/to/directory

Sample outputs:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ tree
.
└── ansible
├── README.md
├── defaults
│   └── main.yml
├── files
├── handlers
│   └── main.yml
├── meta
│   └── main.yml
├── tasks
│   └── main.yml
├── templates
├── tests
│   ├── inventory
│   └── test.yml
└── vars
└── main.yml

9 directories, 8 files

git

1
brew install git

創用 CC 授權條款
SAM的程式筆記 朱尚禮製作,以創用CC 姓名標示-非商業性-相同方式分享 4.0 國際 授權條款釋出。