LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2011, 11:10 AM   #1
afaucett
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Question Change My Color Settings


Okay, so I've looked a ton of places to figure out how to change the colors of my files, directories, etc. in my bash shell. However, I can't get it done. I tried to set up a path to my bin directory (located in my home directory) and then save a script in there with information about colors (basically a DIR_COLORS directory I synced from another network). I then tried chmod to make it an executable file without luck. I really want to change colors so I can distinguish between different things within my shell. Please help! I am running on X11.

Additionally, if anyone knows how to set a path effectively to run scripts from .bash from any directory, that would be great to hear about, too.

Thanks!
 
Old 06-23-2011, 12:41 PM   #2
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 505

Rep: Reputation: 215Reputation: 215Reputation: 215
Quote:
Originally Posted by afaucett View Post
I tried to set up a path to my bin directory (located in my home directory) and then save a script in there with information about colors (basically a DIR_COLORS directory I synced from another network). I then tried chmod to make it an executable file without luck.
Read the dir_colors manpage, it will explain to you how it works and which files are involved:

Code:
man 5 dir_colors
In a nutshell, terminal colors are defined in /etc/DIR_COLORS, and a couple of environmental variables are set in the profile. In Slackware that's in /etc/profile.d/coreutils-dircolors.sh. You can use a file called .dir_colors in your home directory to override /etc/DIR_COLORS.

Quote:
Originally Posted by afaucett View Post
Additionally, if anyone knows how to set a path effectively to run scripts from .bash from any directory, that would be great to hear about, too.
For that you can set your path in $HOME/.bash_profile and/or $HOME/.bashrc. Read the bash manpage in the INVOCATION section for details about these files. You can add your bin directories to the PATH like this:

Code:
export PATH=$PATH:/path/to/your/bin/dir:/path/to/another/dir

Last edited by Diantre; 06-23-2011 at 12:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop environment color settings: do they affect web browser color? stf92 Linux - Newbie 2 06-14-2011 03:17 PM
mplayer color settings ringo1 Linux - Desktop 1 11-14-2006 07:42 AM
KDE browser color settings csDraco_ Slackware 1 03-27-2006 01:29 AM
Why can't I change Emacs color settings? SuperRob2000 Linux - Software 3 08-27-2004 07:07 AM
Mplayer remember color settings TazG Linux - Software 0 07-13-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration