mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
add paths to Homebrew-installed ruby on Mac
This commit is contained in:
parent
90b09e1737
commit
c4b4c33e58
1 changed files with 3 additions and 1 deletions
|
@ -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[@]}")
|
||||
|
|
Loading…
Reference in a new issue