From 3642636a4781e9eb47ed729df2e157c14764344d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 8 Sep 2025 00:01:45 +0200 Subject: [PATCH] fish: make ll and ls functions lookup eza in $PATH instead of using absolute path. --- fish/functions/ll.fish | 4 ++-- fish/functions/ls.fish | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fish/functions/ll.fish b/fish/functions/ll.fish index 7f9fbf2..81cba24 100644 --- a/fish/functions/ll.fish +++ b/fish/functions/ll.fish @@ -1,6 +1,6 @@ function ll - if test -f /usr/bin/eza - /usr/bin/eza --icons=always -l --git $argv + if command -q eza + eza --icons=always -l --git $argv else /bin/ls --color=auto -l $argv end diff --git a/fish/functions/ls.fish b/fish/functions/ls.fish index 10485ce..3271ca2 100644 --- a/fish/functions/ls.fish +++ b/fish/functions/ls.fish @@ -1,6 +1,6 @@ function ls - if test -f /usr/bin/eza - /usr/bin/eza $argv + if command -q eza + eza $argv else /bin/ls --color=auto $argv end