nixos/modules/shells.nix
2023-02-01 14:14:39 -05:00

52 lines
1.1 KiB
Nix

{pkgs, ...}: {
environment = {
binsh = "${pkgs.dash}/bin/dash"; #use dash for speed
variables = {
EDITOR = "vi";
VISUAL = "vi";
PAGER = "page";
SYSTEMD_PAGERSECURE = "true";
TERMINAL = "st";
};
shellAliases = {
ls = "exa --long --icons";
};
interactiveShellInit = "fetch-rs";
};
programs = {
zsh = {
enable = true;
autosuggestions = {
enable = true;
};
syntaxHighlighting = {
enable = true;
};
};
starship = {
enable = true;
settings = {
add_newline = false;
format = "$sudo$cmd_duration \n $directory$git_branch$character";
character = {
success_symbol = "[ ](#9ece6a bold)";
error_symbol = "[ ](#db4b4b bold)";
};
directory = {
read_only = " ";
};
git_branch = {
style = "bold red";
};
sudo = {
format = "[ ](#7aa2f7)";
disabled = false;
};
cmd_duration = {
min_time = 5000;
style = "bold #9ece6a";
};
};
};
};
}