forked from joshwyatt/keyboard_shortcuts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash-profile.txt
62 lines (54 loc) · 2.35 KB
/
bash-profile.txt
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
# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
export PATH=/usr/local/bin:/usr/local/sbin:/opt/:$PATH
# Load .bashrc if it exists
test -f ~/.bashrc && source ~/.bashrc
alias goto_git="cd ~/Dropbox/git/DataTools"
alias goto_dis="goto_git; cd Distillery"
alias goto_found="goto_git; cd foundry"
alias goto_wise="goto_git; cd wisetrack"
alias goto_ssf="goto_git; cd ssfdata"
alias goto_bar="goto_git; cd barista"
alias goto_jboss="goto_git; cd jboss"
alias reload_profile="source ~/.bash_profile"
alias edit_profile="atom ~/.bash_profile"
alias goto_clob="goto_git; cd /DataToolsETL/Foundry/dataserver/cloBBer"
alias rsa_key="cat ~/.ssh/id_rsa.pub"
alias seed_foundry="npm run seed -- --environment=foundry-api-dev"
######Protractor#######
alias protractor_update="./node_modules/protractor/bin/webdriver-manager update"
alias protractor_stop="curl -s -L http://localhost:4444/selenium-server/driver?cmd=shutDownSeleniumServer > /dev/null 2>&1"
alias protractor_start="./node_modules/protractor/bin/webdriver-manager start"
alias protractor_run="protractor config/just_protractor.conf.js"
### Git commands ###
alias gchb="git checkout -b"
alias gch="git checkout"
alias gpu="git pull"
alias gdev="git pull origin develop"
alias gpud="git pull --rebase upstream develop"
alias gst="git status"
alias gad="git add -A"
alias gco="git commit"
alias gcone="git commit --amend --no-edit"
alias gpoh="git push origin HEAD"
alias gpohf="git push origin head --force"
alias gnoedit="gad; gcone; gpohf"
#####Add " HEAD~ + <num of commits>" to end###
alias gsquash="git rebase -i"
alias pullmaster="git pull origin master"
alias pushmaster="git push origin master"
alias git_heroku="git push heroku master"
### This will delete local branches that have been merged into origin master
alias clean_repo="git branch --merged | grep -v '^* master$' | grep -v '^ master$' | xargs git branch -d"
#####oracle#####
export DYLD_LIBRARY_PATH=/opt/oracle/instantclient
export OCI_LIB_DIR=/opt/oracle/instantclient
export OCI_INC_DIR=/opt/oracle/instantclient/sdk/include
source ~/.rvm/scripts/rvm
alias kill_node="sudo killall -9 node"
alias kill_mongo="sudo killall -9 mongod"
##For Open LDAP with Barista##
export PATH="/usr/local/opt/openldap/bin:$PATH"
export PATH="/usr/local/opt/openldap/sbin:$PATH"
export PATH="/usr/local/opt/berkeley-db@4/bin:$PATH"