2026-02-24

.bashrc

Putting the dot in the title is probably a bad idea.

#tools#short

Appends ~/.bashrc with the following content:

cat << 'NMCGI' >> ~/.bashrc
alias gw="git config --list | grep -- ^user."
alias ga="git add"
alias gc="git clone"
alias gd="git diff"
alias gds="git diff --staged"
alias gr="git remote -v"
alias gf="git fetch"
alias gp="git pull"
alias gs="git status"
alias gb="git branch"
alias gch="git checkout"
alias gsw="git switch"
alias gpuo="git push -u origin"
alias gl="git log"

alias c="clear"
alias e="emacs -nw ."
alias l="ls -lah"
alias m="make"
NMCGI

This allows me to rapidly check changed files in the terminal via:

gf;gp
gw;gr
gs
gd .
ga $_
gds

Yielding quick project/repository situational awareness.