Custom shell configuration and utility scripts by @und1sk0.
This repository provides a highly-opinionated .zshrc setup tailored for macOS (Intel & Apple Silicon) with useful defaults, security-minded git helpers, AWS shortcuts, and quality-of-life functions for everyday development and operations work.
- Oh-My-Zsh Base with randomized themes, Git plugin, and
vimode. - macOS Path Handling
- Dynamically adjusts
$PATHfor macOS Sonoma (14.x) and Sequoia (15.x). - Adds Apple Silicon support with
/opt/homebrew/bin.
- Dynamically adjusts
- Convenient Aliases
- Shortcuts for Git, Terraform (
tfa,tfp, etc.), Kubernetes (k,kd,kp), and system tools. vzto edit and reload.zshrcinstantly.
- Shortcuts for Git, Terraform (
- Git Safety Nets
gpandgpsupprevent accidental pushes tomainormaster.prunehelper cleans up stale local branches (with optional-ffor force delete).
- AWS Utilities
ssmhelper for starting AWS SSM sessions.- Default AWS profile set to
default.
- System Enhancements
- Syntax highlighting for
lessoutput. fmto extract ffmpeg metadata.- Colorized diffs with
colordiff.
- Syntax highlighting for
- Plugin Support
- Bundles
ziplugin manager for Zsh. - Auto-sources additional configs from
$HOME/.zshconfig/*.zsh.
- Bundles
- Rancher Desktop Integration β automatically manages its PATH.
Clone this repo and link the .zshrc into your home directory:
git clone https://github.com/und1sk0/skr1pts.git ~/skr1pts
cp ~/skr1pts/.zshrc ~/.zshrc
source ~/.zshrc
β οΈ This will override your existing~/.zshrc. Back it up first if you need to preserve custom settings.
-
Safe Git Push
gp # push current branch (fails if on main/master) gpsup # push and set upstream (fails if on main/master) prune # delete local branches with no remote tracking
-
Terraform
tfi # terraform init tfp # terraform plan tfa # terraform apply tfd # terraform destroy tff # terraform fmt
-
Kubernetes Contexts
k # kubectl kd # use dev context kp # use prod context
-
AWS
ssm i-1234567890abcdef0 # start SSM session
Place custom Zsh configs in ~/.zshconfig/*.zsh and they will be automatically sourced on startup.
MIT License Β© und1sk0