only attemtpt to source starship if we actually enable it
This commit is contained in:
parent
d69a1b81fa
commit
73de968231
|
@ -25,7 +25,6 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellInit = "
|
shellInit = "
|
||||||
zoxide init fish | source
|
zoxide init fish | source
|
||||||
starship init fish | source
|
|
||||||
direnv hook fish | source
|
direnv hook fish | source
|
||||||
source ~/.config/op/plugins.sh
|
source ~/.config/op/plugins.sh
|
||||||
";
|
";
|
||||||
|
|
|
@ -13,8 +13,15 @@ in {
|
||||||
enable = mkBoolOpt true "Whether or not to enable starship shell";
|
enable = mkBoolOpt true "Whether or not to enable starship shell";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config =
|
||||||
programs.starship = {
|
mkIf cfg.enable {
|
||||||
|
programs = {
|
||||||
|
fish.shellInit = "
|
||||||
|
|
||||||
|
starship init fish | source
|
||||||
|
";
|
||||||
|
|
||||||
|
starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableTransience = true;
|
enableTransience = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -63,4 +70,5 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue