tmux-logging icon indicating copy to clipboard operation
tmux-logging copied to clipboard

Failed to change the default logging path in `.tmux.conf`

Open xiangjjj opened this issue 3 years ago • 5 comments

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

xiangjjj avatar Oct 19 '21 18:10 xiangjjj

it works after a reboot.

xiangjjj avatar Oct 19 '21 22:10 xiangjjj

it stopped working again. seems to be quite random.

xiangjjj avatar Oct 20 '21 02:10 xiangjjj

I also encountered the same problem, but $HOME is only valid in logging, Screen Capture and Save complete history are not

ShibaInu0413 avatar Feb 19 '22 17:02 ShibaInu0413

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:^)

alxbnct avatar May 07 '22 11:05 alxbnct

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.

xai avatar Sep 05 '22 11:09 xai