-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliasrc
63 lines (55 loc) · 1.63 KB
/
.aliasrc
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
#!/usr/bin/sh
#
# Aliases
# (c) Copyright 2018 Maya Vera (mayavera.me)
#
# Exit
alias -g e=exit
# Less
alias -g less='less -r'
# History
alias -g h=history
alias -g hg='history | grep'
# Git
alias -g ga='git add --all'
alias -g gac='git add --all && git commit -m'
alias -g gp='git push'
alias -g gpf='git push --force'
alias -g gpo='git push --set-upstream origin'
alias -g gs='git status'
alias -g dotenv='export $(cat .env | xargs)'
alias -g master='git checkout master'
alias -g m='master'
alias -g deletebranches='git branch | grep -v "master" | xargs git branch -D'
# Node
alias -g nodeclear='if [ -d node_modules ]; then rm -Rf node_modules; fi'
alias -g i='npm i'
# Python
alias -g python=/usr/local/bin/python3
alias -g pip=pip3
# Work
alias -g work='cd ~/work/provantagex/ui && nvm use 10'
alias -g w=work
alias -g workstart='work && yarn start --backend=INT'
alias -g ws='workstart'
alias -g worktest='work && yarn test'
alias -g wt='worktest'
alias -g workcode='work && code .'
alias -g wc='workcode'
alias -g worklint='work && yarn test:lint'
alias -g wl=worklint
alias -g worklintwatch='worklint --watch'
alias -g wlw=worklintwatch
alias -g worklintquiet='worklint --quiet'
alias -g wlq=worklintquiet
alias -g worklintquietwatch='worklintquiet --watch'
alias -g wlqw=worklintquietwatch
alias -g worktsc='work && yarn test:tsc'
alias -g wt=worktsc
alias -g worktscwatch='worktsc --watch'
alias -g wtw=worktscwatch
# Renaming
alias -g lowext='rename "s/\.([^.]+)$/.\L\$1/"'
alias -g romfixcountry='rename "s/\(([UuEeJj])\)/[\U\$1]/"'
alias -g romfixcountrypd='rename "s/[\(\[]([Pp][Dd])[\)\]]/[Pd]/"'
alias -g romfixtagspacing='rename "s/\] +\[/][/"'