mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-03 05:25:00 +08:00
17 lines
418 B
Nix
17 lines
418 B
Nix
{ pkgs, lib, ... }:
|
|
let
|
|
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);
|
|
}
|
|
|