mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
add paths to Rust's man pages
This commit is contained in:
parent
d9c4e0083a
commit
bcc88aac6e
1 changed files with 8 additions and 1 deletions
|
@ -26,6 +26,13 @@ if is_macos; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
arr_push FPATH "$DOTFILES_PATH/completions"
|
arr_push FPATH "$DOTFILES_PATH/completions"
|
||||||
command_exists rustc && arr_push FPATH "$(rustc --print sysroot)/share/zsh/site-functions"
|
|
||||||
|
# Rust
|
||||||
|
if command_exists rustc; then
|
||||||
|
rust_sysroot="$(rustc --print sysroot)"
|
||||||
|
arr_push FPATH "${rust_sysroot}/share/zsh/site-functions"
|
||||||
|
arr_push MANPATH "${rust_sysroot}/share/man"
|
||||||
|
unset rust_sysroot
|
||||||
|
fi
|
||||||
|
|
||||||
unset arr_push
|
unset arr_push
|
||||||
|
|
Loading…
Reference in a new issue