feat(c5): prune old tmux logs and share pipe-pane helper
Extract the tmux pipe-pane setup into functions/_tmux_pipe_log.fish, called by both conf.d/tmux-logging.fish (startup) and __fish_config_sync_logging (C5 re-enable). The helper prunes the oldest tmux_*.log files by mtime to stay within SCROLLBACK_HISTORY_MAX_FILES, matching the paru/yay wrappers. Uses 'command ls' to bypass the eza ls shadow, which injects OSC-8 hyperlink escapes into paths and corrupted the filenames passed to rm.
This commit is contained in:
+3
-1
@@ -1697,7 +1697,9 @@ The tmux capture starts automatically when fish launches inside any tmux
|
||||
pane ($TMUX is set). It uses tmux's native pipe-pane to stream all pane
|
||||
output directly to disk without an intermediate process. Each fish shell
|
||||
session gets its own log file; a new log is created on each shell start
|
||||
(including exec fish and new splits).
|
||||
(including exec fish and new splits). Before each new log, the oldest
|
||||
tmux_*.log files are pruned (by modification time) to keep the total within
|
||||
SCROLLBACK_HISTORY_MAX_FILES, matching the paru/yay wrapper behaviour.
|
||||
|
||||
Logging coordination via sentinel file
|
||||
|
||||
|
||||
Reference in New Issue
Block a user