here is how i configured the
prompt in
/etc/profile. Find the PS1="# " line and comment it out with a # at the beginning, then create a new one below it:
the "36" determines the color and ">" is the character displayed
PS1=\`pwd\`'\[\033[1;
36m\]>\[\033[0m\]'
the
pwd above is the linux command for "
print working directory"
just replace the "
36" above with one of these numbers for a different color for the ">":
- Black 30
Blue 34
Green 32
Cyan 36
Red 31
Purple 35
Yellow 33
White 37
here is a new one where the current working directory will be diplayed in red and the symbol displayed will be "=>" in cyan. \w is used here instead of the pwd command to display current working directory.
Code: Select all
PS1='\[\033[1;31m\]\w\[\033[1;36m\]=>\[\033[0m\]'
see the bash prompt howto at:
http://tldp.org/HOWTO/Bash-Prompt-HOWTO/
--------------------------------------------------
After some trial and error and some ideas from archwiki page, i got the Xdefaults to work- with some odd changes though: had to change all "URxvt" to "urxvt" and change some "*" to "." --see code.
Before i just used command line options stored in pinboard (right click console icon, edit item, Arguments to pass.) For example:
-tr -fg white -tint gray -sh 80 -fn "xft:Bitstream Vera Sans Mono:antialias=true:pixelsize=14"
and then add this to end when useing xcompmgr:
-depth 32 -bg rgba:0000/0000/0000/4444
These days, urxvt seems to need an actual .ttf font to work properly with the xft, though. But VeraMono.ttf is only 49k.
my .Xdefaults - don't try this at home.....
this is with the standard small urxvt (138k) included with woof built pups
! is a comment marker in the .Xdefaults so lines beginning with ! are inactive.
Code: Select all
Rxvt.keysym.0xFF50: \033[1~
Rxvt.keysym.0xFF57: \033[4~
# scrollbar style - rxvt (default), plain, next, or xterm
urxvt*scrollstyle:next
urxvt*scrollBar_right:true
!urxvt.geometry: 400x30
urxvt.buffered: true
urxvt.background: black
urxvt.foreground: green
urxvt.cursorColor: blue
urxvt.underlineColor: green
urxvt.font:xft:Bitstream Vera Sans Mono:pixelsize=14:antialias=true
!------------
!True Transparency
!------------
!set to 32-bit for real transparency (compositing required (see xcompmgr)
urxvt.depth:32
!transparent=0000 opaque=ffff
!urxvt*background: rgba:1111/1111/1111/dddd
urxvt.background:rgba:0000/0000/0000/4444
!urxvt*background: rgba:1111/1111/1111/0000
!------------------
!False tranparency
!------------------
!urxvt.transparent: true
!urxvt.shading: 50
urxvt.secondaryScroll:true # Enable Shift-PageUp/Down in screen
---------------------------------------------------------------------------
Here is an attatchment of my setup
for MRXVT,
this seemingly sidesteps the problem with the *@euro locale, however, i don't know how this plays out on systems where nimbus mono L is the only available monospace xft font.