Modularize the shell config

This commit is contained in:
SebastianStork 2024-04-17 09:42:55 +02:00
parent cbebff390c
commit 30faa1f2bf
10 changed files with 104 additions and 74 deletions

View file

@ -0,0 +1,24 @@
{
config,
lib,
...
}: {
options.myConfig.shell.enhancedCommands.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.shell.enhancedCommands.enable {
programs.lsd = {
enable = true;
enableAliases = true;
};
programs.bat.enable = true;
home.shellAliases.cat = "bat -p";
programs.fzf.enable = true;
programs.zoxide = {
enable = true;
options = ["--cmd cd"];
};
};
}