Fix tmux save buffer... mostly

This commit is contained in:
Daniel Flanagan 2020-04-09 22:09:00 -05:00
parent 2e513e0e80
commit 092916966f
Signed by: lytedev
GPG Key ID: 5B2020A0F9921EF4
2 changed files with 7 additions and 3 deletions

View File

@ -63,7 +63,7 @@ set -g status-left-length 200
set -g status-left "#[fg=colour7]#(~/.config/dotfiles/bin/tmux-session-list #S)"
set -g message-style "fg=colour7 bg=colour18"
bind-key O display-message "#(tmux-save-buffer #S)"
bind-key O display-message "#(~/.config/dotfiles/bin/tmux-save-buffer #S)"
# pane split line colors
set -g pane-active-border-style bg=black,fg=blue
@ -155,3 +155,5 @@ run "~/.config/tmux/plugins/tpm/tpm"
# refresh-client -S
unbind-key C-p
set -g @resurrect-hook-pre-restore-pane-processes 'tmux switch-client -n && tmux kill-session -t 0'

View File

@ -1,6 +1,8 @@
#!/usr/bin/env sh
prelude
. ~/.config/dotfiles/bin/prelude
echo "${USER_LOGS_PATH}"
sess="$1"; shift
d="$(date +%Y-%m-%d_%H-%M-%S)"
@ -8,4 +10,4 @@ f="${USER_LOGS_PATH}/${d}.${sess}.tmux-buffer.log"
touch "$f"
chmod 600 "$f"
tmux capture-pane -pS -1000000000 > "$f"
echo "$f"
echo "Saved output to $f"