-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrcmac
63 lines (50 loc) · 2.03 KB
/
.bashrcmac
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
#required for textMate Bundles repository downloads. See <http://macromates.com/textmate/manual/bundles#getting_more_bundles>
LC_CTYPE=en_US.UTF-8
# Ruby's path for doing 'require'
RUBYLIB=$RUBYLIB:~/bin
# workaround the gcc problems with XCode 4.2/4.2.1
export CC=/usr/bin/gcc-4.2
# required by git-cola
PYTHONPATH=/usr/local/lib/python:$PYTHONPATH
# choose a different editor than (default) Pico
export EDITOR='subl'
# SVN_EDITOR="subl"
# LESSEDIT='mate -l %lm %f'
#directories for cd to look into for path autocompletions
#ie. 'cd mys' instead of 'cd ~/Sites/my-site/trunk'
CDPATH=~/Homework:~/eBooks:~/Sites:~/Library:/Library:$CDPATH
#variables that 'shopt -s cdable_vars' can expand into convenience paths for cd
#i.e. mys='~/Sites/path/to/my_site_or_nuisance_filename'
#Mac-specific aliases
alias startvnc="sudo SystemStarter start VNC"
alias stopvnc="sudo SystemStarter stop VNC"
alias firefox="/Applications/*Browser\ applications/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager"
alias mysqlstart="sudo SystemStarter start MySQL"
alias brewfix='sudo chown -R $USER /usr/local'
#do completions if possible
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
# do automatic weighted completions too
if [ -f `brew --prefix`/etc/autojump ]; then
. `brew --prefix`/etc/autojump
fi
# do GitHub 'hub' command autocompletion if possible
if [ -f `brew --prefix`/bash_completion.d/hub.bash_completion.sh ]; then
. `brew --prefix`/bash_completion.d/hub.bash_completion.sh
fi
## only when we're done doing modifications
## remember these are inverse sort; final addition will be first in $PATH
PATH=/usr/local/share/python:$PATH
PATH=~/.gem/ruby/1.8/bin:$PATH
PATH=~/.gem/ruby/1.9/bin:$PATH
PATH=/Library/PEAR/bin:$PATH
PATH=/Developer/Tools:$PATH
PATH=/usr/libexec:$PATH
PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH
PATH=~/bin:$PATH
PATH=/usr/local/sbin:$PATH
PATH=/usr/local/bin:$PATH #brew req't
export PATH
# override OSX's annoying habit of (re-)hiding ~/Library
chflags nohidden ~/Library