mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
fish: remove fish-based nix-which
This commit is contained in:
parent
7dccaa90e5
commit
021e27cb07
1 changed files with 0 additions and 16 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
function nix-which \
|
|
||||||
--description "List how an executable is linked in a NixOS system"
|
|
||||||
|
|
||||||
if [ (count $argv) -ne 1 ]
|
|
||||||
echo "Must provide exactly one argument, the package to be dereferenced"
|
|
||||||
return 1
|
|
||||||
end
|
|
||||||
|
|
||||||
set target (which "$argv[1]")
|
|
||||||
echo "==> $target"
|
|
||||||
|
|
||||||
while [ -L "$target" ]
|
|
||||||
set target (readlink "$target")
|
|
||||||
echo "==> $target"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue