This commit is contained in:
Chris Kruining 2025-03-30 22:25:26 +02:00
parent 0fd2177bd0
commit b39414b1e7
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
3 changed files with 19 additions and 21 deletions

View file

@ -47,10 +47,10 @@ in
}; };
home.shellAliases = { home.shellAliases = {
ls = "eza -a"; # ls = "eza -a";
cat = "bat -pp"; # cat = "bat -pp";
y = "yazi"; # y = "yazi";
zed = "zeditor ."; # zed = "zeditor .";
}; };
programs = { programs = {

View file

@ -18,19 +18,19 @@ in
environment.pathsToLink = ["/share/zsh"]; environment.pathsToLink = ["/share/zsh"];
home-manager.users.${user} = { home-manager.users.${user} = {
xdg.configFile."zsh-abbreviations" = { # xdg.configFile."zsh-abbreviations" = {
target = "zsh/abbreviations"; # target = "zsh/abbreviations";
text = let # text = let
abbrevs = { # abbrevs = {
ls = "eza -al"; # ls = "eza -al";
}; # };
in '' # in ''
${concatStrings (mapAttrsToList # ${concatStrings (mapAttrsToList
(k: v: "abbr ${k}=${escapeNixString v}") # (k: v: "abbr ${k}=${escapeNixString v}")
abbrevs # abbrevs
)} # )}
''; # '';
}; # };
programs = { programs = {
starship.enableZshIntegration = true; starship.enableZshIntegration = true;

View file

@ -1,13 +1,11 @@
{ config, lib, ... }: let { config, lib, ... }: let
inherit (lib.options) mkEnableOption;
inherit (lib.modules) mkIf; inherit (lib.modules) mkIf;
cfg = config.modules.shell.zsh; cfg = config.modules.shell.zsh;
in in
{ {
options.modules.shell.zsh = let options.modules.shell.zsh = {
inherit (lib.options) mkEnableOption;
in
{
enable = mkEnableOption "enable ZSH"; enable = mkEnableOption "enable ZSH";
}; };