Francesco Potortì <[email protected]> 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. _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
