Skip to content

Instantly share code, notes, and snippets.

@ComFreek
Last active January 21, 2021 13:15
Show Gist options
  • Save ComFreek/896e2e7573fbfa98e31a92334954fd75 to your computer and use it in GitHub Desktop.
Save ComFreek/896e2e7573fbfa98e31a92334954fd75 to your computer and use it in GitHub Desktop.
WeeChat: automatically save your configuration.md

Automatically save your WeeChat configuration and buffer list every day (24h have 86400000 milliseconds):

/trigger add autosave_config_timer timer 86400000;0;0 ""  "" "/mute /save"
/trigger add autosave_join_timer timer 86400000;0;0 ""  "" "/mute /autojoin --rune"
/trigger add autosave_layout_timer timer 86400000;0;0 ""  "" "/mute /layout store"

Upon an upgrade, restore:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment