forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
47 lines (41 loc) · 1.19 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
44
45
46
47
# BASH ENV
export HISTCONTROL="erasedups:ignoreboth"
export HISTFILESIZE=500000
export HISTSIZE=100000
export HISTIGNORE="&:[ ]*:exit"
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# add sbin (rabbitmq) to path
export PATH="~/bin:/usr/local/sbin:$PATH"
stty stop ""
# dotfiles additions
source ~/.bash/aliases
source ~/.bash/completions
source ~/.bash/functions
source ~/.bash/ps1
# .bashrc is for non-interactive login ENVs
if [ -f ~/.bashrc ]; then source ~/.bashrc; fi
# Local, non-shared configurations
# add configuration that is specific to this machine/environmnet
# and should not be shared across environments
# for settings specific to one system (e.g. mac vs. linux differences)
if [ -f ~/.bash_environment ]; then
# echo 'local .bash_environment'
source ~/.bash_environment
else
echo 'no bash_environment'
fi
if which rbenv > /dev/null; then
# echo rbenv init
eval "$(rbenv init -)";
else
echo 'no rbenv'
fi
# configure nvm
if [ -d "$HOME/.nvm" ]; then
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
else
echo 'no nvm'
fi