delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/16/02:43:09

From: mh AT mike DOT franken DOT de (Michael Hirmke)
Subject: Re: LS_COLORS operational? and info information cygwin B-20
16 Jan 1999 02:43:09 -0800 :
Message-ID: <78uixKkKpfB.cygnus.gnu-win32@mike.franken.de>
References: <199901131036 DOT CAA18729 AT cygnus DOT com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi,

[...]
>prompt> eval 'dircolors colors.nt'
>LS_COLORS='<lots of blurb>';
>export LS_COLORS
>
>But LS_COLORS is not actually set.  If I manually set the variable myself
>(export LS_COLORS='<lots of blurb>') then it works...

You have to source the script, so that the env var is added to your
actual shell. You are trying to change the environment of the calling
shell, which isn't possible in a Unix like environment.
So write the commands to .bashrc or some other script

>> > ------------------------< snip snip snip >-----------------------------
>> > eval `dircolors colours-for-ls.nt4`
>> > alias ls="ls --color=tty -F -T 0"
>> > ------------------------< snip snip snip >-----------------------------

and then call it with either

.. ./.bashrc

or

source ./.bashrc

Bye.
Michael.
--
Michael Hirmke           | Telefon +49 (911) 557999
Georg-Strobel-Strasse 81 | FAX     +49 (911) 557664
90489 Nuernberg          | E-Mail  mailto:mh AT mike DOT franken DOT de
                         | WWW     http://aquarius.franken.de/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019