mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
home/fish: add nix-wrapper to use nom if available
This commit is contained in:
parent
09e7d1adb8
commit
5d309c2d4e
2 changed files with 14 additions and 0 deletions
7
nix/homeModules/common/fish/functions/nix-build.fish
Normal file
7
nix/homeModules/common/fish/functions/nix-build.fish
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
function nix-build
|
||||||
|
if type -q nix-build
|
||||||
|
nom-build $argv
|
||||||
|
else
|
||||||
|
nix-build $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
7
nix/homeModules/common/fish/functions/nix-shell.fish
Normal file
7
nix/homeModules/common/fish/functions/nix-shell.fish
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
function nix-shell
|
||||||
|
if type -q nix-shell
|
||||||
|
nom-shell $argv
|
||||||
|
else
|
||||||
|
nix-shell $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue