Skip to content

Commit

Permalink
feat: Add nushell script writers
Browse files Browse the repository at this point in the history
Add writeNushellScript and writeNushellScriptBin, which behave like their
bash counterparts
  • Loading branch information
lpchaim committed Sep 28, 2024
1 parent 2d60520 commit 66946df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,14 @@ in
nixCfg = homeCfg.file."${homeCfg.homeDirectory}/.config/nix/nix.conf".source;
in
nixCfg;
writeNushellScript = name: text:
prev.writeScript "nushell-${name}" ''
#! ${prev.nushell}/bin/nu
${text}
'';
writeNushellScriptBin = name: text:
prev.writeScriptBin "nushell-${name}" ''
#! ${prev.nushell}/bin/nu
${text}
'';
}

0 comments on commit 66946df

Please sign in to comment.