mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ pkgs, ... };
|
|
{
|
|
programs = {
|
|
zsh = {
|
|
enable = true;
|
|
defaultKeymap = "emacs";
|
|
oh-my-zsh.enable = false;
|
|
# remove extra stuff on the right side of the prompt
|
|
initExtra = ''
|
|
unset RPS1
|
|
# Color man pages
|
|
export LESS_TERMCAP_mb=$'\E[01;32m'
|
|
export LESS_TERMCAP_md=$'\E[01;32m'
|
|
export LESS_TERMCAP_me=$'\E[0m'
|
|
export LESS_TERMCAP_se=$'\E[0m'
|
|
export LESS_TERMCAP_so=$'\E[01;47;34m'
|
|
export LESS_TERMCAP_ue=$'\E[0m'
|
|
export LESS_TERMCAP_us=$'\E[01;36m'
|
|
export LESS=-R
|
|
'';
|
|
shellAliases = {
|
|
cp = "cp -i";
|
|
ls = "exa --icons";
|
|
ll = "exa --long --icons --grid --binary --group";
|
|
lal = "ll --all";
|
|
lla = "ll --all";
|
|
};
|
|
};
|
|
|
|
starship = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
settings = {
|
|
add_newline = false;
|
|
format = "$all";
|
|
username.show_always = false;
|
|
git_commit.tag_disabled = false;
|
|
hostname.ssh_only = false;
|
|
directory.truncate_to_repo = true;
|
|
};
|
|
};
|
|
|
|
zoxide = {
|
|
enable = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
|
|
bat = {
|
|
enable = true;
|
|
config = { theme = "ansi"; };
|
|
};
|
|
|
|
exa = {
|
|
enable = true;
|
|
enableAliases = false;
|
|
};
|
|
};
|
|
|
|
}
|