-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.shared_aliases
60 lines (44 loc) · 1.47 KB
/
.shared_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
# Neovim
alias n='nvim'
# Tmux
alias tn='tmux new -s'
# Ripgrep aliases
alias rgl='rg -l'
# Git aliases
alias gs='git status --short'
alias ga='git add'
alias gb='git branch'
alias gc='git checkout'
alias gme='git merge'
alias gplo='git pull origin $(git branch --show-current)'
alias gpso='git push origin $(git branch --show-current)'
alias gpsov='git push --no-verify origin $(git branch --show-current)'
alias gpsof='git push --force origin $(git branch --show-current)'
alias gpsofv='git push --force --no-verify origin $(git branch --show-current)'
alias gpsovf=gpsofv
alias gcp='git cherry-pick'
alias gl='git log'
alias glp='git log -p'
alias gln='git log --name-only'
alias gcv='git commit -v'
alias gcm='git commit -m'
alias gca='git commit --amend'
alias gd='git diff'
alias gms='BRANCH=$(git branch --show-current); git checkout staging; git merge $BRANCH; git push origin staging; git checkout $BRANCH'
alias gda='git diff --color --name-only --diff-filter=A'
alias gdm='git diff --color --name-only --diff-filter=M'
alias gdd='git diff --color --name-only --diff-filter=D'
# ls
alias l="exa -lah --git"
alias lt="exa -lahT --git"
# cd
alias cdd='cd ~/Downloads'
alias cdw='cd ~/Work'
# Docker aliases
alias dps='docker ps'
#TODO
alias td="cat $NOTES_DIR/TODO.md"
alias tde="(cd $NOTES_DIR && vim TODO.md && git add TODO.md && git commit -m 'update TODO')"
#NOTES
alias nt="(cd $NOTES_DIR && vim tmp.md)"
alias nu="(cd $NOTES_DIR && git add . && git commit -m 'update notes')"