add paths to Rust's man pages

This commit is contained in:
Dmytro Meleshko 2018-10-11 23:38:05 +03:00
parent d9c4e0083a
commit bcc88aac6e

View file

@ -26,6 +26,13 @@ if is_macos; then
fi
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