-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdot_aliases
59 lines (52 loc) · 1.96 KB
/
dot_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
# ==============================================================================
# git
alias g="git"
alias ga="git add"
alias gb+="git branch -vv --all"
alias gb="git branch -vv"
alias gbd="git branch -D"
alias gc+="git commit --all --gpg-sign -m"
alias gc="git commit --gpg-sign -m"
alias gco="git checkout"
alias gd+="git diff --cached"
alias gd="git diff"
alias gf="git fetch --prune"
alias gl+="git log --graph --oneline --decorate --stat"
alias gl="git log --graph --oneline --decorate"
alias gm="git merge --no-ff"
alias gp="git pull --prune"
alias gpu+="git push --force-with-lease"
alias gpu="git push"
alias gpuo="git push --set-upstream origin"
alias gr++="git reset --hard HEAD~1"
alias gr+="git reset --hard HEAD"
alias gr="git reset HEAD"
alias gs="git status --short"
# ==============================================================================
# docker
alias d="docker"
alias dex="docker exec --interactive --tty"
alias dim="docker images"
alias dip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'"
alias dlo="docker logs --follow"
alias dnl="docker network ls"
alias dnr='docker network rm $(docker network ls --quiet --filter dangling=true) 2> /dev/null'
alias dps="docker ps --all"
alias drc='docker rm --volumes --force $(docker ps --all --quiet) 2> /dev/null'
alias dri='docker rmi --force $(docker images | grep "<none>" | awk "{print $3}") 2> /dev/null'
alias dvl="docker volume ls"
alias dvr='docker volume rm $(docker volume ls --quiet --filter dangling=true) 2> /dev/null'
# ==============================================================================
# [tools]
alias code='\code --user-data-dir ~/.config/Code/'
alias c='\code --user-data-dir ~/.config/Code/ $(ls -1 *.code-workspace)'
alias cz="chezmoi"
# ==============================================================================
# [shell]
alias reload="exec $SHELL -l" # Reload shell
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias ~="cd ~"
alias -- -="cd -"
alias ls="ls --color"