Configuration Precedence
Settings are resolved in the following order (highest to lowest priority):- CLI flags - Command-line arguments passed with
--config - Git local configuration - Repository-specific settings using
git config --local - Git global configuration - User-wide settings using
git config --global - YAML configuration file -
~/.config/lazyworktree/config.yaml - Built-in defaults - Sensible defaults for all settings
Configuration File Location
The default configuration file location is:--config flag:
Example Configuration
For a complete example configuration with all available options, see config.example.yaml in the source repository.Configuration Sections
Settings
All configuration settings organised by category
Themes
Built-in themes and custom theme system
Git Config
Using git config for settings
.wt Files
Repository-specific hooks and commands
Branch Naming
Branch naming conventions and templates
Custom Commands
Define custom keybindings and commands
Default Worktree Location
By default, worktrees are created in:worktree_dir setting.