aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-12 09:38:17 +0300
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-08-12 09:38:17 +0300
commit79d5ff03502b779fde4994ab65dd22c049d8125b (patch)
tree25d0ca68b77c0f70256378d8a451302fa962d0c0 /share
parentada3ab4213e8acb421729f954025e608e738276c (diff)
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.
Diffstat (limited to 'share')
-rw-r--r--share/functions/ls.fish2
1 files changed, 1 insertions, 1 deletions
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