/
crystal.plugin.zsh
56 lines (39 loc) · 1.18 KB
/
crystal.plugin.zsh
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
function _crystal_command () {
if [ -e "bin/crystal" ]; then
bin/crystal $@
else
command crystal $@
fi
}
alias crystal='_crystal_command'
alias cr='crystal'
alias cri='crystal init'
compdef _crystal cri='crystal init'
alias crb='crystal build'
compdef _crystal crb='crystal build'
alias crd='crystal deps'
compdef _crystal crd='crystal deps'
alias crdo='crystal docs'
compdef _crystal crdo='crystal docs'
alias cren='crystal env'
compdef _crystal cren='crystal env'
alias cre='crystal eval'
compdef _crystal cre='crystal eval'
alias crp='crystal play'
compdef _crystal crp='crystal play'
alias crs='crystal spec'
compdef _crystal crs='crystal spec'
alias crr='crystal run'
compdef _crystal crr='crystal run'
alias crt='crystal tool'
compdef _crystal crt='crystal tool'
alias crtc='crystal tool context'
compdef _crystal crtc='crystal tool context'
alias crtf='crystal tool format'
compdef _crystal crtf='crystal tool format'
alias crth='crystal tool hierarchy'
compdef _crystal crth='crystal tool hierarchy'
alias crti='crystal tool implementations'
compdef _crystal crti='crystal tool implementations'
alias crtt='crystal tool types'
compdef _crystal crtt='crystal tool types'