-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
55 lines (44 loc) · 2.03 KB
/
.bash_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
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
alias tb="nc termbin.com 9999"
alias ll='ls -lath'
alias l='ls -lath'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias gc="git add . ;git commit -am'bump' ;git push"
alias gm="git add . && git commit -a && git push"
alias gs='git status'
alias gc='git commit'
alias gp='git pull --rebase'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias makeadd="git submodule add -b master git@github.com:mateothegreat/.make.git"
alias gkecreds="gcloud container clusters get-credentials"
alias k="kubectl"
alias kg="kubectl get"
alias kgd="kubectl get deploy -o wide --all-namespaces"
alias kgrs="kubectl get rs -o wide --all-namespaces"
alias kgrc="kubectl get rc -o wide --all-namespaces"
alias kgds="kubectl get ds -o wide --all-namespaces"
alias kgp="kubectl get pod -o wide --all-namespaces"
alias kgi="kubectl get ing -o wide --all-namespaces"
alias kgs="kubectl get svc -o wide --all-namespaces"
alias kgall="kubectl get deploy,pod,svc,ing,pv,pvc,rs,rc -o wide --show-labels --all-namespaces"
alias kw="watch kubectl get deploy,pod,svc,ing,pv,pvc,rs,rc -o wide --show-labels"
alias kd="kubectl describe"
alias kdi="kubectl describe pod"
alias kds="kubectl describe svc"
alias kdi="kubectl describe ing"
alias kdd="kubectl describe deploy"
alias kdel="kubectl delete"
alias klogs="kubectl logs -f"
# Get the last release name
alias hlast="helm list --short --max 1 --date -r"