-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollege_bash_profile
89 lines (72 loc) · 2.33 KB
/
college_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
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
82
83
84
85
86
87
88
89
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
## AWS
export JAVA_HOME='/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home'
export EC2_HOME='/Users/McQueen/Dropbox/Hacks/ec2-api-tools-1.6.7.4'
export PATH=$PATH:$EC2_HOME/bin
alias aws_ssh='ssh -i /Users/McQueen/Dropbox/Hacks/aws_kp.pem'
alias bp="vim ~/.bash_profile"
alias pp="subl /etc/profile"
alias vp="vim ~/.vimrc"
alias v="vim"
alias ss="subl"
alias school="cd; cd Dropbox/School/BY_YEAR/4-Senior_Year/Senior_Spring/; ls"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias c="clear"
alias py="python"
alias hack="cd; cd Dropbox/Hacks; ls"
alias focus="cd; sudo vim /etc/hosts;"
alias goog="ping www.google.com"
alias nodetable="/Applications/LightTable.app/Contents/MacOS/node-webkit"
alias sml="echo remember that sml acting like its in my path here is an alias hack...; /usr/local/smlnj-110.60/bin/sml"
alias l="ls -F"
alias ll="ls -l -a -F"
alias path="echo $PATH"
alias knuth="ssh [email protected]"
alias wilkes="ssh [email protected]"
note(){
/Users/McQueen/Dropbox/Hacks/note_create.sh $1
}
edit(){
/Users/McQueen/Dropbox/Hacks/note_edit.sh $1
}
# function git-branch-name {
# echo $(git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
# }
# function git-dirty {
# st=$(git status 2>/dev/null | tail -n 1)
# if [[ $st != "nothing to commit (working directory clean)" ]]
# then
# echo "*"
# fi
# }
# function git-unpushed {
# brinfo=$(git branch -v | grep $(git-branch-name))
# if [[ $brinfo =~ ("[ahead "([[:digit:]]*)) ]]
# then
# echo "[${BASH_REMATCH[2]}]"
# fi
# }
# function gitify {
# status=$(git status 2>/dev/null | tail -n 1)
# if [[ $status == "" ]]
# then
# echo ""
# else
# echo "($(git-branch-name))$(git-dirty)$(git-unpushed)"
# fi
# }
# PS1="\$(gitify)\$ "
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1=":{\@} \W\$(parse_git_branch)$ "
# Setting PATH for Python 2.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
# add play to path
export PATH=$PATH:"/usr/local/share/play-2.1.2"
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin