Professor Rossetti's Mac Terminal Configuration
Theme
Shortcuts
# Windows Git Bash, Older Macs:
code ~/.bash_profile
# Newer Macs:
code ~/.zshrc# ~/.bash_profile
#
# CONFIGURATIONS
#
# control the "prompt" message that shows up in the terminal. see also: https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html
export PS1=" --->> "
# control some colors. see also: https://osxdaily.com/2012/02/21/add-color-to-the-terminal-in-mac-os-x/
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
#
# SHORTCUTS / ALIASES
#
# listing all files in an easier to read format:
alias ll="ls -lahG"
# shortcuts for git commands:
alias gb="git branch"
alias gd="git diff"
alias gl="git log"
alias glt="git log --graph --decorate --oneline --full-history --all --simplify-by-decoration"
alias glsd="git ls-files --deleted"
alias gpom="git pull origin main"
alias gr="git remote -v"
alias gs="git status"
# hiding or showing all icons on the desktop (can be helpful for screenshare or zen modes):
alias deskhide="defaults write com.apple.finder CreateDesktop false && killall Finder"
alias deskshow="defaults write com.apple.finder CreateDesktop true && killall Finder"Last updated