From 0074d96e890ffa9ccebb5879db94dca15b4eb74e Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Fri, 14 Mar 2025 13:35:47 +0800 Subject: [PATCH] refactor: move shellaliases to user scope --- users/modules/programs/bash.nix | 4 ---- users/modules/sh.nix | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/users/modules/programs/bash.nix b/users/modules/programs/bash.nix index 09a4f5e..d515e49 100644 --- a/users/modules/programs/bash.nix +++ b/users/modules/programs/bash.nix @@ -1,9 +1,5 @@ { programs.bash = { enable = true; - shellAliases = { - gs = "git status"; - ai = "aichat -r %shell% -e"; - }; }; } diff --git a/users/modules/sh.nix b/users/modules/sh.nix index 9b5cc07..1df2b70 100644 --- a/users/modules/sh.nix +++ b/users/modules/sh.nix @@ -13,4 +13,10 @@ ./programs/zsh.nix ./scripts ]; + + home.shell.enableShellIntegration = true; + home.shellAliases = { + gs = "git status"; + ai = "aichat -r %shell% -e"; + }; }