Appearance
daft setup
Add daft shell integration to your shell config
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
- Install git-style shortcuts (gwtco, gwtcb, etc.)
Usage
daft setup [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 |
Examples
bash
# Interactive setup with confirmation
daft setup
# Skip confirmation
daft setup --force
# Preview without making changes
daft setup --dry-runSubcommand: shortcuts
Manage command shortcut symlinks.
Usage
daft setup shortcuts [SUBCOMMAND]Without a subcommand, shows the current shortcut installation status.
Shortcut Styles
| Style | Shortcuts |
|---|---|
git | gwtclone, gwtinit, gwtco, gwtcb, gwtbd, gwtls, gwtprune, gwtcarry, gwtfetch |
shell | gwco, gwcob |
legacy | gclone, gcw, gcbw, gprune |
Default-branch shortcuts (gwtcm, gwtcbm, gwcobd, gcbdw) are shell-only functions provided by daft shell-init, not managed here.
shortcuts list
List all shortcut styles and their aliases.
daft setup shortcuts listshortcuts status
Show currently installed shortcuts (default when no subcommand given).
daft setup shortcuts statusshortcuts enable
Enable a shortcut style by creating symlinks.
daft setup shortcuts enable <STYLE> [OPTIONS]| Argument / Option | Description |
|---|---|
<STYLE> | Style to enable (git, shell, legacy) |
--install-dir <DIR> | Override installation directory |
--dry-run | Preview without making changes |
shortcuts disable
Disable a shortcut style by removing its symlinks.
daft setup shortcuts disable <STYLE> [OPTIONS]| Argument / Option | Description |
|---|---|
<STYLE> | Style to disable (git, shell, legacy) |
--install-dir <DIR> | Override installation directory |
--dry-run | Preview without making changes |
shortcuts only
Enable only the specified style and disable all others.
daft setup shortcuts only <STYLE> [OPTIONS]| Argument / Option | Description |
|---|---|
<STYLE> | Style to enable exclusively (git, shell, legacy) |
--install-dir <DIR> | Override installation directory |
--dry-run | Preview without making changes |
Examples
bash
# See what's installed
daft setup shortcuts status
# List all available styles
daft setup shortcuts list
# Enable git-style shortcuts
daft setup shortcuts enable git
# Switch to shell-style only
daft setup shortcuts only shell
# Preview changes
daft setup shortcuts only git --dry-run