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 = {
ls = "eza -a";
cat = "bat -pp";
y = "yazi";
zed = "zeditor .";
# ls = "eza -a";
# cat = "bat -pp";
# y = "yazi";
# zed = "zeditor .";
};
programs = {

View file

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

View file

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