-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_profile
37 lines (32 loc) · 1.07 KB
/
.bash_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
# PATH
PATH=$HOME/local/install:$PATH # manually installed things go here
PATH=/usr/local/share/npm/bin:$PATH # npm
PATH=/usr/local/bin:$PATH # make sure homebrew's stuff is before OSX's
PATH=/usr/local/sbin:$PATH # homebrew's sbin
export NODE_PATH="/usr/local/lib/node"
# Ruby Version Manager
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# PROMPT
PS1="\w$ " # set prompt to be current working dir, relative to ~
# ALIASES
alias m='mate'
alias v='mvim'
alias cdd='cd ~/Dropbox/Code/'
alias cdu='cd $(git rev-parse --show-toplevel)' # cd to git repo root
alias cdl='cd ~-'
alias rmt='rm *~'
alias djrs='python manage.py runserver'
function mkcd { mkdir $1; cd $1; }
# takes in new repo's name as argument
# ex: $ git-create tufts-hackathon
# via marshall moutenot
function git-create () {
user=$(git config --get github.user)
git init
touch README.md
curl -u "${user}" https://api.github.com/user/repos -d '{"name":"'${1}'"}' > /dev/null
git remote add origin [email protected]:${user}/${1}.git
git add .
git commit -am 'first commit'
git push -u origin master
}