Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[info] .Xdefaults and bashrc with aterm
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
rockwolf
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2005
Posts: 93
Location: some sort of ghetto

PostPosted: Tue Oct 11, 2005 7:41 pm    Post subject: [info] .Xdefaults and bashrc with aterm Reply with quote

I just found something out that might be interesting for people who use aterm.

I've got this in my ~/.bashrc:
Code:
#prompt
PS1="\n\[\033[1;34m\]\$(/bin/date)\n\[\033[1;34m\]\w\n\[\033[1;34m\]\u@\h:
\[\033[0m\]\[\033[1;34m\]\$(/bin/ls -1 | /usr/bin/wc -l | /bin/sed 's: ::g') files \[\033[1;34m\]\$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')\[\033[1;34m\] -> \[\033[0m\]"

This gives me a very nice informative bash prompt.
More info: http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Bash-Prompt-HOWTO.html#AEN329
or search for "more informative bash prompt".
Please note the [1;34m\]
It means the color of my aterm should be light blue. But while I changed this, it had a different effect:
The color went white. After playing around and searching I found this out:

The color is overridden by this line in my .Xdefaults file:

Code:
aterm*color12:     #ffffff

So the solution:
Comment this line out:
Code:
!aterm*color12:     #ffffff


Hope this can help someone... :wink:
_________________
The only real failing is when you stop trying.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Oct 11, 2005 7:43 pm    Post subject: Reply with quote

Please use D, T & T for things like this.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
rockwolf
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2005
Posts: 93
Location: some sort of ghetto

PostPosted: Tue Oct 11, 2005 8:01 pm    Post subject: Reply with quote

What's D, T & T ?
_________________
The only real failing is when you stop trying.
Back to top
View user's profile Send private message
rockwolf
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2005
Posts: 93
Location: some sort of ghetto

PostPosted: Tue Oct 11, 2005 8:02 pm    Post subject: Reply with quote

Oh yeah, Documentation ,Tips and Tricks... Sorry, missed that one :) I'll remember it next time.
_________________
The only real failing is when you stop trying.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Oct 11, 2005 9:22 pm    Post subject: Reply with quote

You can request a forum change in Feedback - check the stickies there.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Karlsruhe, Germany

PostPosted: Wed Oct 12, 2005 7:27 am    Post subject: Reply with quote

Moved from Desktop Environments to Documentation, Tips & Tricks. See Extra informative Bash prompt as well.
_________________
KDE
Back to top
View user's profile Send private message
rockwolf
Tux's lil' helper
Tux's lil' helper


Joined: 25 Mar 2005
Posts: 93
Location: some sort of ghetto

PostPosted: Wed Oct 12, 2005 7:30 am    Post subject: Reply with quote

Update:
colors specified in .Xdefaults are all bold.
colors specified in .bashrc can be both.

If you comment a line out in your .Xdefaults, directories and or files are shown in a certain color.
Commenting out all lines in .Xdefaults let's you change your bash prompt info in any color you want,
but this way you can not set your directories and/or files in a certain color. You'll have to take the default colors.
It's kind of a matter of finding the right combination between specified colors in .Xdefaults and
in .bashrc.
Too bad, wish there was an easier way... :? Wait... maybe there is and I just don't know yet? :P
If anyone knows... :wink:
_________________
The only real failing is when you stop trying.
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Sat Jan 07, 2006 2:22 am    Post subject: Reply with quote

adaptr wrote:
Please use D, T & T for things like this.


hey, you could have been a bit less cryptic with someone with a post count of 39. Try cut and paste if you dont like typing :wink:
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum