nix-config/users/tacocat/shell/default.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

2023-11-05 02:44:54 +00:00
{lib, ...}: {
2023-10-21 00:49:53 +00:00
imports = [
# ./zsh.nix
2023-10-21 00:49:53 +00:00
./bash.nix
./fish.nix
2023-10-21 00:49:53 +00:00
];
2023-11-01 04:06:04 +00:00
programs.starship = {
enable = true;
2023-11-05 03:06:38 +00:00
# enableBashIntegration = true;
2023-11-01 04:06:04 +00:00
enableZshIntegration = true;
enableFishIntegration = true;
2023-11-01 04:06:04 +00:00
settings = {
add_newline = false;
format = lib.concatStrings [
# "$line_break"
"$shlvl"
"$directory"
"$git_branch"
"$git_commit"
"$git_state"
"$git_status"
"$package"
"$nix_shell"
"$cmd_duration"
2023-11-01 04:06:04 +00:00
"$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 = "";
};
2023-11-01 04:06:04 +00:00
# character = {
# success_symbol = "[%](bold green)";
# error_symbol = "[%](bold red)";
# };
};
};
2023-10-21 00:49:53 +00:00
}