-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_profile
42 lines (33 loc) · 966 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
if [ `uname` = "Darwin" ] ; then
# macOS-specific configuration
source ~/.bash_profile.darwin.sh
fi
# set PATH so it includes custom globally-installed node modules
if [ -d "$HOME/.npm_global/node_modules/.bin" ] ; then
PATH="$HOME/.npm_global/node_modules/.bin:$PATH"
fi
# Set up the n Node version manager
if [ -x "$HOME/.n/bin/n" ] ; then
export N_PREFIX="$HOME/.local"
PATH="$HOME/.n/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
# If not running interactively, don't do anything else
case $- in
*i*) ;;
*) return;;
esac
# Source .bashrc if it exists
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
# Allow less, man, etc. to output certain control sequences.
export LESS="--RAW-CONTROL-CHARS"
export EDITOR='nvim'
if [ -f ~/.bash_profile.local.sh ] ; then
# local configuration
source ~/.bash_profile.local.sh
fi