-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
39 lines (31 loc) · 936 Bytes
/
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
# target: ~/.aliases
alias zshconfig="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
alias gbdf='git branch -d $(git branch | FZF)'
alias 'gbdf!'='git branch -D $(git branch | FZF)'
alias grb='git checkout $(git branch --sort=-committerdate | FZF)'
alias gsn='git status -uno'
if command -v nvim > /dev/null; then
alias v=nvim
alias vi=nvim
alias vim=nvim
fi
if command -v hub > /dev/null; then
alias git=hub
fi
if command -v kubectl > /dev/null; then
alias k=kubectl
fi
if command -v docker > /dev/null; then
alias dash='docker exec -ti $(docker ps --format "{{.Names}}" | sort -r | FZF) bash'
alias dstopall='docker ps -q | xargs docker stop'
alias dstartall='docker ps -a -q | xargs docker start'
alias dclean='dstopall && docker system prune'
fi
if command -v bat > /dev/null; then
alias cat='bat'
alias ag='ag --pager bat'
fi
if command -v kitty > /dev/null; then
alias icat="kitty +kitten icat"
fi