mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
home/fish: wrap "nix {build,shell}" with nom if possible
This commit is contained in:
parent
3acb95f745
commit
0798147e92
1 changed files with 11 additions and 0 deletions
11
nix/homeModules/common/fish/functions/nix.fish
Normal file
11
nix/homeModules/common/fish/functions/nix.fish
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
function nix
|
||||||
|
if [ $(count $argv) -lt 1 ]
|
||||||
|
command nix $argv
|
||||||
|
end
|
||||||
|
and if [ $argv[1] = "build" -o $argv[1] = "shell" ] && type -q nom
|
||||||
|
nom $argv
|
||||||
|
else
|
||||||
|
command nix $argv
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue