From b1efeb328f6b4ac7fb155b9f18e4e95c3f2b0d92 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 17 Nov 2024 17:17:32 +0100 Subject: [PATCH] add dark/light mode functions --- dot_config/fish/private_functions/dark.fish | 4 ++++ dot_config/fish/private_functions/light.fish | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 dot_config/fish/private_functions/dark.fish create mode 100644 dot_config/fish/private_functions/light.fish diff --git a/dot_config/fish/private_functions/dark.fish b/dot_config/fish/private_functions/dark.fish new file mode 100644 index 0000000..adda9e8 --- /dev/null +++ b/dot_config/fish/private_functions/dark.fish @@ -0,0 +1,4 @@ +function dark --description 'Set shell theme to dark mode, including neovim' +yes | fish_config theme save "Catppuccin Mocha" +update_nvim_theme dark +end diff --git a/dot_config/fish/private_functions/light.fish b/dot_config/fish/private_functions/light.fish new file mode 100644 index 0000000..99d7e4f --- /dev/null +++ b/dot_config/fish/private_functions/light.fish @@ -0,0 +1,4 @@ +function light --description 'Set shell theme to light mode, including neovim' +yes | fish_config theme save "Catppuccin Latte" +update_nvim_theme light +end