การตั้งค่า

imux อ่านการตั้งค่าจากไฟล์คอนฟิก Ghostty ให้ตัวเลือกที่คุ้นเคยถ้าคุณมาจาก Ghostty

ตำแหน่งไฟล์คอนฟิก

imux ค้นหาการตั้งค่าในตำแหน่งเหล่านี้ (ตามลำดับ):

  1. ~/.config/ghostty/config
  2. ~/Library/Application Support/com.mitchellh.ghostty/config

สร้างไฟล์คอนฟิกถ้ายังไม่มี:

mkdir -p ~/.config/ghostty
touch ~/.config/ghostty/config

รูปลักษณ์

ฟอนต์

~/.config/ghostty/config
font-family = JetBrains Mono
font-size = 14

สี

~/.config/ghostty/config
# Theme (or use individual colors below)
theme = Dracula

# Custom colors
background = #1e1e2e
foreground = #cdd6f4
cursor-color = #f5e0dc
cursor-text = #1e1e2e
selection-background = #585b70
selection-foreground = #cdd6f4

แยกหน้าจอ

~/.config/ghostty/config
# Opacity for unfocused splits (0.0 to 1.0)
unfocused-split-opacity = 0.7

# Fill color for unfocused splits
unfocused-split-fill = #1e1e2e

# Divider color between splits
split-divider-color = #45475a

พฤติกรรม

Scrollback

~/.config/ghostty/config
# Number of lines to keep in scrollback buffer
scrollback-limit = 10000

Working directory

~/.config/ghostty/config
# Default directory for new terminals
working-directory = ~/Projects

การตั้งค่าแอป

การตั้งค่าในแอปพร้อมใช้งานผ่าน imux > Settings (⌘,):

โหมดธีม

  • System: ตามรูปลักษณ์ macOS
  • Light: โหมดสว่างเสมอ
  • Dark: โหมดมืดเสมอ

โหมดระบบอัตโนมัติ

ควบคุมระดับการเข้าถึง socket:

  • Off: ไม่มีการควบคุม socket (ปลอดภัยที่สุด)
  • imux processes only: อนุญาตเฉพาะโปรเซสที่เริ่มจากภายในเทอร์มินัล imux เท่านั้น
  • allowAll: อนุญาตให้โปรเซสในเครื่องใดก็ได้เชื่อมต่อ (ICC_SOCKET_MODE=allowAll, override ผ่าน env เท่านั้น)
บนเครื่องที่ใช้ร่วมกัน ควรใช้โหมด "Off" หรือ "imux processes only"

พฤติกรรมลิงก์เบราว์เซอร์

ใน Settings > Browser imux มีรายการ host สองรายการที่มีจุดประสงค์ต่างกัน:

  • Hosts to Open in Embedded Browser: ใช้กับลิงก์ที่คลิกจากเอาต์พุตเทอร์มินัล Host ในรายการนี้เปิดใน imux ส่วน host อื่นเปิดในเบราว์เซอร์เริ่มต้นของคุณ รองรับ host เดี่ยวหรือ wildcard ต่อบรรทัด (เช่น: example.com, *.internal.example)
  • HTTP Hosts Allowed in Embedded Browser: ใช้เฉพาะกับ URL แบบ HTTP (ไม่ใช่ HTTPS) Host ในรายการนี้เปิดใน imux ได้โดยไม่มีข้อความเตือน ค่าเริ่มต้นรวม localhost, 127.0.0.1, ::1, 0.0.0.0 และ *.localtest.me

Setup readiness

imux readiness indicators are the operator checklist before a long agent or remote workflow starts. They summarize whether the app can find the expected CLI tools, saved provider profiles, notification hooks, workspace folder, remote connection, and browser or source-control context.

  • Fix missing provider profiles before asking the supervisor to plan work.
  • Confirm agent CLIs run both in a normal shell and inside an imux terminal.
  • Use notification hook warnings as setup debt, not as proof that the task cannot launch.
Readiness checks do not replace review. They tell you whether the workspace is configured enough to start; files, command output, browser state, and Git state still need human verification.

ตัวอย่างคอนฟิก

~/.config/ghostty/config
# Font
font-family = SF Mono
font-size = 13

# Colors
theme = One Dark

# Scrollback
scrollback-limit = 50000

# Splits
unfocused-split-opacity = 0.85
split-divider-color = #3e4451

# Working directory
working-directory = ~/code