tmux-plugins / tmux-logging

Easy logging and screen capturing for Tmux.
MIT License
1.05k stars 114 forks source link

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

Open xiangjjj opened 3 years ago

xiangjjj commented 3 years ago

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'
xiangjjj commented 3 years ago

it works after a reboot.

xiangjjj commented 3 years ago

it stopped working again. seems to be quite random.

ShibaInu0413 commented 2 years ago

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

alxbnct commented 2 years ago

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

xai commented 2 years ago

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.