env/source/aliases
Marc Cataford e495948098
Feat/git aliases (#3)
* feat: prune refs on fetch

* feat: base git aliases

feat: aliases
2022-11-19 11:29:45 -05:00

42 lines
677 B
Text

################
# TMUX-related #
################
# Lists all sessions
alias ts="tmux ls"
# Attaches to session with name $1
alias ta="tmux attach -t $1"
# Create new session with provided name.
alias tm="tmux new -s $1"
###############
# VIM-related #
###############
# 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"