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:
parent
2931e9d141
commit
e0a7be7ba0
2 changed files with 1 additions and 8 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"vim".command = "hx";
|
||||
"dig".command = "doggo";
|
||||
"where".command = "which -a";
|
||||
|
||||
"glol" = {
|
||||
command = "git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset'";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue