move to iterm script & add function to update nvim theme

This commit is contained in:
Gabriel Augendre 2024-11-17 11:44:09 +01:00
parent 23872d465d
commit 9af3b97d36
2 changed files with 5 additions and 7 deletions

View file

@ -0,0 +1,5 @@
function update_nvim_theme --description 'Update neovim theme with light/dark mode' --argument theme
for addr in /var/folders/7r/l55lwv013hl_g8gc971k7kgw0000gn/T/nvim.gaugendre/**/*
nvim --server $addr --remote-send ":set background=$theme <cr>"
end
end

View file

@ -1,7 +0,0 @@
function update_theme --on-variable macOS_Theme
if [ "$macOS_Theme" = "dark" ]
yes | fish_config theme save "Catppuccin Mocha"
else if [ "$macOS_Theme" = "light" ]
yes | fish_config theme save "Catppuccin Latte"
end
end