From e1bf6938b668e3c2b6466e50ca19109c5b99661d Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 27 Apr 2023 09:08:28 -0400 Subject: [PATCH] Use home.shellAliases --- home/shellcommon.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/home/shellcommon.nix b/home/shellcommon.nix index bfe0b52..062ee51 100644 --- a/home/shellcommon.nix +++ b/home/shellcommon.nix @@ -1,17 +1,15 @@ { pkgs, lib, ... }: -let - shellAliases = { + +{ + home.shellAliases = { e = "nvim"; g = "git"; lg = "lazygit"; l = lib.getExe pkgs.exa; }; -in -{ - programs.bash = { inherit shellAliases; }; - programs.zsh = { inherit shellAliases; }; + # Until https://github.com/nix-community/home-manager/pull/3529 - programs.nushell.extraConfig = - lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "alias ${k} = ${v} ") shellAliases); + # programs.nushell.extraConfig = + # lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "alias ${k} = ${v} ") config.home.shellAliases); }