-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathprofile
executable file
·44 lines (38 loc) · 1.63 KB
/
profile
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
#nodenv setup.
if which nodenv > /dev/null; then eval "$(nodenv init -)"; fi
#Path setup.
export PATH=/usr/local/sbin:$PATH
export PATH=${HOME}/dotfiles/bin:${PATH}
export PATH="/usr/local/opt/postgresql@12/bin:$PATH"
source `brew --prefix`/share/gem_home/gem_home.sh
# Replace OSX core utilities with GNU versions.
if [[ $OSTYPE == *darwin* ]]; then
export PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
export MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH"
export PATH="$(brew --prefix ed)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix findutils)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix gnu-indent)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix gnu-tar)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix gnu-which)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix gnutls)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix grep)/libexec/gnubin:$PATH"
export PATH="$(brew --prefix gnu-indent)/libexec/gnubin:$PATH"
fi
if [[ $OSTYPE == *darwin* ]]; then
export PATH=${HOME}/dotfiles/bin/osx:${PATH}
export PATH=${HOME}/dotfiles_local/bin/osx:${PATH}
elif [[ $OSTYPE == *linux* ]]; then
export PATH=${HOME}/dotfiles/bin/linux:${PATH}
export PATH=${HOME}/dotfiles_local/bin/linux:${PATH}
fi
export PATH=${HOME}/dotfiles_local/bin:${PATH}
# if [[ $OSTYPE == *darwin* ]]; then
# export SSL_CERT_FILE=/usr/local/etc/openssl/cert.pem
# fi
#Create files as read-only by group and world.
umask 022
#Keep this last so it can override general settings!
if [ -f $HOME/dotfiles_local/profile ]; then
. $HOME/dotfiles_local/profile
fi