banner

Prerequisites

Get applications:

  • VSCode
  • Rectangle
  • UnnaturalScrollWheels
  • Arc
  • Homebrew
  • Obsidian
  • Discord
  • Logic Pro + Final Cut Pro from app store
# install dev tools
sudo xcode-select --install
# install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> /Users/zenbot/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> /Users/zenbot/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"

Terminal utilities

  • eza (better ls)
  • fzf (fuzzy finder)
  • zsh-autosuggestions (autosuggest on type)
  • bat (better cat’)
  • pfetch-rs (login message and system info)
  • starship (terminal bar)

Install all: brew install eza fzf zsh-autosuggestions bat pfetch-rs starship

Terminal aliases

prettify

alias vi='vim'
alias ls='eza'
alias cat='bat'
function chpwd() {
  ls
}

git

alias ga='git add . && git status'
alias gc='git commit -m'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gp='git push'
alias gb='git branch'
alias gs='git status'
alias gpsup='git push --set-upstream origin $(git_current_branch)'
alias gst='git stash'
alias gstp='git stash pop'
alias gmm='git checkout $(git_main_branch) && git pull && git switch - && git merge $(git_main_branch)' 
alias gsw='git switch -'
alias gl='git log 

sysadmin

alias dc='docker-compose'
alias dcr='docker-compose up -d --force-recreate'
alias dcl='docker-compose logs'
alias dk='docker'

alias k='kubectl'

Install fonts:

  • git clone https://github.com/64bitpandas/bencuan.me
  • cd bencuan.me
  • git submodule update --init --recursive
  • Right click fonts open with Font Book install
  • Also get a NerdFont from https://www.nerdfonts.com/font-downloads

Mac terminal profile

Starship

  • brew install starship

Full zshrc

eval "$(starship init zsh)"
source <(fzf --preview 'bat --color=always {}' --preview-window '~3' --zsh)
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
 
 
alias ls='eza'
alias cat='bat'
function chpwd() {
  ls
}
 
alias ga='git add . && git status'
alias gc='git commit -m'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gp='git push'
alias gb='git branch'
alias gs='git status'
alias gpsup='git push --set-upstream origin $(git_current_branch)'
alias gst='git stash'
alias gstp='git stash pop'
alias gmm='git checkout $(git_main_branch) && git pull && git switch - && git merge $(git_main_branch)' 
alias gsw='git switch -'
alias gl='git log --oneline --graph'
 
alias dc='docker-compose'
alias dcr='docker-compose up -d --force-recreate'
alias dcl='docker-compose logs'
alias dk='docker'
 
pfetch