nixos-config/home/shellcommon.nix
Sridhar Ratnakumar 035a337eb1 comment
2023-04-07 15:27:12 -04:00

19 lines
420 B
Nix

{ lib, ... }:
let
shellAliases = {
e = "nvim";
ee = ''
nvim (fzf)
'';
g = "git";
lg = "lazygit";
};
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);
}