Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xiangjjj opened this issue Oct 19, 2021 · 5 comments
Open

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

xiangjjj opened this issue Oct 19, 2021 · 5 comments

Comments

@xiangjjj
Copy link

xiangjjj commented Oct 19, 2021

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
Copy link
Author

it works after a reboot.

@xiangjjj
Copy link
Author

it stopped working again. seems to be quite random.

@xiangjjj xiangjjj reopened this Oct 20, 2021
@ShibaInu0413
Copy link

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

@alxbnct
Copy link

alxbnct commented May 7, 2022

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
Copy link

xai commented Sep 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants