From 5a0555bc9d7f52d240d7ab82c77b516245119bc0 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Tue, 23 Jun 2026 11:08:19 +0200 Subject: zsh: Verbessere die Zuweisungen an MANPATH/INFOPATH unter FreeBSD --- zsh/zprofile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'zsh/zprofile') diff --git a/zsh/zprofile b/zsh/zprofile index 266e105..6fca54f 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -15,13 +15,17 @@ case "$OSTYPE" in add_path "$HOME/.local/venv/nvim" ;; freebsd*) - add_path "$HOME/.local/texlive/bin/amd64-freebsd" + texlive_prefix="$HOME/.local/texlive" + + if [[ -d "$texlive_prefix/bin/amd64-freebsd" ]]; then + add_path "$texlive_prefix/bin/amd64-freebsd" + + export MANPATH="${MANPATH:-$(manpath)}:$texlive_prefix/texmf-dist/man" + export INFOPATH="${INFOPATH:+$INFOPATH:}$texlive_prefix/texmf-dist/info" + fi ;; esac -export MANPATH="${MANPATH:-$(manpath)}:$NPM_PACKAGES/share/man:$HOME/.local/texlive/texmf-dist/man" -export INFOPATH="$INFOPATH:$HOME/.local/texlive/texmf-dist/info" - # Fix für include/lib Verzeichnisse # Details: https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html export C_INCLUDE_PATH="/usr/local/include:$C_INCLUDE_PATH" -- cgit v1.3