-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
27 lines (24 loc) · 869 Bytes
/
.bash_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
# --------------------------------------
# load ~/.bashrc
# --------------------------------------
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# --------------------------------------
# terminal color and prompt
# --------------------------------------
alias ls='ls -G'
export PS1='\u@\h:$(echo "\w" | sed -e "/^.\{20,\}$/s/^\(.\{10\}\).*\(.\{10\}\)$/\1...\2/")\$ '
# --------------------------------------
# pyenv
# --------------------------------------
if type pyenv > /dev/null 2>&1; then
export PYENV_ROOT=~/.pyenv
export PATH=$PATH:$PYENV_ROOT/bin:$PATH
export PATH=$PATH:~/bin
eval "$(pyenv init -)"
# If you have homebrew openssl and pyenv installed,
# you may need to tell the compiler where the openssl package is located:
export CFLAGS="-I$(brew --prefix openssl)/include"
export LDFLAGS="-L$(brew --prefix openssl)/lib"
fi