add nushell

This commit is contained in:
Sridhar Ratnakumar 2023-04-03 10:32:31 -04:00
parent 6f4633f1a1
commit 11eb51d386
2 changed files with 9 additions and 1 deletions

View file

@ -11,6 +11,12 @@
./terminal.nix
./direnv.nix
];
programs.nushell = {
enable = true;
envFile.text = ''
let-env PATH = ($env.PATH | split row (char esep) | prepend $"/etc/profiles/per-user/($env.USER)/bin" | prepend '/run/current-system/sw/bin/')
'';
};
};
common-linux = {
imports = [

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
# These aliases should work on all shells.
shellAliasesSimple = {
@ -20,4 +20,6 @@ in
{
programs.bash = { inherit shellAliases; };
programs.zsh = { inherit shellAliases; };
programs.nushell.extraConfig =
lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "alias ${k} = ${v}") shellAliasesSimple);
}