-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_aliases
61 lines (58 loc) · 2.25 KB
/
bash_aliases
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
if [ -e ~/.screen/session-variables ]; then
alias ssh='source ~/.screen/session-variables; ssh'
fi
if [ -e ~/.screen/session-variables ]; then
alias git='source ~/.screen/session-variables; git'
fi
if [ -e ~/scratch.sh ]; then
alias screen='~/scratch.sh; screen'
fi
#------------------------------------------------
# Hearsay
#-----------------------------------------------
alias act='cd ~/projects/hearsay-activities'
alias branchpr='./scripts/checkout_pr.sh'
alias celery='./scripts/start_celeryd.sh'
alias dbshell='./run.sh manage.py dbshell --settings=settings.dev --cluster=shard3'
alias debugdev='./run.sh manage.py runserver 0.0.0.0:8080 --settings=settings.dev'
alias fan='cd ~/projects/HearsayLabs/fanmgmt'
alias fix='sudo service uwsgi2 restart && sudo service nginx restart'
alias jas='~/projects/HearsayLabs/fanmgmt/run.sh run_jasmine.py'
alias pubsub='./scripts/start_pubsub_celeryd.sh'
alias qa='./run.sh manage.py test --settings=settings.dev'
alias shell='./run.sh manage.py shell --settings=settings.dev --organization=1'
alias dbshell='./run.sh manage.py dbshell --settings=settings.dev --cluster=shard3'
alias redshell='./run.sh manage.py redshift_shell --settings=settings.dev'
alias shipit='lgtm create'
alias sshme='ssh dev.dev.hearsaylabs.com'
alias sshops='ssh ops.prod.pnw.hearsaylabs.com'
alias tail='tail -f /var/log/fm/gtrice.log'
alias watchstatic='make watch'
#---------------------------------
# Git
#--------------------------------
alias amend='git commit --amend'
alias co='git checkout '
alias clean='git clean -f'
alias delbranch='git branch -D '
alias delmerged='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
alias fetch='git fetch upstream'
alias gg='git grep '
alias iadd='git add --interactive'
alias irebase='git rebase --interactive'
alias merged='git branch --merged'
alias nuke='git rm'
alias pop='git stash pop'
alias push='git push origin'
alias pushf='git push origin --force'
alias rebase='git rebase upstream/master'
alias stash='git stash'
alias peepstash='git stash show -p'
#---------------------------------
# Dir
#--------------------------------
alias basha='vi ~/.bash_aliases'
#---------------------------------
# HSS Mac Local Env
#--------------------------------
alias macscreen='/usr/local/bin/screen'