What's new

Change colors in SSH shell?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

XIII

Very Senior Member
On my Mac and on my Raspberry Pi I can use $LSCOLORS/$LS_COLORS to change the colors of the output of the "ls" command (with bash/zsh).

This does not seem to work on my AC86U router (with ash).

(How) Can I change colors? (Or are they hard-coded?)

(I would like to configure the colors to be the same on all platforms, to prevent confusion)
 
Not configurable in the busybox applet.
 
Ah, that will save me from some unsuccessful attempts to change them. Thanks.

Does Entware offer a workaround for this?
 
With improvisations it is possible
Code:
 Add /opt/bin/bash to /opt/etc/shells
(! grep -q '/opt/bin/bash' /opt/etc/shells) && echo "/opt/bin/bash" >>/opt/etc/shells
cat /opt/etc/shells
 
With improvisations it is possible
To do what? (trying to understand what problem your code solves)

I already got want I wanted (configurable colors for "ls" output) by installing that additional package and adding this alias ("borrowed" from a Raspberry Pi):
Code:
ls='ls --color=auto'
 
To do what? (trying to understand what problem your code solves)

I already got want I wanted (configurable colors for "ls" output) by installing that additional package and adding this alias ("borrowed" from a Raspberry Pi):
Code:
ls='ls --color=auto'
Resolved
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top