mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user