From: Stephen Shirley (diamond at domain skynet.ie)
Date: Fri 01 Jun 2001 - 10:32:08 IST
On Fri, 1 Jun 2001, Ross Davis wrote:
>
>
> > > PROMPT_COMMAND="echo -e \"\033[0;32m[\$(date +%a\ %b\
> > > %e)](\$NEWDIRSIZE)[\$(jobs | wc -l | awk '{print \$1}')]\033[0m\""
> > >
> > 1. Instead of putting "[\$(jobs | wc -l | awk '{print \$1}')",
> > you could put \j in your $PS1 prompt. From the bash manpage:
> >
> > \j the number of jobs currently managed by the shell
>
> This is an option for the PS? vars. The PROMPT_COMMAND var takes a
> command.
So? That doesn't make any difference. Try
PROMPT_COMMAND="echo -ne \"\033[0;32m[\$(date +%a\
%b\%e)](\$NEWDIRSIZE)\""
PS1="\j]\033[0m\n$PS1"
Steve
-- "My mom had Windows at work and it hurt her eyes real bad"
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:32 GMT