diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2024-12-27 20:30:23 +0100 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2024-12-27 20:30:23 +0100 |
| commit | 58d6aefd2b81023f020c0a9997b9dd448508d59a (patch) | |
| tree | 7cb146a113f56dc348fac5baab07aa5e4d3e794a /zsh/.zshenv | |
| parent | e5acad1421f72dacad6bd386c36242d905f113a8 (diff) | |
| download | dotfiles-58d6aefd2b81023f020c0a9997b9dd448508d59a.tar.gz dotfiles-58d6aefd2b81023f020c0a9997b9dd448508d59a.zip | |
zsh fixups
Diffstat (limited to 'zsh/.zshenv')
| -rwxr-xr-x[l---------] | zsh/.zshenv | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv index 9fbf4d2..ac043fe 120000..100755 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1 +1,24 @@ -.config/zsh/.zshenv
\ No newline at end of file +##!/bin/zsh +# +# .zshenv - Zsh environment file, loaded always. +# + +# Set ZDOTDIR if you want to re-home Zsh. +export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config} +export XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share} +export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache} +export ZDOTDIR=${ZDOTDIR:-$XDG_CONFIG_HOME/zsh} + +# Ensure path arrays do not contain duplicates. +typeset -gU path fpath + +# Set the list of directories that zsh searches for commands. +path=( + $HOME/{,s}bin(N) + $HOME/.local/{,s}bin(N) + /opt/{homebrew,local}/{,s}bin(N) + /usr/local/{,s}bin(N) + $path +) + +. "$HOME/.cargo/env" |
