Skip to content

daft activate

Activate daft in this shell

Description

Automatically adds the daft shell-init line to your shell configuration file.

This enables automatic cd into new worktrees when using daft commands.

The command will:

  1. Detect your shell (bash, zsh, or fish)
  2. Find the appropriate config file (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish)
  3. Check if daft is already configured (won't add duplicates)
  4. Create a backup of your config file
  5. Append the shell-init line

Examples: daft activate # Interactive activation with confirmation daft activate --force # Skip confirmation and re-add if already configured daft activate --dry-run # Show what would be done without making changes

Usage

daft activate [OPTIONS]

Options

OptionDescriptionDefault
-f, --forceSkip confirmation and re-add if already configured
--dry-runShow what would be done without making changes

Global Options

OptionDescription
-h, --helpPrint help information
-V, --versionPrint version information

See Also

Released under MIT or Apache-2.0.