This repository was archived by the owner on Mar 17, 2025. It is now read-only.
forked from trq/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmac-bashrc
More file actions
57 lines (46 loc) · 1.54 KB
/
mac-bashrc
File metadata and controls
57 lines (46 loc) · 1.54 KB
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
# Append
[ -d "$HOME/etc/dotfiles/bin" ] && PATH="$PATH:$HOME/etc/dotfiles/bin";
[ -d "$HOME/.rvm/bin" ] && PATH="$PATH:$HOME/.rvm/bin";
[ -d "/usr/local/mysql/bin" ] && PATH="$PATH:/usr/local/mysql/bin";
[ -d "$HOME/.gem/ruby/1.8/bin" ] && PATH="$PATH:$HOME/.gem/ruby/1.8/bin";
[ -d "/usr/local/share/npm/bin" ] && PATH=$PATH:/usr/local/share/npm/bin
# Prepend
[ -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";
export PATH
EDITOR=/usr/local/bin/vim ; 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"
if command -v brew > /dev/null 2>&1 && [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
elif [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
if [ -f ~/.bashrc.local ] ;then
source ~/.bashrc.local
fi