mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-03-02 02:59:44 +00:00
* feat(bin): add x-visit-folders script for bulk zoxide registration * fix(bin): fix x-visit-folders usage exit code, no-op fallback, and count increment - usage() now accepts optional exit code; --help exits 0 - Remove no-op subshell cd fallback in visit_dir(), just log failure - Replace ((count++)) with count=$((count + 1)) to avoid set -e trap
513 B
513 B
x-visit-folders
Register level-1 subdirectories with zoxide so they appear in
z completions.
Usage
x-visit-folders [options] [directory]
directory– target directory (defaults to current directory)-n,--dry-run– list directories without adding them-v,--verbose– print each directory as it is visited-h,--help– show usage information
Example
x-visit-folders ~/Code/ivuorinen