From d171434fb198038873091fd2d38c4064edea56cc Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 29 Jul 2026 11:16:03 +0200 Subject: setze abhängig vom OS die include/lib Verzeichnisse MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zsh/zprofile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'zsh/zprofile') diff --git a/zsh/zprofile b/zsh/zprofile index 6fca54f..b3872d7 100644 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -6,6 +6,14 @@ add_path() { [[ -d "$1" ]] && path=("$1" $path) } +set_include_lib_path() { + # Fix für include/lib Verzeichnisse + # Details: https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html + export C_INCLUDE_PATH="$1/include:$C_INCLUDE_PATH" + export CPLUS_INCLUDE_PATH="$1/include:$CPLUS_INCLUDE_PATH" + export LIBRARY_PATH="$1/lib:$LIBRARY_PATH" +} + add_path "$HOME/.cargo/bin" add_path "$HOME/.local/bin" @@ -13,6 +21,8 @@ case "$OSTYPE" in darwin*) add_path "/opt/homebrew/bin" add_path "$HOME/.local/venv/nvim" + + set_include_lib_path "/opt/homebrew" ;; freebsd*) texlive_prefix="$HOME/.local/texlive" @@ -23,15 +33,11 @@ case "$OSTYPE" in export MANPATH="${MANPATH:-$(manpath)}:$texlive_prefix/texmf-dist/man" export INFOPATH="${INFOPATH:+$INFOPATH:}$texlive_prefix/texmf-dist/info" fi + + set_include_lib_path "/usr/local" ;; esac -# 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" -export CPLUS_INCLUDE_PATH="/usr/local/include:$CPLUS_INCLUDE_PATH" -export LIBRARY_PATH="/usr/local/lib:$LIBRARY_PATH" - # Fix Midnight Commander ESC Taste # zusätzlich noch unter "F9 -> Optionen -> Konfiguration -> Escape Tastenmodus -> [x] Einzelner Tastendruck" aktivieren export KEYBOARD_KEY_TIMEOUT_US=1000 -- cgit v1.3