mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 18:29:47 +01:00
parent
821299e90e
commit
58aa667e28
1 changed files with 5 additions and 3 deletions
|
@ -8,6 +8,8 @@ let
|
|||
|
||||
tomlFormat = pkgs.formats.toml { };
|
||||
|
||||
starshipCmd = "${config.home.profileDirectory}/bin/starship";
|
||||
|
||||
in {
|
||||
meta.maintainers = [ maintainers.marsam ];
|
||||
|
||||
|
@ -90,19 +92,19 @@ in {
|
|||
|
||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||
if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then
|
||||
eval "$(${cfg.package}/bin/starship init bash)"
|
||||
eval "$(${starshipCmd} init bash)"
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||
if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then
|
||||
eval "$(${cfg.package}/bin/starship init zsh)"
|
||||
eval "$(${starshipCmd} init zsh)"
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.fish.promptInit = mkIf cfg.enableFishIntegration ''
|
||||
if test "$TERM" != "dumb" -a \( -z "$INSIDE_EMACS" -o "$INSIDE_EMACS" = "vterm" \)
|
||||
eval (${cfg.package}/bin/starship init fish)
|
||||
eval (${starshipCmd} init fish)
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue