-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
41 lines (33 loc) · 1.59 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
# purpose: exports & loading more when actually interactive
[ -e ~/.boto ] && export AWS_CONFIG_FILE=~/.boto
# Make emacs-in-a-new-frame the default editor
export EDITOR='emacsclient'
# Larger bash history (default is 500)
export HISTSIZE=32768
export HISTFILESIZE=$HISTSIZE
export HISTCONTROL=ignoredups
# Prefer US English and use UTF-8
export LC_ALL="en_US.UTF-8"
export LANG="en_US"
#export PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
export PATH="$HOME/bin:$PATH"
[ -d /usr/local/opt/google-cloud-sdk ] && . /usr/local/opt/google-cloud-sdk/path.bash.inc && . /usr/local/opt/google-cloud-sdk/completion.bash.inc
[ -f $HOME/.cargo/env ] && . $HOME/.cargo/env
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && . "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
# Bash doesn't load its interactive initialization file if it's invoked as
# a login shell, so do it manually.
case $- in
*i*) if [[ -n "$BASH" ]]; then
source $HOME/.bashrc
fi
esac
# homebrew only supports installation a few well-defined locations, and i don't use it on linux
# https://github.com/Homebrew/install/blob/87357e2b3e92d6662f393090b5fc97316e072543/install.sh
# installation paths can be found on lines 124 & 128, lines 1010-1011 generate eval cmd's used below
if [ -d /opt/homebrew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [ -d /usr/local/Homebrew ]; then
eval "$(/usr/local/bin/brew shellenv)"
fi