shell organization

This commit is contained in:
John Lancaster
2026-02-16 16:37:13 -06:00
parent 64ed7ca735
commit 99dc4515a1
3 changed files with 29 additions and 16 deletions

View File

@@ -0,0 +1,10 @@
{
flake.homeModules.bash = { pkgs, lib, ... }:
{
programs.bash = {
enable = true;
enableCompletion = true;
package = pkgs.bash;
};
};
}

View File

@@ -1,19 +1,27 @@
{ inputs, ... }:
{
flake.homeModules.shell = {pkgs, ...}: {
programs.eza = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
extraOptions = [
"-lgos type --no-time"
];
};
imports = with inputs.self.homeModules; [
# Shells
bash
zsh
# Tools
files
docker
];
flake.homeModules.shell = {pkgs, ...}:
{
programs.eza = {
enable = true;
package = pkgs.eza;
enableBashIntegration = true;
enableZshIntegration = true;
};
home.shell.enableShellIntegration = true;
home.shellAliases = {
ls = "${lib.getExe pkgs.eza} -lgos type --no-time --follow-symlinks";
};
};
}

View File

@@ -1,13 +1,9 @@
{ inputs, ... }:
{
flake.homeModules.zsh = { pkgs, config, lib, ... }:
flake.homeModules.zsh = { pkgs, ... }:
{
home.packages = with pkgs; [
zsh
];
programs.zsh = {
enable = true;
package = pkgs.zsh;
enableCompletion = true;
autosuggestion.enable = true;
# syntaxHighlighting.enable = true;
@@ -36,7 +32,6 @@
"ssh-agent"
];
};
shellAliases.ls = "${lib.getExe pkgs.eza} -lgos type --no-time --follow-symlinks";
};
};
}