-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
48 lines (44 loc) · 1.32 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
# Git
alias ga='git add'
alias gf='git fetch'
alias gp='git push'
alias gs='git status'
alias gsi='git status --ignored'
alias gd='git diff'
alias gdc='git diff --cached'
alias gds='git diff --stat'
alias gdcs='git diff --cached --stat'
alias gm='git commit -v'
alias gma='git commit --amend -v'
alias gb='git branch'
alias gc='git checkout'
alias gcb='git checkout -b'
alias gra='git remote add'
alias grr='git remote rm'
alias gr='git restore'
alias gpu='git pull'
alias gkdf='gitk --follow --all -p'
alias gl='git l'
alias gll='git ll'
alias gw='git worktree'
alias gprune="git remote update --prune && git branch -vv | awk '/: gone]/{print \$1}\' | xargs git branch -D"
alias gparent='git show-branch | sed "s/].*//" | grep "\*" | grep -v "$(git rev-parse --abbrev-ref HEAD)" | head -n1 | sed "s/^.*\[//"'
# Obtain WAN IP: https://askubuntu.com/questions/95910/command-for-determining-my-public-ip
alias wanip='dig +short myip.opendns.com @resolver1.opendns.com'
# Shortcuts
alias g="grep"
alias v="nvim"
alias vi="nvim"
alias vim="nvim"
alias dc='docker compose'
alias c="ncal -bwM `date +%Y`"
# Filesystem
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias ls='ls --color=auto'
alias l='ls -lah --color=auto'
alias la='ls -AF --color=auto'
alias ll='ls -lFh --color=auto'
# Minikube
alias kubectl="minikube kubectl --"