tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp (2.2.13.25.2); need ls --color=never


From: Michael Albinus
Subject: Re: tramp (2.2.13.25.2); need ls --color=never
Date: Thu, 10 May 2018 19:45:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Francesco Potortì <address@hidden> writes:

Hi Francesco,

> When logging to a LibreELEC system I need ls --color=none.  The
> LibreELEC is a stripped-down Linux system with non-standard file system
> organisation, and it is not easy or immediate, nor useful in my opinion,
> to try and change its defaults.  Apparently, it defults to interpreting
> ls with colour.
>
> I need a simple way to force ls --color=never when logging in to
> LibreELEC.  The simple way I have found is to put this in my .emacs:
>
> (defun tramp-get-ls-command (vec) "ls --color=never")
>
> This is easy and probably even foolproof, as I think systems without a
> GNU ls are in fact very rare.  However, maybe this use case may be a
> reason to provide a generic way of forcing some commands on some
> systems.

`tramp-get-ls-command' checks, whether it could use
"--color=never". Maybe you debug this function, why it doesn't return it
to you?

For a proper result, you shall cleanup Tramp's cache first, via
`tramp-cleanup-connection' or alike.

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]