LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   .bashrc configuration (https://www.linuxquestions.org/questions/linux-general-1/bashrc-configuration-312314/)

jasone 04-12-2005 03:50 AM

.bashrc configuration
 
Hi!

I would like some tips about nice colors in my .bashrc files. Maybe someone would like to post their configuration? The code is kinda cryptic to me so examples would be appreciated =)

Edit: I would like to have the steps to where I am before my $ so I don't need 'pwd' all the time, if you know what I mean? Like this for example: user@computer [/home/user/pr0n/]$
;-)

I currently use Insyte's: http://insyte.atspace.com/files/.bashrc

Thanks!

ivanatora 04-12-2005 04:14 AM

Try this, it has that 'pwd' thing + clock :)
PS1 = "\[\033[1;31m\](\t)\[\033[0m\][\u@\[\033[1;33m\]\w\[\033[0m\]]\$ "
Works best on dark backgrounds.

jasone 04-12-2005 04:19 AM

Thanks!

Thats it, now some nice color "schemes" for files, directories, commands and so on, please =)

ivanatora 04-12-2005 05:15 AM

Look at /etc/DIR_COLORS or ~/.dir_colors - these are color definitions for ls. Here is my file (default in Slackware) http://ivanatora.shacknet.nu/files/DIR_COLORS


All times are GMT -5. The time now is 11:50 AM.