Navigate to camp directories
Navigate within the camp using shortcuts.
Usage patterns: camp go Toggle between camp root and last location camp go --root Jump to camp root (ignore toggle) camp go t Jump to last visited location (cd - equivalent) camp go p Jump to projects/ camp go f Jump to festivals/ camp go design Jump to an exact pin name camp go p api Fuzzy search projects/ for "api"
Toggle behavior (no args):
- From anywhere: jump to camp root, save current location
- From camp root: jump back to saved location
Toggle keyword (t / toggle):
- Jump to the last visited location regardless of where you are
- Repeated calls alternate between two locations (like cd -)
Pins:
- Create a named pin with 'camp pin [path]'
- Jump to an exact pin with 'camp go ' or 'cgo '
- Pin jumps save your current location first, so 'camp go t' or 'cgo t' can bounce back to where you came from
The --print flag outputs just the path for shell integration: cd "$(camp go p --print)"
The -c flag runs a command from the directory without changing to it: camp go p -c ls List contents of projects/ camp go f -c fest status Run fest status from festivals/
Or use the cgo shell function for instant navigation: cgo Toggle between root and last location cgo p Equivalent to: cd "$(camp go p --print)" cgo p -c ls Run ls in projects/ without changing directory
camp go [shortcut] [query...] [flags]
camp go # Toggle: root ↔ last location
camp go --root # Force jump to camp root
camp go t # Jump to last visited location (cd -)
camp go p # Jump to projects/
camp go design # Jump to exact pin "design"
camp go p api # Fuzzy find "api" in projects/
camp go p --print # Print path (for shell scripts)
cgo design # Shell jump to exact pin "design"
cgo t # Jump back after a pin jump
camp go f -c ls # List festivals/ without cd
-c, --command stringArray Run command from directory (can be repeated for args)
-h, --help help for go
-l, --list List available sub-shortcuts for a project
--print Print path only (for shell integration)
--root Jump to camp root (ignore last location)
--no-color disable colored output
- camp - Manage your camps and the projects and festivals inside them