mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-05 03:42:33 +01:00
Compare commits
2 commits
c9fea1c134
...
a1be7f14fa
Author | SHA1 | Date | |
---|---|---|---|
a1be7f14fa | |||
afc039c907 |
2 changed files with 12 additions and 17 deletions
|
@ -1,6 +1,6 @@
|
|||
<! function gitalias(new, old) !>
|
||||
def --wrapped "git <% new %>" [...rest] {
|
||||
git <% old %> ...$rest
|
||||
git <% old %> ...$rest
|
||||
}
|
||||
<! end !>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
nu-ver = "0.95.0";
|
||||
in
|
||||
in
|
||||
{
|
||||
options.nushell-plugins = lib.mkOption { };
|
||||
|
||||
|
@ -57,19 +57,14 @@ in
|
|||
})
|
||||
];
|
||||
|
||||
config.output.packages.nushell-plugins =
|
||||
let
|
||||
pluginName = d: lib.removePrefix "nu-plugin-" d.name;
|
||||
in
|
||||
pkgs.writeTextFile {
|
||||
name = "add-plugins.nu";
|
||||
text = builtins.concatStringsSep "\n"
|
||||
(map
|
||||
(d:
|
||||
''
|
||||
if (plugin list | any { |p| $p.name == "${pluginName d}" }) { plugin rm ${pluginName d} }
|
||||
plugin add ${lib.getBin d}/bin/${builtins.replaceStrings ["-"] ["_"] d.name}
|
||||
'')
|
||||
config.nushell-plugins);
|
||||
};
|
||||
config.output.packages.nushell-plugins = pkgs.writeTextFile {
|
||||
name = "add-plugins.nu";
|
||||
text = builtins.concatStringsSep "\n"
|
||||
(map
|
||||
(d:
|
||||
''
|
||||
plugin add ${lib.getBin d}/bin/${builtins.replaceStrings ["-"] ["_"] d.name}
|
||||
'')
|
||||
config.nushell-plugins);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue