Tiny Core Extensions > TCE Talk
aterm.tcz - can't see color coded texts
(1/1)
amgh:
Hi, I recently installed TC 6.1 to one of my hard drives. (Frugal install from a USB stick.)
When I open the terminal window of aterm, I can no longer see the default colour coded texts - blue directories, green executables, etc. Everything is just white texts on black background.
On my USB stick, aterm window is fine with the default colors.
What has happened here? I can give further information if required. I think this happened once before when installing TC 6.0. I just did a reinstall of the whole TC to get back the color that time.
(Using Xorg)
Thank you.
curaga:
You likely installed GNU ls, which defaults to colors off. Busybox ls defaults to on.
To change this with GNU ls, you'd add
alias ls="ls --color"
to your .profile.
amgh:
--- Code: ---# ~/.profile: Executed by Bourne-compatible login SHells.
#
# Path to personal scripts and executables (~/.local/bin).
[ -d "$HOME/.local/bin" ] || mkdir -p "$HOME/.local/bin"
export PATH=$HOME/.local/bin:$PATH
ONDEMAND=/etc/sysconfig/tcedir/ondemand
[ -d "$ONDEMAND" ] && export PATH=$PATH:"$ONDEMAND"
# Environment variables and prompt for Ash SHell
# or Bash. Default is a classic prompt.
#
PS1='\u@\h:\w\$ '
PAGER='less -EM'
MANPAGER='less -isR'
EDITOR=vi
export PS1 PAGER FILEMGR EDITOR MANPAGER
export BACKUP=1
[ "`id -un`" = "`cat /etc/sysconfig/tcuser`" ] && echo "$BACKUP" | sudo tee /etc/sysconfig/backup >/dev/null 2>&1
export FLWM_TITLEBAR_COLOR="58:7D:AA"
if [ -f "$HOME/.ashrc" ]; then
export ENV="$HOME/.ashrc"
. "$HOME/.ashrc"
fi
TERMTYPE=`/usr/bin/tty`
[ ${TERMTYPE:5:3} == "tty" ] && (
[ ! -f /etc/sysconfig/Xserver ] ||
[ -f /etc/sysconfig/text ] ||
[ -e /tmp/.X11-unix/X0 ] ||
startx
)
--- End code ---
This is the contents of my .profile.
Can I add the suggested alias ls="ls --color" anywhere in this file? I tried the above suggestion but there was no color yet.
Thanks.
gerald_clark:
You need to logoff and log back in.
I would add it to .ashrc.
amgh:
I added the line to .ashrc, and now the terminal works with the color coded texts, back to normal.
Thank you!
Navigation
[0] Message Index
Go to full version