-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_aliases.tmpl
121 lines (100 loc) · 2.72 KB
/
dot_aliases.tmpl
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
# Angular
alias nggc='ng generate component'
alias nggd='ng generate directive'
alias nggm='ng generate module'
alias nggs='ng generate service'
# Browsers
alias ff='open -a Firefox'
alias chr='open -a Google Chrome'
alias saf='open -a Safari'
alias qff="osascript -e 'quit app "'"Firefox"'"'"
alias qchr="osascript -e 'quit app "'"Google Chrome"'"'"
alias qsaf="osascript -e 'quit app "'"Safari"'"'"
# Chezmoi
alias cz='chezmoi'
alias cza='chezmoi apply'
alias czcd='chezmoi cd'
alias czi='chezmoi init'
# Directory Aliases
{{ range $key, $value := .aliases.directories -}}
alias {{ $key }}='cd {{ $value }}'
{{ end }}
# Docker
alias dcu='docker-compose up'
alias dic='docker inspect'
alias dla='docker ps -a'
alias dpa='docker system prune -a'
alias dra='docker rm $(docker ps -aq)'
alias dsa='docker stop $(docker ps -aq)'
# Gatsby
alias gb='gatsby build'
alias gc='gatsby clean'
alias gd='gatsby develop'
alias gi='gatsby info'
alias gn='gatsby new'
alias gs='gatsby serve'
# Laravel
alias sail='bash vendor/bin/sail'
# mkcert
alias mk='mkcert'
alias mki='mkcert -install'
alias mku='mkcert -uninstall'
# Navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......="cd ../../../../.."
# Node
alias nims5='export NODE_OPTIONS="--max-old-space-size=5120"'
alias nims6='export NODE_OPTIONS="--max-old-space-size=6144"'
alias nims7='export NODE_OPTIONS="--max-old-space-size=7168"'
alias nims8='export NODE_OPTIONS="--max-old-space-size=8192"'
# npm
alias npmi='npm install'
alias npms='npm run start'
alias npmu='npm uninstall'
# nvm
alias nvmi='nvm install'
alias nvml='nvm list'
alias nvmu='nvm use'
# PostgreSQL
alias pgstart='brew services start postgresql'
alias pgstop='brew services stop postgresql'
alias pgrestart='brew services restart postgresql'
alias pgstatus='brew services list | grep postgres'
# Rails
alias rc='rails console -e development'
alias rdbm='rails db:migrate RAILS_ENV=development'
alias rdbrp='rails db:seed:replant'
alias rdbr='rails db:reset'
# Run Python Simple Server
alias pys='python -m SimpleHTTPServer'
# RVM
alias rvmfp="rvm fix-permissions user"
# Shell
alias c='clear'
alias e='exit'
alias reload="exec ${SHELL} -l ; . ~/.zshrc"
# Shopify
alias shdp='theme deploy --env=production --allow-live'
# Spring
alias ss='spring stop'
# SSH Aliases
{{ range $key, $value := .aliases.ssh -}}
alias {{ $key }}='ssh {{ $value }}'
{{ end }}
# SSH Keys
alias gsshk='ssh-keygen -t rsa'
alias csshk='pbcopy < ~/.ssh/id_rsa.pub'
# Yarn
alias y='yarn'
alias ya='yarn add'
alias ycc='yarn cache clean'
alias yd='yarn dev'
alias yl='yarn lint'
alias ylf='yarn lint --fix'
alias yp='yarn prod'
alias yr='yarn remove'
alias ys='yarn start'
alias yui='yarn upgrade-interactive --latest'