Skip to content
My GitHub Profile My Twitter Profile

[My MacOS] Aliases and shortcuts


# General use
alias cat='/opt/homebrew/bin/bat'
alias catn='/bin/cat'
alias catnl='/bin/bat --paging=never'
alias vim='/opt/homebrew/bin/nvim'
alias vimn='/bin/vim'
alias t='/opt/homebrew/bin/tmux'
alias c='/usr/bin/clear'

# Git
alias g='git'
alias gaa='git add -A'
alias gst='git status'
alias gpull='git pull'
alias gup='git fetch && git rebase'
alias gpush='git push'
alias gc='git commit -m'
alias gca='git commit -v -a'
alias gco='git checkout'
alias gcm='git checkout master'
alias gb='git branch'
alias gba='git branch -a'
alias gcount='git shortlog -sn'
alias gcp='git cherry-pick'
alias glg='git log --stat --max-count=5'
alias glgg='git log --graph --max-count=5'
alias gss='git status -s'
alias ga='git add'
alias gm='git merge'
alias grh='git reset HEAD'
alias grhh='git reset HEAD --hard'
alias gcb="git switch -c $1"