diff --git a/share/functions/ls.fish b/share/functions/ls.fish index 9023b74e4..d162c8c44 100644 --- a/share/functions/ls.fish +++ b/share/functions/ls.fish @@ -12,13 +12,7 @@ if command ls --version >/dev/null 2>/dev/null end if not set -q LS_COLORS - set -l dircolors - for d in gdircolors dircolors - if command -sq $d - set dircolors $d - break - end - end + set -l dircolors (command -s {g,}dircolors)[1] if set -q dircolors[1] set -l colorfile