From e0a7be7ba04240308421cda0cdf2c1f96a31f736 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Tue, 1 Aug 2023 14:13:16 +0800 Subject: [PATCH] fix(shell): improve where function --- programs/aliases.nix | 1 + programs/fish.nix | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/programs/aliases.nix b/programs/aliases.nix index bd49e2e..7edf87b 100644 --- a/programs/aliases.nix +++ b/programs/aliases.nix @@ -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'"; diff --git a/programs/fish.nix b/programs/fish.nix index bf3413f..d9ec00d 100644 --- a/programs/fish.nix +++ b/programs/fish.nix @@ -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 - ''; }; };