forked from mhamrah/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.sh
33 lines (30 loc) · 1.36 KB
/
aliases.sh
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
################################
# Aliases
alias la="ls -lahF"
alias lf="ls -lhF"
alias t="tail -f"
alias fd='find . -type d -name'
alias ff='find . -type f -name'
#alias vim="nvim"
alias startup="/usr/bin/time /usr/local/bin/zsh -i -c exit"
alias cfg="vim ~/.zshrc"
alias g="git"
alias gc="git add . && git commit -am"
alias dm="docker-machine"
alias dc="docker-compose"
alias ...="cd ../.."
alias ....="cd ../../.."
alias curl=" curl"
alias hey=" hey"
alias kubectl=" kubectl"
alias kc=" kubectl"
alias cleanup='git checkout -q master && git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do mergeBase=$(git merge-base master $branch) && [[ $(git cherry master $(git commit-tree $(git rev-parse $branch^{tree}) -p $mergeBase -m _)) == "-"* ]] && git branch -D $branch; done'
alias kprod="KUBECONFIG=~/.namely-k8s/kube-aws-prod/kubeconfig kubectl"
alias kstage="KUBECONFIG=~/.namely-k8s/kube-aws-staging/kubeconfig kubectl"
alias kint="KUBECONFIG=~/.namely-k8s/kube-aws-int/kubeconfig kubectl"
alias knint="KUBECONFIG=~/.namely-k8s/new-kube-aws-int/kubeconfig kubectl"
alias knstage="KUBECONFIG=~/.namely-k8s/new-kube-aws-stage/kubeconfig kubectl"
alias knprod="KUBECONFIG=~/.namely-k8s/new-kube-aws-prod/kubeconfig kubectl"
alias kops="KUBECONFIG=~/.namely-k8s/kube-aws-ops/kubeconfig kubectl"
#alias kctx="kubectl config current-context"
alias tf=" terraform"