1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

fix(shell): improve where function

This commit is contained in:
Ryan Cao 2023-08-01 14:13:16 +08:00
parent 2931e9d141
commit e0a7be7ba0
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
2 changed files with 1 additions and 8 deletions

View file

@ -17,14 +17,6 @@ in {
mkdir "$dir"
cd "$dir"
'';
where = ''
set name $argv[1]
for p in $PATH
if test -e "$p/$name"
echo "$p/$name"
end
end
'';
};
};