feat(navigation): add mkcd function #21

Merged
rootiest merged 1 commits from feat/mkcd into main 2026-05-27 19:31:08 +00:00
Owner

Summary

  • Adds mkcd <dir> — creates a directory (including all missing parents via mkdir -p) and immediately cds into it
  • Colorized feedback distinguishes between newly-created and pre-existing directories
  • Full -h/--help screen matching existing function conventions
  • README updated with entry in the Directory & File Listing table

Manual Verification

  • Run mkcd /tmp/test-mkcd/nested/deep — directory tree should be created and shell should land inside deep; feedback should read ✔ Created and entered /tmp/test-mkcd/nested/deep
  • Run mkcd /tmp (existing dir) — no mkdir error; feedback should read → /tmp already exists — entered
  • Run mkcd (no args) and mkcd --help — both should print the colorized help screen
  • Run mkcd /tmp/new-dir; git init — confirm the semicolon idiom works naturally after mkcd lands you in the new directory
  • Confirm rm -rf /tmp/test-mkcd cleans up and no side effects remain
## Summary - Adds `mkcd <dir>` — creates a directory (including all missing parents via `mkdir -p`) and immediately `cd`s into it - Colorized feedback distinguishes between newly-created and pre-existing directories - Full `-h`/`--help` screen matching existing function conventions - README updated with entry in the Directory & File Listing table ## Manual Verification - [x] Run `mkcd /tmp/test-mkcd/nested/deep` — directory tree should be created and shell should land inside `deep`; feedback should read `✔ Created and entered /tmp/test-mkcd/nested/deep` - [x] Run `mkcd /tmp` (existing dir) — no mkdir error; feedback should read `→ /tmp already exists — entered` - [x] Run `mkcd` (no args) and `mkcd --help` — both should print the colorized help screen - [x] Run `mkcd /tmp/new-dir; git init` — confirm the semicolon idiom works naturally after mkcd lands you in the new directory - [x] Confirm `rm -rf /tmp/test-mkcd` cleans up and no side effects remain
rootiest added 1 commit 2026-05-27 19:30:51 +00:00
Creates a directory (including all missing parents) and immediately
cd's into it. Supports -h/--help, distinguishes new vs existing dirs
in feedback, and uses set_color for consistent colored output.
rootiest merged commit 06b9210cc5 into main 2026-05-27 19:31:08 +00:00
rootiest deleted branch feat/mkcd 2026-05-27 19:31:08 +00:00
Sign in to join this conversation.