camp shell-init

Output shell initialization code

Synopsis

Output shell initialization code for your shell config.

Add to your shell config: zsh: eval "$(camp shell-init zsh)" bash: eval "$(camp shell-init bash)" fish: camp shell-init fish | source

This provides:

  • cgo function for navigation
  • Tab completion for camp commands
  • Category shortcuts (p, c, f, etc.)

The cgo function enables quick navigation: cgo Interactive picker or jump to campaign root cgo p Jump to projects/ cgo p api Fuzzy find "api" in projects/ cgo -c p ls Run "ls" in projects/ directory

camp shell-init <shell> [flags]

Examples

  # Add to ~/.zshrc
  eval "$(camp shell-init zsh)"

  # Add to ~/.bashrc
  eval "$(camp shell-init bash)"

  # Add to ~/.config/fish/config.fish
  camp shell-init fish | source

Options

  -h, --help   help for shell-init

Options inherited from parent commands

      --config string   config file (default: ~/.obey/campaign/config.yaml)
      --no-color        disable colored output
      --verbose         enable verbose output

SEE ALSO

  • camp - Campaign management CLI for multi-project AI workspaces