Skip to main content

ZSH Configurations

––– views

ZSH configurations using oh-my-zsh

Theme

I use oh-my-zsh for the installation

.zshrc
ZSH_THEME="spaceship"

Plugins

.zshrc
plugins=(
    git
    autojump
    yarn
    gh
    zsh-syntax-highlighting
    zsh-autosuggestions
)

Aliases

.zshrc
# VSCode Alias
alias e="code ."
alias r="code -r ."
 
# Development Alias
alias s="BROWSER=none yarn start"
alias sb="BROWSER=none yarn sb"
alias b="yarn build"
alias d="yarn dev"
alias t="yarn typecheck"
alias bs="b && s"
alias gprm='git pull --rebase origin $(git_main_branch)'
 
# GitHub Alias
alias gprc="gh pr create"
alias gprw="gh pr create -w --body-file .github/pull_request_template.md"
alias gprf="gh pr create -f"
alias gis="gh issue create"
alias gism="gh issue create -a 'theodorusclarence'"
 
# Flow Alias
alias gcmr="bash /Users/Clarence/flow/main-and-delete-branch.sh"
alias emr="bash /Users/Clarence/flow/git-emergency.sh"
alias vc="/bin/bash '/Users/Clarence/flow/vc.sh'"
alias gv="gh repo view --web"
alias prv="gh pr view --web"
 
# Captive Apple
# @see https://github.com/unixorn/tumult.plugin.zsh/blob/main/bin/unfuck-captive-portal
alias captive='exec open -a "Safari" "http://captive.apple.com/hotspot-detect.html"'