-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh_alias
39 lines (32 loc) · 1.2 KB
/
zsh_alias
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
#!/bin/sh
alias al='code ~/.zsh_alias'
alias myzsh='code ~/.zshrc'
alias reloadzsh='source ~/.zshrc'
# git
alias git='LANG=en_US git'
alias grt='git restore'
alias grts='git restore --staged'
alias gwip='() { git commit --no-verify -m "WIP - DO NOT PUSH: $1" }'
alias gwipa='() { git add . && gwip $1}'
alias glm="git pull origin master"
alias gsweep="git branch --merged master | egrep -v '^\s*\*?\s*master$' | xargs git branch -d"
alias ghpr="gh pr create"
# rails
alias rc='rails console'
alias rjw='rails jobs:work'
alias lt_rails="lt --port 3000 --subdomain lorenzodc1997"
alias krs="kill -9 $(lsof -wni tcp:3000 | grep ruby | awk '{print $2; exit}')"
# python
alias pm="python -m"
alias dj="python manage.py"
alias djs="python manage.py runserver"
alias djm="python manage.py migrate"
alias nginx="sudo lsof -ti:80 | sudo xargs kill -9 && sudo nginx"
# aws
alias editaws="code ~/.aws/credentials"
# misc
alias brewski="brew update && brew upgrade && brew cleanup; brew doctor"
# Amphora specific
alias hermes="cd $HOME/code/Amphora/hermes && conda activate amphora311"
alias go="cd $HOME/code/Amphora/go && conda activate base && nvm use"
alias neptune="cd $HOME/code/Amphora/neptune && conda activate base && nvm use"