mirror of
https://github.com/Crocmagnon/dotfiles.git
synced 2024-11-24 07:28:07 +01:00
move to iterm script & add function to update nvim theme
This commit is contained in:
parent
23872d465d
commit
9af3b97d36
2 changed files with 5 additions and 7 deletions
5
dot_config/fish/private_functions/update_nvim_theme.fish
Normal file
5
dot_config/fish/private_functions/update_nvim_theme.fish
Normal 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
|
|
@ -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
|
|
Loading…
Reference in a new issue