From e3adc49796e0416d91e0cb9702e4444236ec356c Mon Sep 17 00:00:00 2001 From: hedy Date: Thu, 31 Mar 2022 18:05:40 +0800 Subject: [PATCH] Fish: Fix ls function on NetBSD Apparently `ls ''` shows an error: ls: no such file or directory TIL --- .config/fish/functions/ls.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/fish/functions/ls.fish b/.config/fish/functions/ls.fish index 0d74f2e..cfce8e1 100644 --- a/.config/fish/functions/ls.fish +++ b/.config/fish/functions/ls.fish @@ -1,7 +1,8 @@ function ls set lspath (which ls) if [ (uname) = "NetBSD" ] - set __fish_ls_color_opt "" + command $lspath $argv + return end command $lspath $__fish_ls_color_opt $argv end