Feat/git aliases (#3)

* feat: prune refs on fetch

* feat: base git aliases

feat: aliases
This commit is contained in:
Marc 2022-11-19 11:29:45 -05:00 committed by GitHub
parent 2508b0f19a
commit e495948098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -1,3 +1,7 @@
#!/bin/bash
# Always sign commits.
git config --global commit.gpgsign true
# Prune stale refs on fetch.
git config --global fetch.prune true

View file

@ -18,3 +18,25 @@ alias tm="tmux new -s $1"
# All roads lead to nvim.
alias vim=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"