Better starship config (#4)

This commit is contained in:
Christoph Hollizeck 2024-04-04 12:54:01 +02:00 committed by GitHub
commit 084f00f3b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 55 additions and 48 deletions

View file

@ -25,7 +25,6 @@ in {
enable = true;
shellInit = "
zoxide init fish | source
starship init fish | source
direnv hook fish | source
source ~/.config/op/plugins.sh
";

View file

@ -13,8 +13,15 @@ in {
enable = mkBoolOpt true "Whether or not to enable starship shell";
};
config = mkIf cfg.enable {
programs.starship = {
config =
mkIf cfg.enable {
programs = {
fish.shellInit = "
starship init fish | source
";
starship = {
enable = true;
enableTransience = true;
settings = {
@ -63,4 +70,5 @@ in {
};
};
};
};
}