blob: 563696fd1e2488a38bdcc7e9335ab24cbe5eda78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
##!/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
)
eval "$(/opt/homebrew/bin/brew shellenv)"
. "$HOME/.cargo/env"
|