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

57 lines
1.4 KiB
Nix
Raw Permalink 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 [
"$directory"
"$git_branch"
"$git_commit"
"$git_state"
"$git_status"
"$package"
"$nix_shell"
2024-01-24 17:16:19 +00:00
"$container"
"$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;
git_commit.tag_disabled = false;
git_status = {
2023-11-22 03:30:31 +00:00
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-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
}