mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
17 lines
356 B
Nix
17 lines
356 B
Nix
{ ... }:
|
|
{
|
|
flake.homeModules.home-zsh-nu-handoff =
|
|
{ config, lib, ... }:
|
|
let
|
|
nu = lib.getExe config.programs.nushell.package;
|
|
in
|
|
{
|
|
programs.zsh.initContent = lib.mkBefore ''
|
|
if [[ -o interactive && -z "$NO_NU" && -z "$INSIDE_NU" ]]; then
|
|
export INSIDE_NU=1
|
|
exec ${nu}
|
|
fi
|
|
'';
|
|
};
|
|
}
|