2023-11-05 02:44:54 +00:00
|
|
|
|
{lib, ...}: {
|
2023-10-21 00:49:53 +00:00
|
|
|
|
imports = [
|
2023-11-13 18:37:16 +00:00
|
|
|
|
# ./zsh.nix
|
2023-10-21 00:49:53 +00:00
|
|
|
|
./bash.nix
|
2023-11-13 18:37:16 +00:00
|
|
|
|
./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;
|
2023-11-13 18:37:16 +00:00
|
|
|
|
enableFishIntegration = true;
|
2023-11-01 04:06:04 +00:00
|
|
|
|
settings = {
|
|
|
|
|
add_newline = false;
|
|
|
|
|
format = lib.concatStrings [
|
|
|
|
|
"$directory"
|
|
|
|
|
"$git_branch"
|
|
|
|
|
"$git_commit"
|
|
|
|
|
"$git_state"
|
|
|
|
|
"$git_status"
|
|
|
|
|
"$package"
|
2023-11-05 04:15:51 +00:00
|
|
|
|
"$nix_shell"
|
|
|
|
|
"$cmd_duration"
|
2023-11-20 01:27:09 +00:00
|
|
|
|
"$line_break"
|
2023-11-01 04:06:04 +00:00
|
|
|
|
"$status"
|
|
|
|
|
"$character"
|
|
|
|
|
];
|
|
|
|
|
scan_timeout = 10;
|
2023-11-05 04:15:51 +00:00
|
|
|
|
git_commit.tag_disabled = false;
|
|
|
|
|
git_status = {
|
2023-11-22 03:30:31 +00:00
|
|
|
|
ahead = ''↑''${count}'';
|
|
|
|
|
behind = ''↓''${count}'';
|
|
|
|
|
diverged = ''↕↑''${ahead_count}⇣''${behind_count}'';
|
2023-11-05 04:15:51 +00:00
|
|
|
|
staged = "+$count";
|
|
|
|
|
};
|
|
|
|
|
nix_shell = {
|
|
|
|
|
format = "via [$symbol$state]($style) ";
|
|
|
|
|
impure_msg = "ι";
|
|
|
|
|
pure_msg = "ρ";
|
|
|
|
|
symbol = "❄️";
|
|
|
|
|
};
|
2023-11-22 03:30:31 +00:00
|
|
|
|
directory = {
|
|
|
|
|
read_only = " ";
|
|
|
|
|
};
|
|
|
|
|
character = {
|
|
|
|
|
# success_symbol = "[)](bold green)";
|
|
|
|
|
# error_symbol = "[)](bold red)";
|
|
|
|
|
# vimcmd_symbol = "[(](bold green)";
|
|
|
|
|
# vimcmd_replace_one_symbol = "[(](bold purple)]";
|
|
|
|
|
# vimcmd_replace_symbol = "[(](bold purple)]";
|
|
|
|
|
# vimcmd_visual_symbol = "[(](bold yellow)]";
|
|
|
|
|
};
|
2023-11-01 04:06:04 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
2023-10-21 00:49:53 +00:00
|
|
|
|
}
|