diff --git a/share/functions/ls.fish b/share/functions/ls.fish index 1cd4e659f..aab2f0e49 100644 --- a/share/functions/ls.fish +++ b/share/functions/ls.fish @@ -5,9 +5,9 @@ # BSD, macOS and others support colors with ls -G. # GNU ls and FreeBSD ls takes --color=auto. Order of this test is important because ls also takes -G but it has a different meaning. # Solaris 11's ls command takes a --color flag. -# Also test a no-op -- because we'll want to define this function even with an ls that can't do colors (like NetBSD). +# Also test -F because we'll want to define this function even with an ls that can't do colors (like NetBSD). -for opt in --color=auto -G --color -- +for opt in --color=auto -G --color -F if command ls $opt / >/dev/null 2>/dev/null function ls --description "List contents of directory" -V opt