This repository has been archived on 2024-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/bin/tmux-save-buffer
2019-12-31 10:15:01 -06:00

8 lines
177 B
Bash
Executable file

#!/usr/bin/env bash
sess="$1"; shift
d="$(date +%Y-%m-%d_%H-%M-%S)"
f="${HOME}/${d}.${sess}.tmux-buffer.log"
touch "$f"
chmod 600 "$f"
tmux capture-pane -pS -1000000000 > "$f"