Skip to content

Instantly share code, notes, and snippets.

View Marcel-G's full-sized avatar
🌚

Marcel Gleeson Marcel-G

🌚
View GitHub Profile
@UrsaDK
UrsaDK / Terminal integration with macOS appearance.md
Last active June 2, 2023 05:35
Make command line tools respect macOS appearance

MacOS dark mode & command line tools

  1. Beta version of iTerm2 has built-in support for system appearance and will change themes in sync with macOS;
  2. Setup dark-mode-notify to launch on start and call a custom shell script (eg: appearance-change.sh) when appearance changes;
  3. 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'))