mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-12 01:37:53 +08:00
18 lines
354 B
Nix
18 lines
354 B
Nix
{ lib, ... }:
|
|
let
|
|
shellAliases = {
|
|
e = "nvim";
|
|
ee = ''
|
|
nvim (fzf)
|
|
'';
|
|
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);
|
|
}
|
|
|