aboutsummaryrefslogtreecommitdiff
path: root/zsh/zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zprofile')
-rw-r--r--zsh/zprofile130
1 files changed, 65 insertions, 65 deletions
diff --git a/zsh/zprofile b/zsh/zprofile
index 3288e8d..7fed3a7 100644
--- a/zsh/zprofile
+++ b/zsh/zprofile
@@ -1,65 +1,65 @@
1# vim: filetype=zsh 1# vim: filetype=zsh
2 2
3if [[ ! -d "${HISTFILE:h}" ]]; then 3if [[ ! -d "${HISTFILE:h}" ]]; then
4 mkdir -p "${HISTFILE:h}" 4 mkdir -p "${HISTFILE:h}"
5fi 5fi
6 6
7add_path() { 7add_path() {
8 if [[ -d "$1" ]]; then 8 if [[ -d "$1" ]]; then
9 path=("$1" $path) 9 path=("$1" $path)
10 fi 10 fi
11} 11}
12 12
13set_include_lib_path() { 13set_include_lib_path() {
14 # Fix für include/lib Verzeichnisse 14 # Fix für include/lib Verzeichnisse
15 # Details: https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html 15 # Details: https://gcc.gnu.org/onlinedocs/cpp/Environment-Variables.html
16 export C_INCLUDE_PATH="$1/include:$C_INCLUDE_PATH" 16 export C_INCLUDE_PATH="$1/include:$C_INCLUDE_PATH"
17 export CPLUS_INCLUDE_PATH="$1/include:$CPLUS_INCLUDE_PATH" 17 export CPLUS_INCLUDE_PATH="$1/include:$CPLUS_INCLUDE_PATH"
18 export LIBRARY_PATH="$1/lib:$LIBRARY_PATH" 18 export LIBRARY_PATH="$1/lib:$LIBRARY_PATH"
19} 19}
20 20
21add_path "$HOME/.cargo/bin" 21add_path "$HOME/.cargo/bin"
22add_path "$HOME/.local/bin" 22add_path "$HOME/.local/bin"
23 23
24case "$OSTYPE" in 24case "$OSTYPE" in
25 darwin*) 25 darwin*)
26 add_path "/opt/homebrew/bin" 26 add_path "/opt/homebrew/bin"
27 27
28 set_include_lib_path "/opt/homebrew" 28 set_include_lib_path "/opt/homebrew"
29 ;; 29 ;;
30 freebsd*) 30 freebsd*)
31 texlive_prefix="$HOME/.local/texlive" 31 texlive_prefix="$HOME/.local/texlive"
32 32
33 if [[ -d "$texlive_prefix/bin/amd64-freebsd" ]]; then 33 if [[ -d "$texlive_prefix/bin/amd64-freebsd" ]]; then
34 add_path "$texlive_prefix/bin/amd64-freebsd" 34 add_path "$texlive_prefix/bin/amd64-freebsd"
35 35
36 export MANPATH="${MANPATH:-$(manpath)}:$texlive_prefix/texmf-dist/man" 36 export MANPATH="${MANPATH:-$(manpath)}:$texlive_prefix/texmf-dist/man"
37 export INFOPATH="${INFOPATH:+$INFOPATH:}$texlive_prefix/texmf-dist/info" 37 export INFOPATH="${INFOPATH:+$INFOPATH:}$texlive_prefix/texmf-dist/info"
38 fi 38 fi
39 39
40 set_include_lib_path "/usr/local" 40 set_include_lib_path "/usr/local"
41 ;; 41 ;;
42esac 42esac
43 43
44# Fix Midnight Commander ESC Taste 44# Fix Midnight Commander ESC Taste
45# zusätzlich noch unter "F9 -> Optionen -> Konfiguration -> Escape Tastenmodus -> [x] Einzelner Tastendruck" aktivieren 45# zusätzlich noch unter "F9 -> Optionen -> Konfiguration -> Escape Tastenmodus -> [x] Einzelner Tastendruck" aktivieren
46export KEYBOARD_KEY_TIMEOUT_US=1000 46export KEYBOARD_KEY_TIMEOUT_US=1000
47 47
48# Tmuxp 48# Tmuxp
49# https://tmuxp.git-pull.com/configuration/environmental-variables.html 49# https://tmuxp.git-pull.com/configuration/environmental-variables.html
50export TMUXP_CONFIGDIR="$XDG_CONFIG_HOME/tmuxp" 50export TMUXP_CONFIGDIR="$XDG_CONFIG_HOME/tmuxp"
51 51
52# Vit (Taskwarrior UI) 52# Vit (Taskwarrior UI)
53# https://github.com/vit-project/vit/blob/2.x/CUSTOMIZE.md 53# https://github.com/vit-project/vit/blob/2.x/CUSTOMIZE.md
54export VIT_DIR="$XDG_CONFIG_HOME/vit" 54export VIT_DIR="$XDG_CONFIG_HOME/vit"
55 55
56# Maildir für mu (mail-utils) 56# Maildir für mu (mail-utils)
57export MAILDIR="$HOME/Mail" 57export MAILDIR="$HOME/Mail"
58 58
59# mpd starten 59# mpd starten
60if [[ -x /usr/local/bin/musicpd ]] && ! pgrep "musicpd" > /dev/null; then 60if [[ -x /usr/local/bin/musicpd ]] && ! pgrep "musicpd" > /dev/null; then
61 /usr/local/bin/musicpd 61 /usr/local/bin/musicpd
62fi 62fi
63 63
64unfunction add_path 64unfunction add_path
65unfunction set_include_lib_path 65unfunction set_include_lib_path