Skip to content

daft shortcuts

Manage command shortcut symlinks

Description

Manage shortcut symlinks for daft commands.

Shortcuts provide short aliases for frequently used commands:

  • Git style: gwtclone, gwtco, gwtcb, gwtprune, gwtcarry, gwtfetch, gwtinit, gwtbd
  • Shell style: gwco, gwcob
  • Legacy style: gclone, gcw, gcbw, gprune

Default-branch shortcuts (gwtcm, gwtcbm, gwcobd, gcbdw) are available via shell integration only (daft shell-init).

Examples: daft setup shortcuts # Show current status daft setup shortcuts list # List all shortcut styles daft setup shortcuts enable git # Enable git-style shortcuts daft setup shortcuts disable legacy # Disable legacy shortcuts daft setup shortcuts only shell # Enable only shell shortcuts

Usage

daft shortcuts

Subcommands

list

List all shortcut styles and their aliases

daft shortcuts list

status

Show currently installed shortcuts (default)

daft shortcuts status

enable

Enable a shortcut style (creates symlinks)

daft shortcuts enable [OPTIONS] <STYLE>

Arguments

ArgumentDescriptionRequired
<STYLE>The style to enable (git, shell, or legacy)Yes

Options

OptionDescriptionDefault
--install-dir <INSTALL_DIR>Override installation directory
--dry-runPreview without making changes

disable

Disable a shortcut style (removes symlinks)

daft shortcuts disable [OPTIONS] <STYLE>

Arguments

ArgumentDescriptionRequired
<STYLE>The style to disable (git, shell, or legacy)Yes

Options

OptionDescriptionDefault
--install-dir <INSTALL_DIR>Override installation directory
--dry-runPreview without making changes

only

Enable only the specified style (disables others)

daft shortcuts only [OPTIONS] <STYLE>

Arguments

ArgumentDescriptionRequired
<STYLE>The style to enable exclusively (git, shell, or legacy)Yes

Options

OptionDescriptionDefault
--install-dir <INSTALL_DIR>Override installation directory
--dry-runPreview without making changes

Global Options

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

See Also

Released under MIT or Apache-2.0.