feat(navigation): add mkcd function #21
Reference in New Issue
Block a user
Delete Branch "feat/mkcd"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mkcd <dir>— creates a directory (including all missing parents viamkdir -p) and immediatelycds into it-h/--helpscreen matching existing function conventionsManual Verification
mkcd /tmp/test-mkcd/nested/deep— directory tree should be created and shell should land insidedeep; feedback should read✔ Created and entered /tmp/test-mkcd/nested/deepmkcd /tmp(existing dir) — no mkdir error; feedback should read→ /tmp already exists — enteredmkcd(no args) andmkcd --help— both should print the colorized help screenmkcd /tmp/new-dir; git init— confirm the semicolon idiom works naturally after mkcd lands you in the new directoryrm -rf /tmp/test-mkcdcleans up and no side effects remain