Appearance
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:
- Detect your shell (bash, zsh, or fish)
- Find the appropriate config file (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish)
- Check if daft is already configured (won't add duplicates)
- Create a backup of your config file
- 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
| Option | Description | Default |
|---|---|---|
-f, --force | Skip confirmation and re-add if already configured | |
--dry-run | Show what would be done without making changes |
Global Options
| Option | Description |
|---|---|
-h, --help | Print help information |
-V, --version | Print version information |