Skip to main content
  1. Posts/

Effortless Kitty Configuration Reloads

··101 words·1 min·
Table of Contents

Techniques

  • Instead of restarting your whole terminal you can use the shortcut Control+Shift+F5 ( kitty’s documentation on this)
  • Or have kitty reload when you save your config file in vim (shown below)

In vimscript:

autocmd bufwritepost ~/.config/kitty/kitty.conf :silent !kill -SIGUSR1 $(pgrep kitty)

In lua:

autocmd("BufWritePost", {
	pattern = vim.fn.expand("$HOME/.config/kitty/kitty.conf"),
	command = "silent !kill -SIGUSR1 $(pgrep kitty)",
})

Other Useful Resources
#


Related #

To reload tmux config in a similar way:

autocmd bufwritepost ~/.tmux.conf :silent !tmux source-file ~/.tmux.conf ; tmux display-message "Reloaded ~/.tmux.conf\!"