# 使用中のシェルを確認
$ echo $SHELL
/bin/dash
# 使用可能なシェルを確認
$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/dash
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh
# Zshにシェルを変更
$ chsh -s /bin/zsh
# 再起動
# 使用中のシェルを確認
% echo $SHELL
/bin/zsh
% brew install brew-cask
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
remote: Enumerating objects: 48, done.
remote: Counting objects: 100% (48/48), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 548634 (delta 24), reused 27 (delta 14), pack-reused 548586
Receiving objects: 100% (548634/548634), 241.57 MiB | 304.00 KiB/s, done.
Resolving deltas: 100% (387451/387451), done.
Tapped 3808 casks (3,929 files, 259.2MB).
==> Searching for similarly named formulae...
This similarly named formula was found:
brew-cask-completion
To install it, run:
brew install brew-cask-completion
Error: No available formula or cask with the name "brew-cask".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.
==> Downloading https://homebrew.bintray.com/bottles/gmp-6.2.1.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6a44705536f25c4b9f8547d44d129ae3b3657755039966ad2b86b821e187c32c?response-content-disposition=attachment%3Bfilename%3D%22gmp-6.2.1.big_sur.bott
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/bdw-gc-8.0.4_2.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/af8bfafe1425f3cc9923bd49a375f85c13255124ed7a952137fe924431adc1c4?response-content-disposition=attachment%3Bfilename%3D%22bdw-gc-8.0.4_2.big_sur
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.3_2.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_2.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/b5dba5a59ae66f42b012998e08edbeaed9e2456c0d1670307b8f46be5ef3b9fa?response-content-disposition=attachment%3Bfilename%3D%22libtool-2.4.6_2.big_su
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.10.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5d336bd939f678b48dc1ced97ed0def383999638d80caa8cb2da780594556524?response-content-disposition=attachment%3Bfilename%3D%22libunistring-0.9.10.bi
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0040b6ebe07f60549800b211343fd5fb3cf83c866d9f62e40f5fb2f38b71e161?response-content-disposition=attachment%3Bfilename%3D%22pkg-config-0.29.2_3.bi
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/readline-8.1.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/2cc3a9582e3c7e21eb3c2c8964abd33e9720fb4a9588c626d8424ff8cc9b1aed?response-content-disposition=attachment%3Bfilename%3D%22readline-8.1.big_sur.b
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/guile-3.0.5.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/ce8a02da2f7a50ee2df21ace1dac3b8335855907ec31224cea3ea5f89d82c463?response-content-disposition=attachment%3Bfilename%3D%22guile-3.0.5.big_sur.bo
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.21.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/a025e143fe3f5f7e24a936b8b0a4926acfdd025b11d62024e3d355c106536d56?response-content-disposition=attachment%3Bfilename%3D%22gettext-0.21.big_sur.b
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.3.0.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/65523d89d65893a402f9f2641793314d5c18f5ba115400ef6ad372b8c177ebd9?response-content-disposition=attachment%3Bfilename%3D%22libidn2-2.3.0.big_sur.
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.16.0.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/nettle-3.7.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/e02e4ae1f73b54c0976a2e7afdbe2f461a202362c51c68e341f289477a9dfb6b?response-content-disposition=attachment%3Bfilename%3D%22nettle-3.7.big_sur.bot
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/p11-kit-0.23.22.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/9474fe6483bbc394d9069f79528ecfe9ba1af00db4aca23c26857b6b66736d73?response-content-disposition=attachment%3Bfilename%3D%22p11-kit-0.23.22.big_su
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1i.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/8008537d37a7f09eedbcd03c575e15206c54f97fe162c6d36da904897e9cee31?response-content-disposition=attachment%3Bfilename%3D%22openssl%401.1-1.1.1i.b
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libevent-2.1.12.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/45758b448d82b82b6bea52bc9a72593ef22f04ebdaa4b4230cadf12768252e22?response-content-disposition=attachment%3Bfilename%3D%22libevent-2.1.12.big_su
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/c-ares-1.17.1.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/jemalloc-5.2.1_1.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/7797788be2da677a8343ac6199e2f180c2e6b627c0b9abc9da133fbc34e86678?response-content-disposition=attachment%3Bfilename%3D%22jemalloc-5.2.1_1.big_s
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/libev-4.33.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/nghttp2-1.43.0.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/e6112c4ce4b08b60edbb3d7fca3e22498bbe1881bd6ca95df52b9f2726b0c62a?response-content-disposition=attachment%3Bfilename%3D%22nghttp2-1.43.0.big_sur
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/unbound-1.13.0.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/cef5d9843ecaabaa0a4cb9b89e04bc3d370ce143e4ff2e0f6711aa6572b1ad3a?response-content-disposition=attachment%3Bfilename%3D%22unbound-1.13.0.big_sur
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.6.15.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6f523e8ce74c567d17a4a5b69794e897074a016b895a5d8ef7122ac006b770fc?response-content-disposition=attachment%3Bfilename%3D%22gnutls-3.6.15.big_sur.
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/jansson-2.13.1.big_sur.bottle.tar.gz
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/emacs-27.1.big_sur.bottle.1.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/c4d216163623ccb65f21964df378f1c96871657cbc8ffa702dd3812e7d0e76d8?response-content-disposition=attachment%3Bfilename%3D%22emacs-27.1.big_sur.bot
######################################################################## 100.0%
==> Downloading https://github.com/cask/cask/archive/v0.8.5.tar.gz
==> Downloading from https://codeload.github.com/cask/cask/tar.gz/v0.8.5
######################################################################## 100.0%
==> Installing dependencies for cask: gmp, bdw-gc, libffi, libtool, libunistring, pkg-config, readline, guile, gettext, libidn2, libtasn1, nettle, p11-kit, openssl@1.1, libevent, c-ares, jemalloc, libev, nghttp2, unbound, gnutls, jansson and emacs
==> Installing cask dependency: gmp
==> Pouring gmp-6.2.1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/gmp/6.2.1: 21 files, 3.3MB
==> Installing cask dependency: bdw-gc
==> Pouring bdw-gc-8.0.4_2.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/bdw-gc/8.0.4_2: 69 files, 1.6MB
==> Installing cask dependency: libffi
==> Pouring libffi-3.3_2.big_sur.bottle.tar.gz
==> Caveats
libffi is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
For compilers to find libffi you may need to set:
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export CPPFLAGS="-I/usr/local/opt/libffi/include"
==> Summary
🍺 /usr/local/Cellar/libffi/3.3_2: 17 files, 540.5KB
==> Installing cask dependency: libtool
==> Pouring libtool-2.4.6_2.big_sur.bottle.tar.gz
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
🍺 /usr/local/Cellar/libtool/2.4.6_2: 71 files, 3.7MB
==> Installing cask dependency: libunistring
==> Pouring libunistring-0.9.10.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libunistring/0.9.10: 55 files, 4.5MB
==> Installing cask dependency: pkg-config
==> Pouring pkg-config-0.29.2_3.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 656.6KB
==> Installing cask dependency: readline
==> Pouring readline-8.1.big_sur.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.
For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"
For pkg-config to find readline you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
==> Summary
🍺 /usr/local/Cellar/readline/8.1: 48 files, 1.6MB
==> Installing cask dependency: guile
==> Pouring guile-3.0.5.big_sur.bottle.tar.gz
==> Caveats
Guile libraries can now be installed here:
Source files: /usr/local/share/guile/site/3.0
Compiled files: /usr/local/lib/guile/3.0/site-ccache
Extensions: /usr/local/lib/guile/3.0/extensions
Add the following to your .bashrc or equivalent:
export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
==> Summary
🍺 /usr/local/Cellar/guile/3.0.5: 834 files, 56.8MB
==> Installing cask dependency: gettext
==> Pouring gettext-0.21.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/gettext/0.21: 1,953 files, 19.8MB
==> Installing cask dependency: libidn2
==> Pouring libidn2-2.3.0.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libidn2/2.3.0: 72 files, 808.2KB
==> Installing cask dependency: libtasn1
==> Pouring libtasn1-4.16.0.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libtasn1/4.16.0: 60 files, 535.7KB
==> Installing cask dependency: nettle
==> Pouring nettle-3.7.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/nettle/3.7: 89 files, 2.7MB
==> Installing cask dependency: p11-kit
==> Pouring p11-kit-0.23.22.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/p11-kit/0.23.22: 63 files, 3MB
==> Installing cask dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1i.big_sur.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
If you need to have openssl@1.1 first in your PATH, run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
==> Summary
🍺 /usr/local/Cellar/openssl@1.1/1.1.1i: 8,067 files, 18.5MB
==> Installing cask dependency: libevent
==> Pouring libevent-2.1.12.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libevent/2.1.12: 57 files, 2MB
==> Installing cask dependency: c-ares
==> Pouring c-ares-1.17.1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/c-ares/1.17.1: 85 files, 672.3KB
==> Installing cask dependency: jemalloc
==> Pouring jemalloc-5.2.1_1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/jemalloc/5.2.1_1: 16 files, 2MB
==> Installing cask dependency: libev
==> Pouring libev-4.33.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/libev/4.33: 12 files, 483.8KB
==> Installing cask dependency: nghttp2
==> Pouring nghttp2-1.43.0.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/nghttp2/1.43.0: 24 files, 2.8MB
==> Installing cask dependency: unbound
==> Pouring unbound-1.13.0.big_sur.bottle.tar.gz
==> Caveats
To have launchd start unbound now and restart at startup:
sudo brew services start unbound
==> Summary
🍺 /usr/local/Cellar/unbound/1.13.0: 57 files, 5.5MB
==> Installing cask dependency: gnutls
==> Pouring gnutls-3.6.15.big_sur.bottle.tar.gz
==> Caveats
If you are going to use the Guile bindings you will need to add the following
to your .bashrc or equivalent in order for Guile to find the TLS certificates
database:
export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
==> Summary
🍺 /usr/local/Cellar/gnutls/3.6.15: 1,250 files, 11MB
==> Installing cask dependency: jansson
==> Pouring jansson-2.13.1.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/jansson/2.13.1: 11 files, 205.2KB
==> Installing cask dependency: emacs
==> Pouring emacs-27.1.big_sur.bottle.1.tar.gz
==> Caveats
To have launchd start emacs now and restart at login:
brew services start emacs
Or, if you don't want/need a background service you can just run:
emacs
==> Summary
🍺 /usr/local/Cellar/emacs/27.1: 4,009 files, 104.1MB
==> Installing cask
==> Caveats
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cask
==> Summary
🍺 /usr/local/Cellar/cask/0.8.5: 16 files, 221.8KB, built in 5 seconds
==> Caveats
==> libffi
libffi is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.
For compilers to find libffi you may need to set:
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export CPPFLAGS="-I/usr/local/opt/libffi/include"
For pkg-config to find libffi you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
==> libtool
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides BSD libedit.
For compilers to find readline you may need to set:
export LDFLAGS="-L/usr/local/opt/readline/lib"
export CPPFLAGS="-I/usr/local/opt/readline/include"
For pkg-config to find readline you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
==> guile
Guile libraries can now be installed here:
Source files: /usr/local/share/guile/site/3.0
Compiled files: /usr/local/lib/guile/3.0/site-ccache
Extensions: /usr/local/lib/guile/3.0/extensions
Add the following to your .bashrc or equivalent:
export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
==> openssl@1.1
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
If you need to have openssl@1.1 first in your PATH, run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
For pkg-config to find openssl@1.1 you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
==> unbound
To have launchd start unbound now and restart at startup:
sudo brew services start unbound
==> gnutls
If you are going to use the Guile bindings you will need to add the following
to your .bashrc or equivalent in order for Guile to find the TLS certificates
database:
export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
==> emacs
To have launchd start emacs now and restart at login:
brew services start emacs
Or, if you don't want/need a background service you can just run:
emacs
==> cask
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/cask
% brew install git
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/pcre2-10.36.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/b2edbffaf229fc490843e83b43c4e12feab906fc34270d928c59cac74c6f4536?response-content-disposition=attachment%3Bfilename%3D%22pcre2-10.36.big_sur.bott
######################################################################## 100.0%
==> Downloading https://homebrew.bintray.com/bottles/git-2.30.0.big_sur.bottle.tar.gz
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/bd4dd57a4740df3c596377954d45fcf2b08db83f7d8853f5361db1d158a6bdb8?response-content-disposition=attachment%3Bfilename%3D%22git-2.30.0.big_sur.bottl
######################################################################## 100.0%
==> Installing dependencies for git: pcre2
==> Installing git dependency: pcre2
==> Pouring pcre2-10.36.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/pcre2/10.36: 230 files, 6.2MB
==> Installing git
==> Pouring git-2.30.0.big_sur.bottle.tar.gz
==> Caveats
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
zsh completions and functions have been installed to:
/usr/local/share/zsh/site-functions
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git
==> Summary
🍺 /usr/local/Cellar/git/2.30.0: 1,486 files, 40.5MB
==> Caveats
==> git
The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the `git-gui` formula.
zsh completions and functions have been installed to:
/usr/local/share/zsh/site-functions
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git
% brew install zsh-syntax-highlighting
==> Downloading https://homebrew.bintray.com/bottles/zsh-syntax-highlighting-0.7.1.big_sur.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring zsh-syntax-highlighting-0.7.1.big_sur.bottle.1.tar.gz
==> Caveats
To activate the syntax highlighting, add the following at the end of your .zshrc:
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
If you receive "highlighters directory not found" error message,
you may need to add the following to your .zshenv:
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters
==> Summary
🍺 /usr/local/Cellar/zsh-syntax-highlighting/0.7.1: 27 files, 164.6KB
% echo 'source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
% brew install zsh-autosuggestions
==> Downloading https://github.com/zsh-users/zsh-autosuggestions/archive/v0.6.4.tar.gz
==> Downloading from https://codeload.github.com/zsh-users/zsh-autosuggestions/tar.gz/v0.6.4
######################################################################## 100.0%
==> Caveats
To activate the autosuggestions, add the following at the end of your .zshrc:
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
You will also need to force reload of your .zshrc:
source ~/.zshrc
==> Summary
🍺 /usr/local/Cellar/zsh-autosuggestions/0.6.4: 6 files, 43.7KB, built in 3 seconds
% echo 'source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
brew install zsh-completions
Updating Homebrew...
==> Downloading https://github.com/zsh-users/zsh-completions/archive/0.32.0.tar.gz
==> Downloading from https://codeload.github.com/zsh-users/zsh-completions/tar.gz/0.32.0
-=#=- # # #
==> Caveats
To activate these completions, add the following to your .zshrc:
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
You may also need to force rebuild `zcompdump`:
rm -f ~/.zcompdump; compinit
Additionally, if you receive "zsh compinit: insecure directories" warnings when attempting
to load these completions, you may need to run this:
chmod -R go-w '/usr/local/share/zsh'
==> Summary
🍺 /usr/local/Cellar/zsh-completions/0.32.0: 142 files, 1.1MB, built in 3 seconds
% cat << EOT >> ~/.zshrc
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
EOT
% chmod 0755 /usr/local/share/zsh/site-functions
% chmod 0755 /usr/local/share
% chmod 0755 /usr/local/share/zsh