bashrc for dir_colors edit

Report Bugs, Issues and non- package Requests
Post Reply
Message
Author
User avatar
KoO
Posts: 491
Joined: Fri Feb 10, 2017 1:21 am

bashrc for dir_colors edit

#1 Post by KoO »

The .bashrc entry for .dir_colors would not work until I edited the .bashrc. (With .dir_colors you can edit the prompt directory colors..)

With the original code below dir_colors would not work for me at all.

1.

Code: Select all

  # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 


Edited code now works just Fine.

2.

Code: Select all

  # enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    eval "$(dircolors ~/.dir_colors)"
This was with antiX 17.3. MX17 has code 1. as well..
Main : MX 19.1-AHS (i3) 5.4.13-1~mx19+1, Asus B450-i AMD 5 3600 , 32gb Hyper-X 3200 , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 12gb .
Lenovo X220 : Test Machine (ATM)

Post Reply

Return to “Bugs and Non-Package Requests Forum”