colors for files/dirs when using proot-distro with --termux-home?
I like the default color scheme of blue directories, white files, green executables, etc. When I log into my debian proot using this command,
proot-distro login --user userr debian
, this color scheme is still shown. But when I add --termux-home
, everything shows as white. This is weird because the colors show when not I'm the proot. How do I get it to show colors when using --termux-home
?11 Replies
try
source <(dircolors -p -b)
That gave me
try without
-p
flagNo output this time, but it does set
$LS_COLORS
, though everything is still whitetry
ls --color=auto
and you probably should alias it in your bashrcThanks! This was the solution but i'm still curious about the cause. Guess I'll have to take a peek at the code for proot-distro
It's likely that your shell rc which you don't have yet in proot aliases
ls
to be ls --color=auto
I think it's just standard ls from coreutils:
On Debian
\ls
does not give me any colors. On Termux it does. I assume that there is a compile time flag for the default value if --color=WHEN
Debian as in a desktop Debian over SSH, not prootHmm it gives me colors
Oh, root or not root user? The root user I think never has colors, but a user other than root I think has it by default
On Debian normal non-root user. Termux as the Termux user as it's a single user system.