Fix tmux save buffer... mostly
This commit is contained in:
parent
2e513e0e80
commit
092916966f
|
@ -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 status-left "#[fg=colour7]#(~/.config/dotfiles/bin/tmux-session-list #S)"
|
||||||
set -g message-style "fg=colour7 bg=colour18"
|
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
|
# pane split line colors
|
||||||
set -g pane-active-border-style bg=black,fg=blue
|
set -g pane-active-border-style bg=black,fg=blue
|
||||||
|
@ -155,3 +155,5 @@ run "~/.config/tmux/plugins/tpm/tpm"
|
||||||
# refresh-client -S
|
# refresh-client -S
|
||||||
|
|
||||||
unbind-key C-p
|
unbind-key C-p
|
||||||
|
|
||||||
|
set -g @resurrect-hook-pre-restore-pane-processes 'tmux switch-client -n && tmux kill-session -t 0'
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
prelude
|
. ~/.config/dotfiles/bin/prelude
|
||||||
|
|
||||||
|
echo "${USER_LOGS_PATH}"
|
||||||
|
|
||||||
sess="$1"; shift
|
sess="$1"; shift
|
||||||
d="$(date +%Y-%m-%d_%H-%M-%S)"
|
d="$(date +%Y-%m-%d_%H-%M-%S)"
|
||||||
|
@ -8,4 +10,4 @@ f="${USER_LOGS_PATH}/${d}.${sess}.tmux-buffer.log"
|
||||||
touch "$f"
|
touch "$f"
|
||||||
chmod 600 "$f"
|
chmod 600 "$f"
|
||||||
tmux capture-pane -pS -1000000000 > "$f"
|
tmux capture-pane -pS -1000000000 > "$f"
|
||||||
echo "$f"
|
echo "Saved output to $f"
|
||||||
|
|
Reference in a new issue