-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.toml
More file actions
35 lines (32 loc) · 1.21 KB
/
config.example.toml
File metadata and controls
35 lines (32 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Example global configuration file for wt (worktree CLI)
#
# This file should be placed at:
# - $XDG_CONFIG_HOME/wt/config.toml (if XDG_CONFIG_HOME is set)
# - ~/.config/wt/config.toml (default)
#
# All configuration is optional. If not specified, defaults will be used.
# Location where worktrees will be created
# Default: ~/projects/worktrees
# Environment variable WORKTREE_BASE_DIR overrides this setting
worktrees_location = "~/projects/worktrees"
# Files to copy from main repository to new worktrees
# These files are not tracked by git but may be needed in worktrees
# Supports glob patterns
# Local project config adds to this list (doesn't replace it)
copy_files = [
".env",
".env.local",
"*.pem",
"*.key",
"config/secrets/*"
]
# Tmux windows configuration - creates named windows with optional commands
# When configured, new worktrees will create tmux sessions with these windows
# Empty command creates a plain terminal window
# Local project config adds to this list (doesn't replace it)
tmux_windows = [
{ name = "editor", command = "nvim ." },
{ name = "server", command = "npm run dev" },
{ name = "tests", command = "npm run test:watch" },
{ name = "terminal", command = "" }
]