- Beta version of iTerm2 has built-in support for system appearance and will change themes in sync with macOS;
- Setup dark-mode-notify to launch on start and call a custom shell script (eg: appearance-change.sh) when appearance changes;
- Update the script as required
NOTE:
- neovim v0.8.0+ can issue self referencing commands. For example, try putting this into your
init.lua
to prevent nested vim instances when using built-in terminal:vim.env.EDITOR = string.format('nvim --server %s --remote --', vim.api.nvim_get_vvar('servername'))
- A single command can be executed in all instances of neovim using the vollowing shell function:
in_all_nvim() { : "${1:?Missing required argument: cmd}" ls "${XDG_RUNTIME_DIR:-${TMPDIR}nvim.${USER}}"/*/nvim.*.0 \ | xargs -I SERVER /usr/local/bin/nvim --server SERVER --remote-send "<cmd>${1}<cr>" }
- The use of
<cmd>
, rather than:
, when sending a command to vim, ensures that the command is executed without affecting the user's current mode. This avoid a flickering effect if the user is not in Normal mode.
- The use of