-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
50 lines (38 loc) · 1.31 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
48
49
50
# Load the default .profile
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile"
# Load .bashrc if it exists
[[ -s "$HOME/.bashrc" ]] && source "$HOME/.bashrc"
[[ $TMUX = "" ]] && export TERM="xterm-256color"
# Prompt
export PS1="\[\e[38;5;92m\]\t \[\e[m\]\u \[\e[36m\]\w\[\e[m\]\[\e[38;5;202m\]\$(__git_ps1)\[\e[m\] "
# PATH
[[ -d $HOME/bin ]] && export PATH="$PATH:$HOME/bin"
# Misc
export ARCHFLAGS="-arch x86_64"
export EDITOR=/usr/bin/vim
export VISUAL=/usr/bin/vim
export CLICOLOR=1
# Pip
#export PIP_REQUIRE_VIRTUALENV=true
export PIP_REQUIRE_VIRTUALENV=false
# Python Virtualenvwrapper
#export WORKON_HOME=$HOME/.virtualenvs
#export PROJECT_HOME=$HOME/Devel
#source /usr/local/bin/virtualenvwrapper.sh
# misc
export PROMPT_DIRTRIM=2
export INPUTRC=~/.inputrc
export PATH="/usr/local/sbin:$PATH"
export GIT_HOOKS_SOURCE="$HOME/bin"
export PAGER="less -SF" psql
export PROJECTS_DIR="$HOME/devel/projects"
export PRE_COMMIT_IGNORE_SPEC='0'
# Put git status in prompt
source ~/.git-prompt.sh
# chruby auto-load ruby version
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
# load git auto-completion
[[ -f $HOME/.git-completion.bash ]] && . $HOME/.git-completion.bash
# load brew's bash-completion
[[ -f $(brew --prefix)/etc/bash_completion ]] && source $(brew --prefix)/etc/bash_completion