-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_aliases
executable file
·108 lines (75 loc) · 1.62 KB
/
dot_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
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
#!/bin/sh
alias code=codium
alias diff='[[ "$TERM_PROGRAM" == "vscode" ]] && code -d || vimdiff'
alias edit='[[ "$TERM_PROGRAM" == "vscode" ]] && code || vim'
alias fzf="fzf --preview 'bat --style=numbers --color=always --line-range :500 {}'"
alias go=richgo
alias ls='eza --group-directories-first'
# a
alias a=argocd
# b
alias b=brew
alias bbd='b bundle dump -f --global && ch add ~/.Brewfile ~/.Brewfile.lock.json'
alias bu='b upgrade --formulae && b cu --cleanup -y'
# c
alias c=cat
alias ch=chezmoi
alias cha='ch apply'
alias chai='cha --init'
alias chc='ch cd'
alias che='ch edit'
alias chea='che --apply'
alias chg='ch git'
alias chsp='ch source-path'
# d
alias d=docker
alias dcb='d compose build'
alias dcd='d compose down'
alias dcdv='dcd -v'
alias dce='d compose exec'
alias dcl='d compose logs'
alias dcr='d compose run'
alias dcu='d compose up'
alias dcuw='dcu --wait'
alias dsp='d system prune'
alias dspa='dsp --all'
alias dvp='d volume prune'
alias dvpa='dvp --all'
# e
alias e=edit
# f
alias f=flux
# g
alias g=git
alias gcl=gitlab-ci-local
alias gi='git ignore $(git ignore list | tr "," "\n" | fzf -m --preview="git ignore {}" | tr -d "\n") | tee .gitignore'
# h
alias h=helm
alias hd=' noglob hist delete'
alias he=' noglob hist edit'
alias hf=' noglob hist fix'
alias hl=' noglob hist list'
alias hu=' noglob hist undo'
# k
alias k=kubectl
alias kctx=kubectx
alias kns=kubens
# l
alias l='eza -1'
alias la='eza -la'
# m
alias m=make
# o
alias o=open
# s
alias s=stern
# t
alias td=terrform-docs
alias tf=terraform
alias tm=terramate
alias tg=terragrunt
# u
alias u=' undo'
# v
alias v=vim
alias vd=vimdiff