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 #
- kitty documentation on this topic
- reddit post with more ideas
- vim syntax highlighting plugin for kitty (vim-kitty) a
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\!"