#shell
11 pages tagged shell.
macOS CLI
Comprehensive macOS terminal reference covering file management, processes, networking, Homebrew, defaults, diskutil, launchctl, pbcopy/pbpaste, open, say, and power-user recipes.
subprocess
Run external commands from Python with subprocess. Covers run vs Popen, capture_output, streaming, pipes, timeouts, env/cwd overrides, and shlex quoting safety.
shellcheck
Catch quoting bugs, missing checks, and POSIX portability mistakes in shell scripts. Covers every flag, severity levels, inline directives, CI/pre-commit integration, and the most common rules.
Pipes
An operating-system primitive that streams one process's stdout into another's stdin, letting small composable tools build large data flows.
fish
Comprehensive fish shell reference covering syntax, variables, functions, abbreviations, completions, config files, path management, prompt customization, Fisher plugins, fish 4.x features (Rust rewrite), and migration from bash/zsh.
Claude Code Hooks
Automate Claude Code lifecycle events with shell hooks — PreToolUse, PostToolUse, UserPromptSubmit, Notification, Stop, SubagentStop, and PreCompact. Covers configuration, environment variables, JSON I/O, exit codes, and blocking examples.
Bash
Comprehensive Bash scripting reference covering variables, parameter expansion, control flow, functions, arrays, string manipulation, arithmetic, traps, process substitution, and the Bash 5.3 in-shell command substitution forms.
Bash Redirection & Pipes
stdin, stdout, stderr redirection operators and pipeline patterns in bash.
Python One-Liners
Useful Python one-liners runnable directly from the shell with python -c or python -m. No file creation needed.
macOS
Command-line tools, system utilities, Homebrew, Finder tricks, and macOS-specific development workflows.
Linux
Command-line tools, shell scripting, networking, system administration, and data extraction for Linux.