-
Notifications
You must be signed in to change notification settings - Fork 0
/
zprofile
102 lines (78 loc) · 2.36 KB
/
zprofile
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
## vim:ft=bash:
__ZPROFILE=1
echo "Loading ~/.zprofile"
# make snap work
# https://askubuntu.com/questions/910821/programs-installed-via-snap-not-showing-up-in-launcher/989485#989485
emulate sh -c 'source /etc/profile'
# emulate sh -c 'source /etc/profile.d/apps-bin-path.sh'
PATH=/usr/local/sbin:"$PATH"
PATH=/usr/local/bin:"$PATH"
# nvm support
export NVM_DIR="$HOME"/.nvm
# pyenv support
export PYENV_ROOT="$HOME/.pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
## linux
if [[ -d /home/linuxbrew/.linuxbrew ]]; then
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
fi
## mac os
if [[ -d /opt/homebrew ]]; then
eval $(/opt/homebrew/bin/brew shellenv)
fi
## mac os
if [[ -d /opt/homebrew ]]; then
## mac only
# use GNU coreutils by their default names (e.g. dircolors)
# break `ls` compatibility
if [[ -d /opt/homebrew/opt/coreutils/libexec/gnubin ]]; then
PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:"$PATH"
fi
## TODO: make it work
[[ -s "/opt/homebrew/opt/nvm/nvm.sh" ]] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
fi
if [[ -n "$HOMEBREW_PREFIX" ]]; then
# ruby
PATH="$HOMEBREW_PREFIX"/opt/ruby/bin:"$PATH"
fi
#nix
# PATH=/nix/var/nix/profiles/default/bin:"$PATH"
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# rust
PATH="$HOME"/.cargo/bin:"$PATH"
# PATH="$HOME"/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/:"$PATH"
# zig + zvm
export ZVM_INSTALL="$HOME"/.zvm/self
PATH="$ZVM_INSTALL":"$PATH"
PATH="$HOME"/.zvm/bin:"$PATH"
# go
PATH="$HOME"/go/bin:"$PATH"
# pnpm
export PNPM_HOME="$HOME"/Library/pnpm
PATH="$PNPM_HOME":"$PATH"
# bun + completions
export BUN_INSTALL="$HOME"/.bun
PATH="$BUN_INSTALL"/bin:"$PATH"
#
[[ -s "$HOME"/_bun ]] && source "$HOME"/_bun
# deno
PATH="$HOME"/.deno/bin:"$PATH"
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
export PUPPETEER_EXECUTABLE_PATH=`which chromium`
# pipx support
PATH="$HOME"/.local/bin:"$PATH"
# android studio
export ANDROID_HOME=$HOME/Library/Android/sdk
PATH=$PATH:$ANDROID_HOME/emulator
PATH=$PATH:$ANDROID_HOME/platform-tools
# GOSH
PATH="$HOME"/.gosh:"$PATH"
# ~/bin always overrides everything
PATH="$HOME"/bin:"$PATH"
export PATH
# brew + ruby fix: https://github.com/rails/rails/issues/38560
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
export DISABLE_SPRING=true