Scripting
18 sheets
- ScriptingOverview of the scripting and automation cheat sheets: shell, build tooling, Python and the checks that keep scripts correct. Start with Bash, keep Bash…
- antidoteantidote is a fast Zsh plugin manager. It clones plugins from Git, then generates one static file that your ~/.zshrc sources, so start-up stays quick. It can…
- BashBash is the default shell on most Linux servers and the language most homelab glue is written in. This sheet covers the syntax you reach for daily; ready-made…
- Bash RecipesCopy-paste patterns for scripts that run unattended: argument parsing, logging, locking, retries, safe temp files and parallelism. Syntax is explained in Bash…
- bashrcA commented layout for ~/.bashrc, the file Bash reads for interactive non-login shells, plus how it relates to the other startup files. Language features are…
- FishFish is an interactive shell with autosuggestions, syntax highlighting and sensible defaults out of the box, but its scripting syntax is not POSIX-compatible…
- Makemake runs recipes from a Makefile and rebuilds only what is out of date. Outside of compiling C it is a handy task runner for homelab and repo chores (make up…
- NushellNushell (nu) is a cross-platform shell where commands pass structured data (tables, records, lists) instead of text, so ls output can be filtered like a…
- Oh My ZshOh My Zsh (OMZ) is a framework of Zsh plugins, themes and library files. You can use it on its own through its installer, or load only the parts you want…
- pip and pipxpip installs Python packages into an environment; pipx installs Python command-line tools, each in its own isolated virtual environment, and puts the commands…
- Powerlevel10kPowerlevel10k (p10k) is a fast, highly configurable Zsh prompt theme with a built-in configuration wizard and an "instant prompt" that shows the prompt before…
- pre-commitpre-commit is a framework that runs linters and formatters on staged files before each git commit, using hooks pinned in a .pre-commit-config.yaml at the repo…
- Python and uvuv is a fast Python package and project manager (written in Rust) that replaces pip, venv, pip-tools, pipx and most of pyenv with one tool. This sheet covers…
- Shell ComparisonSide-by-side syntax and guidance for choosing between Bash, Zsh, Fish, Nushell and PowerShell. Read it to translate a command from one shell to another or to…
- Shell HistoryHow Bash and Zsh record, search, share and clean up command history. Settings belong in bashrc or zshrc; the OMZ history plugin gives a few aliases (Oh My Zsh).
- ShellCheck and shfmtshellcheck is a static analyser that finds quoting bugs, portability problems and common mistakes in shell scripts; shfmt is a formatter for the same scripts…
- ZshZsh is a Bourne-style shell with powerful globbing, parameter expansion and completion, and is the default login shell on macOS. This sheet covers what differs…
- zshrcA commented layout for ~/.zshrc, the file Zsh reads for every interactive shell. It ties together antidote, Oh My Zsh plugins, Powerlevel10k, history and…