mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00: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:
parent
ada3ab4213
commit
79d5ff0350
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue