13 lines
271 B
Bash
Executable file
13 lines
271 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
. ~/.config/dotfiles/bin/prelude
|
|
|
|
echo "${USER_LOGS_PATH}"
|
|
|
|
sess="$1"; shift
|
|
d="$(date +%Y-%m-%d_%H-%M-%S)"
|
|
f="${USER_LOGS_PATH}/${d}.${sess}.tmux-buffer.log"
|
|
touch "$f"
|
|
chmod 600 "$f"
|
|
tmux capture-pane -pS -1000000000 > "$f"
|
|
echo "Saved output to $f"
|