Feat/git aliases (#3)
* feat: prune refs on fetch * feat: base git aliases feat: aliases
This commit is contained in:
parent
2508b0f19a
commit
e495948098
2 changed files with 26 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Always sign commits.
|
||||||
git config --global commit.gpgsign true
|
git config --global commit.gpgsign true
|
||||||
|
|
||||||
|
# Prune stale refs on fetch.
|
||||||
|
git config --global fetch.prune true
|
||||||
|
|
|
@ -18,3 +18,25 @@ alias tm="tmux new -s $1"
|
||||||
# All roads lead to nvim.
|
# All roads lead to nvim.
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
alias v=nvim
|
alias v=nvim
|
||||||
|
|
||||||
|
###############
|
||||||
|
# git-related #
|
||||||
|
###############
|
||||||
|
|
||||||
|
unalias mgs 2>/dev/null
|
||||||
|
alias mgs="git status"
|
||||||
|
|
||||||
|
unalias mgf 2>/dev/null
|
||||||
|
alias mgf="git fetch"
|
||||||
|
|
||||||
|
unalias mgc 2>/dev/null
|
||||||
|
alias mgc="git commit"
|
||||||
|
|
||||||
|
unalias mgp 2>/dev/null
|
||||||
|
alias mgp="git push"
|
||||||
|
|
||||||
|
unalias mgcb 2>/dev/null
|
||||||
|
alias mgcb="git branch --show-current"
|
||||||
|
|
||||||
|
unalias mgl 2>/dev/null
|
||||||
|
alias mgl="git log"
|
||||||
|
|
Loading…
Reference in a new issue