From 2dc699c79d581ce25b6ad15b4698b5ba940390bb Mon Sep 17 00:00:00 2001 From: Matthew Ryan Dillon Date: Sun, 14 Dec 2025 16:35:35 -0500 Subject: [PATCH] nb: add cd subcommand --- home/bin/executable_nb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/bin/executable_nb b/home/bin/executable_nb index 5fcfbce..8c05271 100644 --- a/home/bin/executable_nb +++ b/home/bin/executable_nb @@ -16,6 +16,7 @@ nb - Notebook management tool Usage: nb Commands: + cd Change directories save Commit changes with timestamp sync Save, fetch, and push changes log Show commit log @@ -26,6 +27,9 @@ EOF } case "$1" in + cd) + exec "$SHELL" + ;; save) jj diff -r @ --summary | grep -q . && jj commit -m "$(date +"%Y-%m-%dT%H:%M:%S%z")" && jj tug || true ;;