-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
81 lines (64 loc) · 2.05 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# HELPERS
command_exists () {
type "$1" &> /dev/null ;
}
# if command_exists "defaults" ; then
# # macos
# # export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
# export PATH="$HOME/.local/flutter/bin:$PATH"
# export GEM_HOME=$HOME/.gem
# export PATH=$GEM_HOME/ruby/2.6.0/bin:$PATH
# fi
# on macos same needs to be executed in .zprofile
# because https://apple.stackexchange.com/questions/432226/homebrew-path-set-in-zshenv-is-overridden
# but this will give access to brew in this file
if [ -d "/opt/homebrew/bin" ] ; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# export DOTNET_CLI_TELEMETRY_OPTOUT=1
# if [ -d "$HOME/.npm-global/bin" ] ; then
# export PATH="$HOME/.npm-global/bin:$PATH"
# fi
# if [ -d "$HOME/.local/bin" ] ; then
# export PATH="$HOME/.local/bin:$PATH"
# fi
# fnm
if [ -d "$HOME/.local/share/fnm" ] ; then
export PATH="/home/saito/.local/share/fnm:$PATH"
fi
if command_exists fnm ; then
export FNM_COREPACK_ENABLED=true
export FNM_RESOLVE_ENGINES=true
# https://zsh.sourceforge.io/Guide/zshguide02.html#l8
if [[ -o interactive ]]; then
else
eval "$(fnm env)"
fi
fi
# export PATH="/usr/local/sbin:/usr/local/bin:$PATH"
# pyenv
# also check that it's wsl pyenv, not windows one
# if command_exists pyenv && [ -d "$HOME/.pyenv" ] ; then
# export PYENV_ROOT="$HOME/.pyenv"
# command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
# eval "$(pyenv init -)"
# fi
#
# if command_exists python3 ; then
# export PATH="$(python3 -m site --user-base)/bin:$PATH"
# fi
if command_exists pipenv ; then
export PIPENV_VENV_IN_PROJECT=1
fi
if [ -f "$HOME/.cargo/env" ] ; then
. "$HOME/.cargo/env"
fi
# opam
# [[ ! -r /home/saito/.opam/opam-init/init.zsh ]] || source /home/saito/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
export NEOVIDE_FORK=1
export RIPGREP_CONFIG_PATH="$HOME/dotfiles/.ripgreprc"
# bun completions
[ -s "/Users/saitonakamura/.bun/_bun" ] && source "/Users/saitonakamura/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"