nix_files/commons/programs/zsh.nix

51 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{ ... }: {
2025-02-07 23:20:47 +00:00
programs.zsh = {
enable = true;
enableCompletion = true;
2025-02-27 20:10:46 +00:00
enableAutosuggestions = true;
2025-02-07 23:20:47 +00:00
shellAliases = {
update = "sudo nixos-rebuild switch --flake /home/zuma/nix_files#t0urn3s0l";
2025-02-09 21:05:34 +00:00
connect-h4ppy = "mosh --ssh=\"ssh -p 72\" globuzma@87.231.223.91";
2025-02-27 20:10:46 +00:00
cat = "bat";
ls = "eza --time-style=relative --git --octal-permissions --icons --binary -lg";
calc = "eva";
2025-02-07 23:20:47 +00:00
};
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "robbyrussell";
};
};
programs.starship = {
enable = true;
settings = {
2025-02-06 23:17:32 +00:00
add_newline = false;
command_timeout = 1300;
scan_timeout = 50;
format = "$username@$hostname:$directory$character";
hostname = {
disabled = false;
format = "[$ssh_symbol](blue dimmed bold)[$hostname]($style)";
ssh_only = false;
style = "green dimmed bold";
};
2025-02-06 23:17:32 +00:00
username = {
format = "[$user]($style)";
show_always = true;
style_root = "red bold bg:0x9A348E";
style_user = "yellow bold bg:0x9A348E";
disabled = false;
};
2025-02-06 23:17:32 +00:00
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
};
};
};
}