-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile
30 lines (24 loc) · 855 Bytes
/
bash_profile
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
# colors
export LSCOLORS=exfxcxdxbxegedabagacad
###
# Go setup
export GO111MODULE="on"
export GOPATH=$HOME/go/
export GOROOT=/usr/local/Cellar/go/1.15.5/libexec/
export GOBIN=$HOME/go/bin
# general aliases
alias la='ls -lA'
# kubernetes aliases
alias kkevents='kubectl get events --sort-by=.metadata.creationTimestamp'
alias kkcon='kubectl config use-context'
alias kkns='kubectl config set-context --current --namespace'
alias kk='kubectl'
# golang aliases
alias gotccnt='go test -covermode=count -coverprofile=count.out && go tool cover -html=count.out'
# AWS aliases
alias awsbj='aws batch describe-jobs --jobs'
alias awsbjl='aws logs get-log-events --log-group-name /aws/batch/job --log-stream-name'
# clean log output
# removes color codes
# e.g. `some-command-with-logging | clo > output.log`
alias clo="sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g'"