Fix ls command under Cygwin

It appears that dircolors -c under Cygwin has >&/dev/null at end that is
valid C shell syntax, but isn't accepted in fish shell.
This commit is contained in:
Konrad Borowski 2013-08-12 09:38:17 +03:00
parent ada3ab4213
commit 79d5ff0350

View file

@ -14,7 +14,7 @@ if command ls --version 1>/dev/null 2>/dev/null
if not set -q LS_COLORS
if type -f dircolors >/dev/null
eval (dircolors -c)
eval (dircolors -c | sed 's/>&\/dev\/null$//')
end
end