목차

, , , , , , ,

Herdr configuration

Herdr의 config.toml 위치, key, keybinding, theme, notification, reload와 검증 방법.

Summary

File Location

Linux / macOS: ~/.config/herdr/config.toml
Windows:         %APPDATA%\herdr\config.toml

Authoring

Generate Defaults

# 검토용으로 전체 기본 설정 출력
herdr --default-config
 
# Linux / macOS 기본 경로에 저장
mkdir -p ~/.config/herdr
herdr --default-config > ~/.config/herdr/config.toml
기존 config가 있으면 redirection으로 덮어쓰기 전에 backup한다. 현재 keybinding만 초기화하려면 전체 파일을 교체하지 말고 herdr config reset-keys를 사용한다.

Minimal Example

onboarding = false
 
[terminal]
default_shell = "zsh"
shell_mode = "auto"
new_cwd = "follow"
 
[worktrees]
directory = "~/.herdr/worktrees"
 
[theme]
name = "catppuccin"
 
[ui.toast]
delivery = "herdr"
delay_seconds = 1

Keybindings

[keys]
prefix = "ctrl+b"
goto = "prefix+g"
new_tab = "prefix+c"
next_tab = "prefix+n"
previous_tab = "prefix+p"
focus_pane_left = "prefix+h"
split_horizontal = "prefix+minus"

Custom Command

[[keys.command]]
key = "prefix+alt+g"
type = "popup"
command = "lazygit"
description = "run lazygit"
width = "80%"
height = "80%"
Custom command는 shell command를 실행한다. 출처가 불명확한 설정을 복사하지 말고 command와 인자를 검토한다.

Theme and UI

[theme]
name = "catppuccin"
auto_switch = true
light_name = "catppuccin-latte"
dark_name = "catppuccin"
 
[ui.sidebar.agents]
row_gap = 0
rows = [
  ["state_icon", "workspace", "tab"],
  ["agent"],
]

Notifications

[ui.toast]
delivery = "herdr"
delay_seconds = 1
 
[ui.toast.herdr]
position = "bottom-right"
 
[ui.sound]
path = "sounds/notification.mp3"

Remote and Session

[remote]
manage_ssh_config = true
 
[session]
resume_agents_on_restore = true

Precedence

  1. HERDR_CONFIG_PATH로 지정한 config file이 기본 platform 경로를 대체한다.
  2. 선택된 config file의 TOML 설정을 읽는다.
  3. CLI/socket API의 명시적 값이 해당 동작에서 config보다 우선한다. 예: workspace create –cwd PATH.
  4. invalid value는 safe default로 fallback되고 warning을 출력한다.

Validation

# 현재 binary가 제공하는 전체 기본값과 비교
herdr --default-config
 
# 실행 중인 server에 변경 적용
herdr server reload-config
 
# server와 client 상태 확인
herdr status
 
# keybinding section backup 후 초기화
herdr config reset-keys

Security

Troubleshooting

See Also

History