add paths to Homebrew-installed ruby on Mac

This commit is contained in:
Dmytro Meleshko 2019-02-02 13:12:31 +02:00
parent 90b09e1737
commit c4b4c33e58
No known key found for this signature in database
GPG key ID: 842C32A03AC953B2

View file

@ -6,6 +6,7 @@ typeset -aU fpath manpath path
if is_macos; then
path=(
~/Library/Python/*/bin
/usr/local/opt/ruby/bin
/usr/local/opt/file-formula/bin # file
/usr/local/opt/gnu-tar/libexec/gnubin # GNU tar
/usr/local/opt/unzip/bin # GNU unzip
@ -18,6 +19,7 @@ if is_macos; then
)
manpath=(
/usr/local/opt/ruby/share/man
/usr/local/opt/file-formula/share/man # file
/usr/local/opt/gnu-tar/libexec/gnuman # GNU tar
/usr/local/opt/unzip/share/man # GNU unzip
@ -42,7 +44,7 @@ fpath=("$DOTFILES_PATH/completions" "${fpath[@]}")
# check for Rust installed via rustup
if rust_sysroot="$(~/.cargo/bin/rustc --print sysroot 2> /dev/null)"; then
# add paths to the current Rust toolchain
# add paths of the current Rust toolchain
path=(~/.cargo/bin "${path[@]}")
fpath=("$rust_sysroot/share/zsh/site-functions" "${fpath[@]}")
manpath=("$rust_sysroot/share/man" "${manpath[@]}")