nixos-config/home/shellcommon.nix
Sridhar Ratnakumar de443adbce Make pux a script
2023-04-07 10:56:14 -04:00

18 lines
379 B
Nix

{ lib, ... }:
let
shellAliases = {
e = "nvim";
ee = ''
fzf --bind "enter:execute(nvim {})"
'';
g = "git";
lg = "lazygit";
};
in
{
programs.bash = { inherit shellAliases; };
programs.zsh = { inherit shellAliases; };
programs.nushell.extraConfig =
lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "alias ${k} = ${v} ") shellAliases);
}