diff options
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" |
