> On 20010817.1308, Justin Bengtson said ...
>
> ok, linux time...
> 
> last night i found out how to change my command line font.  anybody else
> have more neat tricks to spruce up a boring command line?

Oh, and I've got this as my prompt.  Drop this in ~/.bashrc if you use
bash...

function elite2 {
  local TTY=`tty|cut -d/ -f3,4`
  local C1="\[\033[32;40m\]"
  local C2="\[\033[35;40m\]"
  local C3="\[\033[0m\]"
  local D="$C2-$C1"
  PS1="$D(\u$C2@$C1\h)$D($TTY)$D(\$(date +%Y%m%d)$C2.$C1\$(date +%H%M))$C2-\n$D(\w)$C2 
| $C3" 
}

elite2
unset elite2


It makes a green and purple prompt that looks like this:

  -(rob@fuggles)-(pts/2)-(20010817.1302)-
  -(~/code) |

--
Rob <rob_at_euglug_dot_net>
my @euglugCode = qw(v+++ e--- eug+ bsd+++ gnu+ S+++);

Reply via email to