HERDR HANDBOOK · VI
Configuration
Tùy chỉnh config.toml, prefix, keybindings, session resume và remote behavior mà không phá workflow mặc định.
1. Config path
Trên Linux, config thường nằm tại:
~/.config/herdr/config.toml
2. Xuất config mặc định
mkdir -p ~/.config/herdr
herdr --default-config > ~/.config/herdr/config.toml
Không cần config để chạy
Herdr có defaults. Chỉ tạo file khi bạn thật sự muốn
customize.
3. 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"
Prefix cũng có thể là mảng nếu bạn muốn nhiều prefix keys.
4. Session restore option
[session]
resume_agents_on_restore = true
5. Remote SSH management
[remote]
manage_ssh_config = true
Mặc định Herdr có thể thêm keepalive fallback và connection reuse riêng cho remote attach.
6. Apply config
herdr server reload-config
# Nếu custom keybindings cũ gây rối
herdr config reset-keys