Skip to content

Instantly share code, notes, and snippets.

@chrisyeung1121
Created October 14, 2025 02:12
Show Gist options
  • Save chrisyeung1121/ec68435f9b321f19626eadac0442d5a8 to your computer and use it in GitHub Desktop.
Save chrisyeung1121/ec68435f9b321f19626eadac0442d5a8 to your computer and use it in GitHub Desktop.
cat > ~/.zshrc <<'ZRC'
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="agnoster" # swap to "robbyrussell" if you prefer
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# History & completion
setopt histignoredups sharehistory
HISTSIZE=5000
SAVEHIST=5000
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
# Nice ls defaults
alias ll='ls -lh --color=auto'
alias la='ls -lha --color=auto'
# Quality-of-life
alias gs='git status'
alias gp='git pull'
alias dc='docker compose'
alias ts='tailscale status'
# Color support
export TERM=xterm-256color
# Load Oh My Zsh
source $ZSH/oh-my-zsh.sh
ZRC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment