diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-07-29 11:16:03 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-07-29 11:16:03 +0200 |
| commit | d171434fb198038873091fd2d38c4064edea56cc (patch) | |
| tree | 0f6e42179f03c2e812c35122b201cf73d2225dab /zsh/zprofile | |
| parent | f5c192c4faf8616af4ad46b9bdbb935589303894 (diff) | |
| download | dotfiles-d171434fb198038873091fd2d38c4064edea56cc.tar.gz dotfiles-d171434fb198038873091fd2d38c4064edea56cc.tar.bz2 dotfiles-d171434fb198038873091fd2d38c4064edea56cc.zip | |
setze abhängig vom OS die include/lib Verzeichnisse
Diffstat (limited to 'zsh/zprofile')
| -rw-r--r-- | zsh/zprofile | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/zsh/zprofile b/zsh/zprofile index 6fca54f..b3872d7 100644 --- a/zsh/zprofile +++ b/zsh/zprofile | |||
| @@ -6,6 +6,14 @@ add_path() { | |||
| 6 | [[ -d "$1" ]] && path=("$1" $path) | 6 | [[ -d "$1" ]] && path=("$1" $path) |
| 7 | } | 7 | } |
| 8 | 8 | ||
| 9 | set_include_lib_path() { | ||
| 10 | # Fix für include/lib Verzeichnisse | ||
| 11 | # Details: https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html | ||
| 12 | export C_INCLUDE_PATH="$1/include:$C_INCLUDE_PATH" | ||
| 13 | export CPLUS_INCLUDE_PATH="$1/include:$CPLUS_INCLUDE_PATH" | ||
| 14 | export LIBRARY_PATH="$1/lib:$LIBRARY_PATH" | ||
| 15 | } | ||
| 16 | |||
| 9 | add_path "$HOME/.cargo/bin" | 17 | add_path "$HOME/.cargo/bin" |
| 10 | add_path "$HOME/.local/bin" | 18 | add_path "$HOME/.local/bin" |
| 11 | 19 | ||
| @@ -13,6 +21,8 @@ case "$OSTYPE" in | |||
| 13 | darwin*) | 21 | darwin*) |
| 14 | add_path "/opt/homebrew/bin" | 22 | add_path "/opt/homebrew/bin" |
| 15 | add_path "$HOME/.local/venv/nvim" | 23 | add_path "$HOME/.local/venv/nvim" |
| 24 | |||
| 25 | set_include_lib_path "/opt/homebrew" | ||
| 16 | ;; | 26 | ;; |
| 17 | freebsd*) | 27 | freebsd*) |
| 18 | texlive_prefix="$HOME/.local/texlive" | 28 | texlive_prefix="$HOME/.local/texlive" |
| @@ -23,15 +33,11 @@ case "$OSTYPE" in | |||
| 23 | export MANPATH="${MANPATH:-$(manpath)}:$texlive_prefix/texmf-dist/man" | 33 | export MANPATH="${MANPATH:-$(manpath)}:$texlive_prefix/texmf-dist/man" |
| 24 | export INFOPATH="${INFOPATH:+$INFOPATH:}$texlive_prefix/texmf-dist/info" | 34 | export INFOPATH="${INFOPATH:+$INFOPATH:}$texlive_prefix/texmf-dist/info" |
| 25 | fi | 35 | fi |
| 36 | |||
| 37 | set_include_lib_path "/usr/local" | ||
| 26 | ;; | 38 | ;; |
| 27 | esac | 39 | esac |
| 28 | 40 | ||
| 29 | # Fix für include/lib Verzeichnisse | ||
| 30 | # Details: https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html | ||
| 31 | export C_INCLUDE_PATH="/usr/local/include:$C_INCLUDE_PATH" | ||
| 32 | export CPLUS_INCLUDE_PATH="/usr/local/include:$CPLUS_INCLUDE_PATH" | ||
| 33 | export LIBRARY_PATH="/usr/local/lib:$LIBRARY_PATH" | ||
| 34 | |||
| 35 | # Fix Midnight Commander ESC Taste | 41 | # Fix Midnight Commander ESC Taste |
| 36 | # zusätzlich noch unter "F9 -> Optionen -> Konfiguration -> Escape Tastenmodus -> [x] Einzelner Tastendruck" aktivieren | 42 | # zusätzlich noch unter "F9 -> Optionen -> Konfiguration -> Escape Tastenmodus -> [x] Einzelner Tastendruck" aktivieren |
| 37 | export KEYBOARD_KEY_TIMEOUT_US=1000 | 43 | export KEYBOARD_KEY_TIMEOUT_US=1000 |
