shell organization
This commit is contained in:
10
modules/home-manager/bash.nix
Normal file
10
modules/home-manager/bash.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
flake.homeModules.bash = { pkgs, lib, ... }:
|
||||
{
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
package = pkgs.bash;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user