-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.profile
82 lines (59 loc) · 2.07 KB
/
.profile
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
79
80
81
# homebrew bin & sbin
export PATH=/usr/local/bin:$PATH:/usr/local/sbin
#phantomjs
export PATH=$PATH:/usr/local/bin/phantomjs
# mysql
export PATH=$PATH:/usr/local/mysql/bin
# mysql dynlib
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
# cake (closure make)
export PATH=$PATH:/usr/local/cake/bin
# node package manager
export PATH=$PATH:/usr/local/share/npm/bin
# closure contrib classpath
export CLASSPATH=$CLASSPATH:/usr/local/Cellar/clojure-contrib/1.2.0/clojure-contrib.jar
#node path
export NODE_PATH=$NODE_PATH:/usr/local/lib/node
#macvim
export VIM_APP_DIR=/usr/local/Cellar/macvim/v7.3-53
#rack_env
export RACK_ENV=development
#adjusting prompt for git
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}")"
}
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[01;32m\]"
PURPLE="\[\033[01;35m\]"
NO_COLOR="\[\033[00m\]"
PS1="$PURPLE\W$YELLOW \$(parse_git_branch)$NO_COLOR\$ "
#PS1="\h:\W \u\$"
#done
alias sublime="/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl"
alias subl=sublime
alias start_redis="redis-server /usr/local/etc/redis.conf"
alias start_postgres="pg_ctl start -D /usr/local/var/postgres"
alias start_mongodb="mongod --fork --logpath /usr/local/var/log/mongodb.log --logappend"
alias start_mysql="sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &"
alias mysql="/usr/local/mysql/bin/mysql"
alias mysqladmin="/usr/local/mysql/bin/mysqladmin"
#ls
alias ll="ls -l"
alias la="ls -al"
#ruby
alias be="bundle exec"
#project shortcut
alias mnca="cd ~/Documents/Rails/makersandco && sublime . && bundle exec guard"
alias mnc="cd ~/Documents/Rails/makersandco"
#customer projects
# ...
#note for mongodb: "You can cleanly stop mongod using a SIGINT or SIGTERM signal on Unix-like systems. Either ^C, "kill -2 PID," or kill -15 PID will work."
#default editor
export EDITOR='sublime .'
#add term color support
export CLICOLOR=1
export TERM=xterm-color
export LSCOLORS=exfxcxdxbxegedabagacad
# This loads RVM into a shell session.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"