-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshenv
46 lines (36 loc) · 1.23 KB
/
zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# -*- mode: sh; sh-shell: zsh; -*-
# export ZPROF=1
# メモ: zsh -ixv -c exit 2>&1 | ts -s '%.s' > tmp/zsh.log
[ -n "${ZPROF}" ] && zmodload zsh/zprof && zprof
source_iff() {
local file_path=$1
if [[ -f $file_path ]]; then
source $file_path
fi
}
typeset -U path PATH
if [[ `uname` = "Darwin" ]]; then
setopt no_global_rcs # Homebrew の PATH を優先したい
export PATH="/opt/homebrew/bin:$PATH" # Homebrew 自体へ PATH を通す
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if which brew 2>&1 >/dev/null; then eval "$(brew shellenv)"; fi
fi
export PATH="$HOME/bin:$PATH"
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$PATH"
source_iff /usr/local/opt/asdf/libexec/asdf.sh
source_iff /opt/homebrew/opt/asdf/libexec/asdf.sh
source_iff /home/linuxbrew/.linuxbrew/opt/asdf/asdf.sh
source_iff $HOME/.asdf/asdf.sh
MISE_EXEC=$HOME/.local/bin/mise
if [[ -f $MISE_EXEC ]]; then
eval "$($MISE_EXEC activate zsh)"
fi
source_iff $HOME/.nix-profile/etc/profile.d/nix.sh
source_iff $HOME/.cargo/env
export DENO_INSTALL="${HOME}/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
if which direnv 2>&1 >/dev/null; then eval "$(direnv hook zsh)"; fi
source_iff $HOME/.zshenv.local