Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

bashrc for dir_colors edit

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

bashrc for dir_colors edit

#1

Post by KoO » Sat Feb 02, 2019 7:12 am

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 : Debian10 (i3) , 4.19.37-5 , Intel Xeon E3-1241 v3 , 16gb , GTX970 . :linuxlove:
Lenovo T430 : Debian10 antiX17 (i3) , 4.20.12 , i5 , 8gb .
Lenovo X220 : Debian10 antiX17 (i3) , 4.19.170 , i5 , 8gb . BiosMod 1.46

Post Reply

Return to “Bugs and Non-Package Requests Forum”