-
Notifications
You must be signed in to change notification settings - Fork 4
/
Darwin-bashrc
78 lines (65 loc) · 2.2 KB
/
Darwin-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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Prepend
[ -d "$HOME/etc/dotfiles/bin" ] && PATH="$HOME/etc/dotfiles/bin:$PATH";
[ -d "$HOME/.rvm/bin" ] && PATH="$HOME/.rvm/bin:$PATH";
[ -d "/usr/local/mysql/bin" ] && PATH="/usr/local/mysql/bin:$PATH";
[ -d "$HOME/.gem/ruby/1.8/bin" ] && PATH="$HOME/.gem/ruby/1.8/bin:$PATH";
[ -d "/usr/local/share/npm/bin" ] && PATH="/usr/local/share/npm/bin:$PATH"
[ -d "/usr/local/bin" ] && PATH="/usr/local/bin:$PATH";
[ -d "$HOME/.composer/vendor/bin" ] && PATH="$HOME/.composer/vendor/bin:$PATH"
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH";
[ -d "$HOME/src/php-pm/bin" ] && PATH="$HOME/src/php-pm/bin:$PATH";
[ -d "$HOME/src/vyro/src/bin" ] && PATH="$HOME/src/vyro/src/bin:$PATH";
[ -d "$HOME/src/pydbg" ] && PATH="$HOME/src/pydbg:$PATH";
[ -d "$HOME/.rvm/gems/ruby-2.0.0-p247/bin" ] && PATH="$HOME/.rvm/gems/ruby-2.0.0-p247/bin:$PATH";
export PATH
if [ -f ~/.iterm2_shell_integration.bash ] ; then
source ~/.iterm2_shell_integration.bash
fi
if [ -f /opt/boxen/homebrew/bin/vim ] ; then
EDITOR=/opt/boxen/homebrew/bin/vim
else
EDITOR=/usr/local/bin/vim
fi
export EDITOR
TERM="screen-256color" ; export TERM
HISTCONTROL=erasedups:ignoredups
HISTSIZE=10000
HISTFILESIZE=20000
HISTIGNORE='cd:ls:bg:fg:history'
HISTTIMEFORMAT='%F %T '
PROMPT_COMMAND='history -a'
shopt -s histappend
SSHAGENT=/usr/bin/ssh-agent
SSHAGENTARGS="-s"
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then
eval `$SSHAGENT $SSHAGENTARGS`
trap "kill $SSH_AGENT_PID" 0
fi
# vim bindings
# set -o vi
source ~/etc/dotfiles/bash/prompt
source ~/etc/dotfiles/bash/aliases
for f in ~/etc/dotfiles/bash_completion/*.sh; do
source $f
done
# Overide these aliases privided by the above
# aliases file. They don't play well with BSD.
alias ll="ls -lG"
alias ls="ls -G"
alias all="ls -la"
alias agnojs="ag --ignore='*.js'"
if [ -f ~/.bashrc.local ] ;then
source ~/.bashrc.local
fi
# source boxen stuff.
if [ -f /opt/boxen/env.sh ] ; then
source /opt/boxen/env.sh
fi
# This must go "after" the boxen env stuff.
if command -v brew > /dev/null 2>&1; then
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
elif [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi