-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
53 lines (38 loc) · 1.5 KB
/
bashrc
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
48
49
50
51
52
53
source ~/.profile
source ~/.bash/completions
source ~/.bash/functions
source ~/.bash/path
source ~/.bash/homebrew
source ~/.bash/java
source ~/.bash/python
source ~/.bash/alias
# Allow ! in commands
export histchars=
# Linux
[[ $OSTYPE =~ linux ]] && alias brew=emerge
# rvm
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion
[[ -s "$HOME/.rvm/contrib/ps1_functions" ]] && source "$HOME/.rvm/contrib/ps1_functions"
# nvm
[[ -r "${HOME}/.nvm/nvm.sh" ]] && source "${HOME}/.nvm/nvm.sh" && export NVM_LOADED=1
[[ -r $NVM_DIR/bash_completion ]] && . $NVM_DIR/bash_completion
# perlbrew
[[ -s "${HOME}/.perlbrew" ]] && export PERLBREW_LOADED=1
[[ -r "${HOME}/.perlbrew/etc/bashrc" ]] && source "${HOME}/.perlbrew/etc/bashrc"
# pythonbrew
[[ -s "{$HOME}/.pythonbrew/etc/bashrc" ]] && source "{$HOME}/.pythonbrew/etc/bashrc" && export PYTHONBREW_LOADED=1
# python
export PYTHONSTARTUP=~/.pythonrc
# Sublime Text 2 as default editor on MacOSX
[[ $OSTYPE =~ darwin && $(which subl) ]] && export EDITOR="subl -n"
# kerl
[[ -f /usr/local/erlang/R15B01/activate ]] && . /usr/local/erlang/R15B01/activate
# prompt
source ~/.bash/prompt
# Deal with iTerm/SSH Tab Titles
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
# autoenv
command -v brew && [[ -f `brew --prefix autoenv`/activate.sh ]] && source `brew --prefix autoenv`/activate.sh
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
# travis
[[ -s "${HOME}/.travis/travis.sh" ]] && source "${HOME}/.travis/travis.sh"