-
Notifications
You must be signed in to change notification settings - Fork 1
/
_bashrc_local_Darwin
78 lines (61 loc) · 2.01 KB
/
_bashrc_local_Darwin
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
# Local bash initialisation
# cd into whatever is the forefront Finder window.
function cdf() { # short for cdfinder
cd "`osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)' 2> /dev/null`"
}
function notify() {
echo -e $'\e]9;'"$1"'\007'
}
PROMPT_COMMAND='echo -ne "\033]0;${PWD}\007"'
export MANPAGER="col -b | vim -MR - "
brew_prefix=$(brew --prefix)
if [ -f $brew_prefix/share/bash-completion/bash_completion ]; then
. $brew_prefix/share/bash-completion/bash_completion
fi
if [ -f $brew_prefix/etc/profile.d/z.sh ]; then
. $brew_prefix/etc/profile.d/z.sh
fi
if [ -d $brew_prefix/opt/coreutils ]; then
gbin=$brew_prefix/opt/coreutils/libexec/gnubin
gman=$brew_prefix/opt/coreutils/libexec/gnuman
export PATH=$gbin:$PATH
export MANPATH=$gman:$MANPATH
fi
if [ -d $brew_prefix/opt/findutils ]; then
gman=$brew_prefix/opt/findutils/share/man
export MANPATH=$gman:$MANPATH
fi
if [ -d $brew_prefix/opt/gnu-sed ]; then
gbin=$brew_prefix/opt/gnu-sed/libexec/gnubin
gman=$brew_prefix/opt/gnu-sed/libexec/gnuman
export PATH=$gbin:$PATH
export MANPATH=$gman:$MANPATH
fi
unset brew_prefix
if [ -d /usr/local/php ]; then
export PATH=/usr/local/php/bin:$PATH
export MANPATH=/usr/local/php/man:$MANPATH
fi
if [ -d /usr/local/apache ]; then
export PATH=/usr/local/apache/bin:$PATH
export MANPATH=/usr/local/apache/man:$MANPATH
fi
if [ -x $(which dircolors) ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
# alias commands
alias ls='ls -h --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
else
# alias commands
alias ls='ls -h'
alias ll='ls -alFh'
alias la='ls -Ah'
alias l='ls -CF'
fi
export RBENV_ROOT=/usr/local/var/rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# export ANDROID_HOME=/usr/local/opt/android-sdk
# export PATH="$(brew --prefix php55)/bin:$PATH"
export PATH=/usr/local/pcre/bin:/usr/local/apr-util/bin:$PATH