-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbash_profile
43 lines (33 loc) · 1.1 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ~/.bash_profile: executed by bash(1) for login shells.
# Some systems don't use /usr/local for homebrew.
if [[ -d /opt/homebrew ]]; then
eval $(/opt/homebrew/bin/brew shellenv)
fi
# Include ~/.bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Prepend ~/bin to the PATH
if [ -d ~/bin ]; then
PATH="${HOME}/bin:${PATH}"
fi
# Prepend python's `site.USER_BASE` bin directory to the PATH.
# On Linux, it should be ~/.local/bin
# On MacOS, it should be something like ~/Library/Python/3.7/bin
#py3_user_base=$(python3 -m site --user-base)
#if [[ -d ${py3_user_base} ]]; then
# PATH="${PATH}:${py3_user_base}/bin"
#fi
# Add ~/.local/bin to the PATH
PATH="$PATH:${HOME}/.local/bin"
PATH="$PATH:${HOME}/local/bin"
# Prepend sbin directory to PATH.
PATH="/usr/local/sbin:${PATH}"
# ----------------------------------------------------------------------------
# Finally, export our shell variables
export EDITOR='vim'
export PAGER="${PAGER:-less -R}"
export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'
export PATH
# ----------------------------------------------------------------------------