Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.3.1 release info here

New users[/u
-- 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- pacakage Requests
Post Reply
User avatar
KoO
Forum Regular
Forum Regular
Posts: 422
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..
AntiX 17.3 (4.20) i3 ,MX18 (4.19.13),windows8.1 , Intel Xeon E3-1241 v3 , 16gb HyperX , EVO 860 500 GB , EVO 860 500 GB , GTX 970 :linuxlove:
Lenovo T430 AntiX17.3 (4.20) i3 ,MX18 (4.19.13),windows8.1 , i5 +4000 , 8gb , EVO 860 500 GB , 1TB HGST

Post Reply

Return to “Bugs and Non-Package Requests Forum”