0
0
Fork 0
flake/home/modules/cli/shell.nix

111 lines
2.3 KiB
Nix
Raw Normal View History

2025-01-03 01:26:51 +00:00
{lib, ...}: {
programs.htop.enable = true;
programs.btop.enable = true;
programs.fastfetch.enable = true;
programs.eza.enable = true;
programs.eza.git = true;
programs.eza.icons = "auto";
programs.ripgrep.enable = true;
programs.bat.enable = true;
programs.nix-index.enable = true;
programs.nix-index-database.comma.enable = true;
2025-01-05 01:46:32 +00:00
programs.thefuck.enable = true;
2025-01-03 01:26:51 +00:00
programs.fish = {
enable = true;
shellAliases = {
2025-01-07 01:27:25 +00:00
ls = "eza -laghHUum --sort name --group-directories-first --git --icons";
tree = "eza -laghHUumRT --sort name --group-directories-first --git --icons";
2025-01-07 00:40:07 +00:00
cat = "bat";
2025-01-03 01:26:51 +00:00
};
2025-01-07 00:40:07 +00:00
interactiveShellInit = ''
source /Users/relms/.iterm2_shell_integration.fish
'';
2025-01-03 01:26:51 +00:00
};
programs.starship = {
enable = true;
enableFishIntegration = true;
enableTransience = true;
settings = {
add_newline = true;
format = lib.concatStrings ["$username@$hostname" " " "$directory" " " "$all$character"];
right_format = "$cmd_duration";
directory = {
format = "[$path]($style)[$read_only]($read_only_style)";
read_only = " 🔒";
};
hostname = {
ssh_only = false;
format = "[$hostname]($style)";
};
username = {
show_always = true;
format = "[$user]($style)";
};
shell = {
disabled = false;
};
status = {
disabled = false;
};
2025-01-05 01:51:00 +00:00
kubernetes = {
disabled = false;
};
memory_usage = {
disabled = false;
};
git_metrics = {
disabled = false;
};
2025-01-03 01:26:51 +00:00
};
};
programs.atuin = {
enable = true;
daemon.enable = true;
settings = {
dialect = "us";
timezone = "local";
auto_sync = true;
update_check = false;
sync_address = "https://atuin.relms.dev";
sync_frequency = "10m";
filter_mode = "workspace";
workspaces = true;
style = "auto";
show_preview = true;
show_help = true;
show_tabs = true;
enter_accept = false;
keymap_mode = "vim-normal";
};
};
catppuccin = {
fish = {
enable = true;
flavor = "mocha";
};
starship = {
enable = true;
flavor = "mocha";
};
btop = {
enable = true;
flavor = "mocha";
};
bat = {
enable = true;
flavor = "mocha";
};
};
}