-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
135 lines (105 loc) · 2.91 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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# git
alias gs="git status"
alias gaa="git add --all"
alias gc="git commit -m"
alias gba="git branch --all"
alias gco="git checkout"
alias prune="git remote prune origin"
alias prune-merged='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
alias super-prune='prune; prune-merged'
alias master="gco master"
alias develop="gco develop"
alias push="git push"
alias pull="git pull"
alias hf="git hf"
alias hff="git hf feature"
alias hfu="git hf update"
alias hfp="git hf push"
alias hffs="git hf feature start"
alias hfff="git hf feature finish"
alias hffco="git hf feature checkout"
git_add_all_commit_push() {
if [[ $# -ne 1 ]]; then
echo "Error, USAGE: gacp MESSAGE"
return
fi
git add --all;
git commit -m $1;
git push;
echo "Added, Committed, and pushed with message $1";
}
## alias gac="git add --all; git commit -m 'message'; git push;"
alias gacp=git_add_all_commit_push
git_add_all_commit() {
if [[ $# -ne 1 ]]; then
echo "Error, USAGE: gac MESSAGE"
return
fi
git add --all;
git commit -m $1;
echo "Added and Committed with message $1";
}
## alias gac="git add --all; git commit -m 'message';"
alias gac=git_add_all_commit
git_new_feature() {
if [[ $# -ne 1 ]]; then
echo "Error, USAGE: git-nf BRANCH_NAME"
return
fi
git checkout master;
git ull;
git push;
git checkout -b $1;
echo "Created Branch $1";
}
## alias git-nf="git checkout master; git ull; git pull; git push;"
alias gnf=git_new_feature
# mvn
alias mci="mvn clean install"
alias mcp="mvn clean package"
alias mcv="mvn clean verify"
alias mcist="mvn clean install -DskipTests=true"
alias mcpst="mvn clean package -DskipTests=true"
alias mcvst="mvn clean verify -DskipTests=true"
# play
alias pr="./run_server"
# dirs
alias ws="cd $HOME/Workspace"
alias bo="cd $HOME/Workspace/backoffice"
alias picks="cd $HOME/Workspace/picks"
alias ink="cd $HOME/Workspace/inkstagram"
alias contracts="cd $HOME/Workspace/contracts"
alias waw="cd $HOME/Workspace/waw"
# ssh
alias wts="ssh [email protected]"
# edit
subl_no_hang() {
if [[ $# -ne 1 ]]; then
echo "Error, USAGE: sl FILE"
return
fi
subl -w $1 &
echo "Sublimed $1";
}
alias sl=subl_no_hang
alias profile="subl -w ~/.bash_profile"
alias sourcep="source ~/.bash_profile"
# django
alias rs="./run-server.py"
alias syncdb="./sync-db.py"
# unix
alias ls="ls -a"
#############
#PATH Config#
#############
export EDITOR='subl -w'
export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)
export NVIDIA_PATH=/Developer/NVIDIA/CUDA-5.0/bin
export BIN_HOME=/usr/local/bin
export PATH=$PATH:$NVIDIA_PATH:$BIN_HOME:$PLAY2_HOME
export MAVEN_OPTS='-Xms1024m -Xmx2048m -XX:MaxPermSize=128m'
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
export vm_mem=6144
export init_role=devvm_headless
export init_env=qa
export init_repoprivkeyfile=github.pem