aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-01-07 10:20:42 +0100
committerThomas Schmucker <ts@its1.de>2026-01-07 10:20:42 +0100
commitd8a1624e51d9af6b8185da90a2d7a79960f56f59 (patch)
tree93ac23cb772b94aa3d3ed4bc18c656fdde5b5a50 /zsh
parented4d5cafd654d9f92c46776c98252e3c6653be13 (diff)
downloaddotfiles-d8a1624e51d9af6b8185da90a2d7a79960f56f59.tar.gz
dotfiles-d8a1624e51d9af6b8185da90a2d7a79960f56f59.tar.bz2
dotfiles-d8a1624e51d9af6b8185da90a2d7a79960f56f59.zip
zsh: fix path handling
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zprofile21
1 files changed, 15 insertions, 6 deletions
diff --git a/zsh/zprofile b/zsh/zprofile
index 3be3315..a2e582b 100644
--- a/zsh/zprofile
+++ b/zsh/zprofile
@@ -2,12 +2,21 @@
2 2
3[[ -d "${HISTFILE:h}" ]] || mkdir -p "${HISTFILE:h}" 3[[ -d "${HISTFILE:h}" ]] || mkdir -p "${HISTFILE:h}"
4 4
5path=( 5add_path() {
6 $HOME/.cargo/bin 6 [[ -d "$1" ]] && path=("$1" $path)
7 $HOME/.local/bin 7}
8 $HOME/.local/texlive/bin/amd64-freebsd 8
9 $path 9add_path "$HOME/.cargo/bin"
10) 10add_path "$HOME/.local/bin"
11
12case "$OSTYPE" in
13 darwin*)
14 add_path "/opt/homebrew/bin"
15 ;;
16 freebsd*)
17 add_path "$HOME/.local/texlive/bin/amd64-freebsd"
18 ;;
19esac
11 20
12export MANPATH="${MANPATH:-$(manpath)}:$NPM_PACKAGES/share/man:$HOME/.local/texlive/texmf-dist/man" 21export MANPATH="${MANPATH:-$(manpath)}:$NPM_PACKAGES/share/man:$HOME/.local/texlive/texmf-dist/man"
13export INFOPATH="$INFOPATH:$HOME/.local/texlive/texmf-dist/info" 22export INFOPATH="$INFOPATH:$HOME/.local/texlive/texmf-dist/info"