From 79d5ff03502b779fde4994ab65dd22c049d8125b Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Mon, 12 Aug 2013 09:38:17 +0300 Subject: 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. --- share/functions/ls.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/functions/ls.fish b/share/functions/ls.fish index 1db74622..dd4fb3a6 100644 --- a/share/functions/ls.fish +++ b/share/functions/ls.fish @@ -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 -- cgit v1.2.3