Move tide variables to a specific file

This commit is contained in:
Natsu Kagami 2023-11-08 14:48:03 +01:00
parent 93d9e820db
commit 536eec198a
Signed by: nki
GPG key ID: 55A032EB38B49ADB

View file

@ -61,11 +61,6 @@ in
end end
''; '';
} // cfg.items); } // cfg.items);
shellInit = ''
# Configure tide items
set -U tide_left_prompt_items ${concatMapStringsSep " " escapeShellArg cfg.leftItems} newline character
set -U tide_right_prompt_items ${concatMapStringsSep " " escapeShellArg cfg.rightItems} time
'';
plugins = [ plugins = [
{ {
name = "tide"; name = "tide";
@ -79,4 +74,14 @@ in
} }
]; ];
}; };
config.xdg.configFile."fish/tide/init.fish" = {
text = ''
# Configure tide items
set -U tide_left_prompt_items ${concatMapStringsSep " " escapeShellArg cfg.leftItems} newline character
set -U tide_right_prompt_items ${concatMapStringsSep " " escapeShellArg cfg.rightItems} time
'';
onChange = "fish ~/.config/fish/tide/init.fish";
};
} }