Skip to content

Zsh

Zsh shell configuration symlinked to ~/.zshrc.

Location

FileSymlinked to
config/zsh/.zshrc~/.zshrc

Environment

VariableValueDescription
ZSH~/.oh-my-zshOh My Zsh installation path
HISTSIZE / SAVEHIST10000Shell history size
HISTFILE~/.zsh_historyHistory file location
HIST_STAMPSyyyy-mm-ddDate format in history output
LC_ALL / LANGen_US.UTF-8Locale
EDITORvimDefault editor
XDG_CONFIG_HOME~/.configXDG config base directory

Theme

zsh
ZSH_THEME="kevin-de-benedetti"

See Oh My Zsh theme for details.

Plugins

PluginDescription
aliasesManage shell aliases
brewHomebrew completions and helpers
colored-man-pagesColorized man output
dockerDocker completions
docker-composeDocker Compose completions
ghGitHub CLI completions
gitGit aliases and completions
gitignoreFetch .gitignore templates
rsyncRsync aliases
sudoDouble-tap ESC to prepend sudo

Aliases

Shell utilities

AliasCommandDescription
cscheat_glowRender a cheat sheet with glow
hshistory | grepSearch history
hsihistory | grep -iCase-insensitive history search
dspdocker system prune -a -fPrune all unused Docker data
ladlazydockerOpen Lazydocker TUI
laglazygitOpen Lazygit TUI
pubipdig +short txt ch whoami.cloudflare @1.0.0.1Print public IP
bcuUpgrade all outdated casksReinstall outdated Homebrew casks

Kubernetes

AliasCommand
kkubectl
kckubectx
knkubens
kdkubectl delete
kdesckubectl describe
kekubectl exec
kexpkubectl explain
kgkubectl get
kgpwwatch 'kubectl get pod'
kgrkubectl get pod with resource columns
klkubectl logs
kcertkubectl-cert_manager
kcnpgkubectl-cnpg
kdfpvkubectl-df_pv
kescapekubectl-kubescape
kkrewkubectl-krew
kktopkubectl-ktop
kkyvernokubectl-kyverno
kneatkubectl-neat
ksternkubectl-stern
kvskubectl-view_secret

macOS only

AliasDescription
armSwitch to ARM64 (Apple Silicon) shell
intelSwitch to x86_64 (Rosetta) shell

Sourced files

Loaded in order at the end of .zshrc:

FileDescription
~/.config/dotfiles/env.shEnvironment variables
~/.config/dotfiles/functions.shUtility functions
~/.config/dotfiles/functions-completion.shCompletion helpers (optional)
~/.config/dotfiles/functions-dso.shDSO-specific functions (optional)
~/.config/dotfiles/env.local.shMachine-specific env vars (not tracked)
~/.zshrc.localMachine-specific zsh config (not tracked)

Local overrides

Machine-specific or private configuration goes in files that are not tracked by git:

  • ~/.config/dotfiles/env.local.sh — Extra environment variables, API keys
  • ~/.zshrc.local — Aliases, PATH additions, functions specific to this machine