From b39414b1e75e76f5e74e02c76d53c4f6372978fd Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Sun, 30 Mar 2025 22:25:26 +0200 Subject: [PATCH] stashing --- modules/home/shell/default.nix | 8 ++++---- modules/home/shell/zsh.nix | 26 +++++++++++++------------- modules/system/shell/zsh.nix | 6 ++---- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/modules/home/shell/default.nix b/modules/home/shell/default.nix index d386381..3613c76 100644 --- a/modules/home/shell/default.nix +++ b/modules/home/shell/default.nix @@ -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 = { diff --git a/modules/home/shell/zsh.nix b/modules/home/shell/zsh.nix index ca3104b..7b8accf 100644 --- a/modules/home/shell/zsh.nix +++ b/modules/home/shell/zsh.nix @@ -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; diff --git a/modules/system/shell/zsh.nix b/modules/system/shell/zsh.nix index e765bc8..c54164b 100644 --- a/modules/system/shell/zsh.nix +++ b/modules/system/shell/zsh.nix @@ -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"; };