nix/home/scripts/common/bin/tmux-save-buffer

10 lines
197 B
Text
Raw Normal View History

2023-09-05 13:52:52 -05:00
#!/usr/bin/env sh
d="$(date +%Y-%m-%d_%H-%M-%S)"
f="${USER_LOGS_PATH}/${d}.tmux-buffer.log"
mkdir -p "$(dirname "$f")"
touch "$f"
chmod 600 "$f"
tmux capture-pane -pS -1000000000 > "$f"
echo "$f"