mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-27 10:47:16 +08:00
Use home.shellAliases
This commit is contained in:
parent
69c9ea0bf6
commit
e1bf6938b6
1 changed files with 6 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue