-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc.osx
76 lines (55 loc) · 1.58 KB
/
bashrc.osx
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
####################
# Bash Configuration
####################
# Enable colors in the console
export CLICOLOR=1
# History
export HISTCONTROL=ignoredups
export HISTSIZE=10000
shopt -s histappend
export EDITOR=vim
# Set Terminal window titles
export PS1="\[\033]0;\u@\h:\w\007\]\h:\w \u\$ "
# Define colors for listings
export LSCOLORS="ExgxdxDxcxegedabagacad"
# TERM (256 colours)
[ -z "$TMUX" ] && export TERM=xterm-256color
export LC_CTYPE=en_US.UTF-8
export ARCHFLAGS="-arch x86_64"
# Command completion
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# Include local builds in path
PATH=$HOME/local/bin:/usr/local/bin:$PATH
# Include python installs in brew location
PATH=/usr/local/share/python:/usr/local/share/python3:$PATH
#########
# Aliases
#########
alias ls="ls -G"
# scp resume - http://panela.blog-city.com/resume_scp_after_interrupted_downloads_use_rsync.htm
alias scpresume="rsync --partial --progress --rsh=ssh"
#######
# Tools
#######
# Autojump (via brew) - https://github.com/joelthelion/autojump
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
# Pip config
export PIP_RESPECT_VIRTUALENV=true
export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
if [ ! -d $PIP_DOWNLOAD_CACHE ]
then
mkdir $PIP_DOWNLOAD_CACHE
fi
#############
# Virtualenvs
#############
export WORKON_HOME=~/Documents/code/virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
#########
# Vagrant
#########
export VAGRANT_DEFAULT_PROVIDER=vmware_fusion
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"