Francis Moreau <[email protected]> writes:

>>> I searched in the documentation to see which var can be customized in
>>> order to append '--color=never' to the ls command but I fail to find
>>> the answer.
>>>
>>> Could you give me a pointer ?
>>
>> You can set $LS_COLORS. Try this one:
>>
>>  (add-to-list 'tramp-remote-process-environment "LS_COLORS=co")
>
> It's not working.

Still one of my stupid questions: did you try it with Tramp? How did you
try? Have you restarted the connection from scratch? (Environment
variables are only taken into account during connection initialization)

> $ ls -l /bin/ls
> ls -> busybox
>
> So ls(1) is actually a busybox implementation, which maynot honor LS_COLORS.

What happens, if you do (in this order):

$ ls -al
$ export LS_COLORS=co
$ ls -al

> But why not disabling color by default in tramp when issuing "/bin/ls
> -ildn /etc" if tramp is not able to parse escape characters ?

Compatibility. Tramp cannot expect, that the remote ls command
understands "--color=none".

> Thanks

Best regards, Michael.


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to