Results 1 to 6 of 6

Thread: Lose color ls in Drake 9.1

  1. #1
    Junior Member
    Join Date
    Sep 2001
    Posts
    96

    Lose color ls in Drake 9.1

    Hello. I'm trying to get rid of the color directory listing under Drake 9.1, as I hate it. I've edited /etc/DIR_COLORS and changed "COLOR tty" to "COLOR none". I've also set up both system and user aliases to alias ls to "ls -F --color=never" but it still isn't working. I can get rid of it when I log in in text mode, but when I open a terminal under X the colours are back!

    Does anyone have any suggestions how to remove the colour completely? (Just for ls, in case anyone's tempted to tell me to adjust my monitor!)

    Thanks, Chris


  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    472

    Re:Lose color ls in Drake 9.1

    See if ls is aliased to something else (ls with args). Check to see if /bin/ls gives color or not. If /bin/ls doesn't do color, you have an alias somewhere that you will need to unset.

  3. #3

    Re:Lose color ls in Drake 9.1

    Ok yeah they probably aliased ls in /etc/bashrc if not check your .bachrc file in your home directory... This is assuming that you are using bash and not tsh or some other shell.

  4. #4
    Junior Member
    Join Date
    Sep 2001
    Posts
    96

    Re:Lose color ls in Drake 9.1

    Yes, I'm using bash. /bin/ls doesn't do colour (yay!). I've checked /etc/bashrc and ~/.bashrc and neither of them had any aliases set. I aliased ls to ls -F --color=never in both, and it still won't go away.

    Methinks that Drake hides aliases is sneaky places, as rm is aliased to rm -i somewhere.

    Any ideas where else I should look?

  5. #5

    Re:Lose color ls in Drake 9.1

    Check your root's.bashrc or .bash_profile ..... Drake uses the roots bash stuff on regular users

    Also in /etc/bashrc there are lines looking to see if its an Xterm, that might be where you need to edit:

    Code:
    # are we an interactive shell?
    if [ "$PS1" ]; then
        case $TERM in
            xterm*)
                PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
                ;;
            *)
                ;;
        esac
        [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
    Also try checking /etc/profile.d/alias.sh . Im not sure how to get rid of colors so I dont knwo what ya need, but theres all kinds of aliases there....

    HTH

    PS = Drake Ownz

  6. #6
    Junior Member
    Join Date
    Sep 2001
    Posts
    96

    Re:Lose color ls in Drake 9.1

    Thanks! /etc/profile.d/alias.sh was where it was lurking. My ls's now display in glorious far-easier-to-read monochrome. I've also got rid of the -i switch for rm.

    I like Drake too. One word - rpmdrake. My last distro was RH7.1 and it was a pain manually trying to install the necessary dependencies from three cd's if I wanted a new piece of software. That and the fact that it correctly autodetects all my hardware. Except my crappy S200 winprinter, although I've got that working satisfactorily in B&W. I can live with booting into XP if I desperately need to print colour.

Similar Threads

  1. did i just lose my other OS???
    By unix1adm in forum Suse
    Replies: 5
    Last Post: 10-28-2008, 09:59 PM
  2. Will SCO Win or Lose?
    By Coral_Sea in forum General Chat
    Replies: 7
    Last Post: 12-05-2003, 11:16 PM
  3. Drake PPC
    By Kernel_Killer in forum Linux Distros
    Replies: 7
    Last Post: 11-07-2003, 08:17 PM
  4. [color=Red]WARNING[/color]
    By Rastar in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 08-10-2002, 02:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •