-
Notifications
You must be signed in to change notification settings - Fork 2
/
aliases
67 lines (58 loc) · 2.18 KB
/
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
#!/bin/bash
#for sam... my imaginary tmate friend
alias vi=vim
# aws
alias av='aws-vault-exec'
alias avl='aws-vault exec -d 12h jeremy true'
alias ec2s='aws ssm start-session --target'
#Docker Docker Docker Docker Docker Docker Docker Docker Docker
alias doc=docker
alias d=docker
alias dx='docker exec'
alias dps='docker ps'
alias cmp='docker compose'
alias dma=docker-machine
alias dsav=docker-set-api-version
alias dv='docker volume'
alias dq='docker run -it --rm'
alias k=kubectl
alias kak='kubectl apply -k'
alias kk='kubectl kustomize'
alias h=helm
alias tf=terraform
alias os=openstack
#git
alias gca\!='git commit --amend'
alias gs='git status'
alias gsur='git submodule update --init --recursive'
alias gcb\!='git checkout -B'
alias gct='git checkout -t'
alias gct\!='git checkout -f -t'
alias gma='git merge --abort'
alias gcn='git clean -n'
alias gcn\!='git clean -f'
alias gpu\!='git-push-bravely'
alias ghcl='git-clone-private'
alias gbu='git branch --set-upstream-to'
alias grh='git reset --hard'
alias grk='git reset --keep'
alias gpr='git-setup-pullrequest-branch'
alias gpr\!='git-close-pullrequest-branch'
alias git-clean-merged-branches='git branch -D $(git branch --merged | tail -n +2)'
alias what-is-upstream='git rev-parse --abbrev-ref --symbolic-full-name @{u}'
alias wiu='what-is-upstream'
# git-branch-delete-gone :
alias gbdg="echo branches which are gone and can be deleted:;git branch -vv | grep 'origin/.*: gone\]' | awk '{print \$1}'"
alias gbdg\!="git branch -vv | grep 'origin/.*: gone\]' | awk '{print \$1}' | xargs git branch -D"
alias grc="git for-each-ref --sort=-committerdate --format='%(objectname:short) -> %(refname:short)'|head -n10"
alias grcl="git for-each-ref --sort=-committerdate --format='%(objectname:short) -> %(refname:short)'|less"
# ghetto quarantine remover because nanny-mode osx be hatin on my warez, yo
alias un-quarantine='xattr -d com.apple.quarantine'
unalias gb #oh-my-zsh uses this, but gb is a go tool, so conflict!
unalias gclean #I deem this unsafe atm. It's only safe 80% of the time...
if which stat 2>/dev/null 1>/dev/null ; then
alias d.="desk ."
fi
alias tmux="TERM=screen-256color-bce tmux"
#old skool, non-brew install on osx
alias woman=eg