-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshellenv
More file actions
188 lines (159 loc) · 5.79 KB
/
shellenv
File metadata and controls
188 lines (159 loc) · 5.79 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# ~/.env: should be executed by the command interpreter for
# login shells.
# load brew
if [ -e "/opt/homebrew/bin/brew" ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "${HOME}/bin" ]; then
export PATH="${HOME}/bin:${PATH}"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "${HOME}/.local/sbin" ]; then
export PATH="${HOME}/.local/sbin:${PATH}"
fi
if [ -d "${HOME}/.local/bin" ]; then
export PATH="${HOME}/.local/bin:${PATH}"
fi
# set PATH so it includes macport's private bin if it exists
if [ -d "/opt/local/bin" ]; then
export PATH="/opt/local/sbin:${PATH}"
fi
if [ -d "/opt/local/sbin" ]; then
export PATH="/opt/local/bin:${PATH}"
fi
# Antigravity
if [ -d "/Users/alessandro/.antigravity/antigravity/bin" ]; then
export PATH="/Users/alessandro/.antigravity/antigravity/bin:${PATH}"
fi
# set XDG config directory and create it if it does not exist
export XDG_CONFIG_HOME="${HOME}/.config"
if [ ! -d "${XDG_CONFIG_HOME}" ]; then
mkdir "${XDG_CONFIG_HOME}" >/dev/null 2>&1
fi
# add sublime text binaries to path if exist
if [ -d "/Applications/Sublime Text.app/Contents/SharedSupport/bin/" ]; then
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin/:${PATH}"
fi
#History setup
export HISTSIZE=100000
export SAVEHIST=20000
# enable colors
export CLICOLOR=1
# set colors used in ls command
export LSCOLORS=ExFxBxDxCxegedabagacad
# customize jq command colors
export JQ_COLORS="1;30:0;37:0;37:0;37:0;32:1;37:1;37"
# set up colors for man pages
export LESS_TERMCAP_mb=$(printf '\e[01;31m') # enter blinking mode – red
export LESS_TERMCAP_md=$(printf '\e[01;35m') # enter double-bright mode – bold, magenta
export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us)
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
export LESS_TERMCAP_so=$(printf '\e[01;33m') # enter standout mode – yellow
export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode – cyan
# set default editor
if command -v micro &>/dev/null; then
export EDITOR="micro"
fi
# add python binaries to path
if [ -d "${HOME}/Library/Python/3.7/bin" ]; then
export PATH="${HOME}/Library/Python/3.7/bin:${PATH}"
fi
# load pyenv
if [ -d "${HOME}/.pyenv" ]; then
export PYENV_ROOT="${HOME}/.pyenv"
fi
# load pyenv
if [ -d "${HOME}/.pyenv/bin" ]; then
export PATH="${HOME}/.pyenv/bin:${PATH}$"
fi
# initialize pyenv
if command -v pyenv &>/dev/null; then
eval "$(pyenv init -)"
fi
# load cargo
if [ -e "${HOME}/.cargo/env" ]; then
source "$HOME/.cargo/env"
fi
# set flutter version manager home directory
if command -v fvm &>/dev/null; then
export FVM_CACHE_PATH="${HOME}/.fvm"
fi
# add flutter version manager default binaries
if [ -d "${FVM_CACHE_PATH}/default/bin" ]; then
export PATH="${FVM_CACHE_PATH}/default/bin:${PATH}"
fi
# add postgres binaries to PATH
if [ -d "/usr/local/opt/postgresql@17/bin" ]; then
export PATH="/usr/local/opt/postgresql@17/bin:${PATH}"
elif [ -d "/opt/homebrew/opt/postgresql@17/bin/" ]; then
export PATH="/opt/homebrew/opt/postgresql@17/bin/:${PATH}"
elif [ -d "/usr/local/opt/postgresql@16/bin" ]; then
export PATH="/usr/local/opt/postgresql@16/bin:${PATH}"
elif [ -d "/opt/homebrew/opt/postgresql@16/bin/" ]; then
export PATH="/opt/homebrew/opt/postgresql@16/bin/:${PATH}"
elif [ -d "/usr/local/opt/postgresql@15/bin" ]; then
export PATH="/usr/local/opt/postgresql@15/bin:${PATH}"
elif [ -d "/opt/homebrew/opt/postgresql@15/bin/" ]; then
export PATH="/opt/homebrew/opt/postgresql@15/bin/:${PATH}"
fi
# add visual studio code binaries to PATH
if [ -d "/Applications/Visual Studio Code.app/Contents/Resources/app/bin" ]; then
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:${PATH}"
fi
# add dart third-party binaries to PATH
if [ -d "$HOME/.pub-cache/bin" ]; then
export PATH="${HOME}/.pub-cache/bin:${PATH}"
fi
# add nvm binaries to path
export NVM_DIR="$HOME/.nvm"
if [ -s "${NVM_DIR}/nvm.sh" ]; then
. "${NVM_DIR}/nvm.sh"
elif command -v brew &>/dev/null && [ -s "$(brew --prefix nvm)/nvm.sh" ]; then
. "$(brew --prefix nvm)/nvm.sh"
fi
if [ -s "${NVM_DIR}/bash_completion" ]; then
. "${NVM_DIR}/bash_completion"
elif command -v brew &>/dev/null && [ -s "$(brew --prefix nvm)/etc/bash_completion.d/nvm" ]; then
. "$(brew --prefix nvm)/etc/bash_completion.d/nvm"
fi
# set .NET environment and add binaries
if [ -d "$HOME/.dotnet" ]; then
export DOTNET_ROOT=$HOME/.dotnet
export PATH="${PATH}:${DOTNET_ROOT}"
fi
# load ruby executables if exist
if [ -d "$HOMEBREW_REPOSITORY/opt/ruby/bin" ]; then
export PATH="$HOMEBREW_REPOSITORY/opt/ruby/bin:$PATH"
fi
# check android home directory
if [ -d "$HOME/Library/Android/sdk" ]; then
export ANDROID_HOME="$HOME/Library/Android/sdk"
# add android binaries to path
if [ -d "$ANDROID_HOME/platform-tools" ]; then
export PATH="$ANDROID_HOME/platform-tools:$PATH"
fi
if [ -d "$ANDROID_HOME/tools" ]; then
export PATH="$ANDROID_HOME/tools:$PATH"
fi
if [ -d "$ANDROID_HOME/tools/bin" ]; then
export PATH="$ANDROID_HOME/tools/bin:$PATH"
fi
if [ -d "$ANDROID_HOME/emulator" ]; then
export PATH="$ANDROID_HOME/emulator:$PATH"
fi
fi
# check for JetBrains Toolbox scripts
if [ -d "$HOME/Library/Application Support/JetBrains/Toolbox/scripts" ]; then
export PATH="$HOME/Library/Application Support/JetBrains/Toolbox/scripts:$PATH"
fi
# configure jenv
# if [ -e "/opt/homebrew/bin/jenv" ]; then
# export PATH="$HOME/.jenv/bin:$PATH"
# eval "$(jenv init -)"
# fi
if [ -d "$HOME/.pub-cache/bin" ]; then
export PATH="$PATH":"$HOME/.pub-cache/bin"
fi
export SENTRY_SKIP_DSYM_UPLOAD=false