Thanks Ronny! The -Ux flag does the trick.

I'm using Linux (should have mentioned that in my first email) so I have a
line like:

set -Ux LS_COLORS 'rs=0:di=00;34....'

the last part is a long string that generated by dircolors -b with my
personal modification.

Now I wonder if there is a more elegant way of changing the color code of ls
in FISH.
Someone can help?

Pong


On Mon, May 17, 2010 at 2:51 AM, Ronny Haryanto <[email protected]> wrote:

> On Mon, May 17, 2010 at 4:55 PM, Wai Yan Pong <[email protected]> wrote:
> >    set LS_COLORS 'di=00;32:'
> >    in config.fish but it doesn't make a different when I type ls.
>
> Which OS/distro are you using?
>
> In Mac OS X, I did:
>
>    set -Ux LSCOLORS Exfxcxdxbxegedabagacad
>
> once (notice the lack of underscore; check man ls), and I have this
> function:
>
>    function ls
>        ls -FG $argv
>    end
>
> Ronny
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
------------------------------------------------------------------------------

_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to