tmux-logging
tmux-logging copied to clipboard
Failed to change the default logging path in `.tmux.conf`
I tried to change the default logging path as the logs are output to $HOME
instead of $HOME/.tmux
.
setw -g mode-keys vi
# smart pane switching with awareness of vim splits
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# set logging history limit
set -g history-limit 50000
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-logging'
# config tmux-logging plugin
set -g @logging-path "$HOME/.tmux"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
- I did source the new conf
tmux source ~/.tmux.conf
- tmux version: 2.6
it works after a reboot.
it stopped working again. seems to be quite random.
I also encountered the same problem, but $HOME is only valid in logging, Screen Capture and Save complete history are not
Hi, xiangdal, you don't need to reboot your computer to update the $logging_path, you can kill tmux and restart the shell, then the variable will be updated:^)
I also encountered the same problem, but $HOME is only valid in logging, Screen Capture and Save complete history are not
You can set @logging-path
, @screen-capture-path
, and @save-complete-history-path
separately.