Skip to content
daniel@MacBookPro:~

tag

#bash

15 posts

Shell & TerminalHow-To September 23, 2026 3 min read

How to Debug Shell Scripts With set -x and ShellCheck

A complete walkthrough of the two genuinely essential shell scripting debugging tools — one that traces exactly what a script actually executes, and one that catches whole categories of bugs before the script ever runs.

#howto#debugging#shellcheck
Read more
Shell & TerminalHow-To September 22, 2026 3 min read

How to Set Up Shell Aliases and Functions Properly

A complete walkthrough of the actual difference between an alias and a function, when each one is the right tool, and how to avoid the specific mistakes that make aliases behave unpredictably.

#howto#aliases#functions
Read more
Shell & TerminalFix September 10, 2026 3 min read

Fixing Shell History That Doesn't Persist or Save Correctly

Commands from an earlier session seem to vanish, or history from multiple open terminals overwrites itself instead of combining. Here's how history file writing actually works, and the specific settings that fix each symptom.

#fix#history#bash
Read more
Shell & TerminalFix September 5, 2026 3 min read

Fixing Slow Shell Startup Time in Bash or Zsh

Opening a new terminal tab takes a visibly annoying second or two before you get a prompt. Here's how to actually find which specific line in your config is responsible, rather than guessing.

#fix#performance#bash
Read more
Shell & TerminalDeep Dive September 1, 2026 2 min read

How Tab Completion Actually Works in Bash and Zsh

Pressing Tab and getting a sensible list of filenames, commands, or flags looks simple from the outside. Underneath, it's a programmable system matching the word you're typing against rules specific to the command you're running.

#deep-dive#completion#bash
Read more
Shell & TerminalDeep Dive August 30, 2026 3 min read

How Shell Prompt Customization Actually Works

That colorful prompt showing your git branch, exit code, and current directory isn't a separate program running alongside your shell — it's a string your shell re-evaluates before every single command.

#deep-dive#prompt#bash
Read more
Shell & TerminalDeep Dive August 27, 2026 3 min read

How Shell Expansion and Globbing Actually Work

By the time a command you typed actually runs, the shell has already rewritten it — expanding variables, substituting command output, and turning wildcard patterns into real filenames. Here's the exact order that happens in.

#deep-dive#bash#globbing
Read more