50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{lib, ...}: {
|
||
imports = [
|
||
# ./zsh.nix
|
||
./bash.nix
|
||
./fish.nix
|
||
];
|
||
|
||
programs.starship = {
|
||
enable = true;
|
||
# enableBashIntegration = true;
|
||
enableZshIntegration = true;
|
||
enableFishIntegration = true;
|
||
settings = {
|
||
add_newline = false;
|
||
format = lib.concatStrings [
|
||
"$shlvl"
|
||
"$directory"
|
||
"$git_branch"
|
||
"$git_commit"
|
||
"$git_state"
|
||
"$git_status"
|
||
"$package"
|
||
"$nix_shell"
|
||
"$cmd_duration"
|
||
"$line_break"
|
||
"$status"
|
||
"$character"
|
||
];
|
||
scan_timeout = 10;
|
||
git_commit.tag_disabled = false;
|
||
git_status = {
|
||
ahead = ''⇡''${count}'';
|
||
behind = ''⇣''${count}'';
|
||
diverged = ''⇕⇡''${ahead_count}⇣''${behind_count}'';
|
||
staged = "+$count";
|
||
};
|
||
nix_shell = {
|
||
format = "via [$symbol$state]($style) ";
|
||
impure_msg = "ι";
|
||
pure_msg = "ρ";
|
||
symbol = "❄️";
|
||
};
|
||
# character = {
|
||
# success_symbol = "[%](bold green)";
|
||
# error_symbol = "[%](bold red)";
|
||
# };
|
||
};
|
||
};
|
||
}
|