Date: Fri, 13 May 2005 16:52:06 -0400 From: "Michael W. Oliver" <michael@gargantuan.com> To: current@freebsd.org Subject: job count in (t)csh prompt b0rken Message-ID: <20050513205206.GC40601@gargantuan.com>
next in thread | raw e-mail | index | archive | help
--C1iGAkRnbeBonpVg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
hi guys.
just upgraded to latest CURRENT this morning, now my prompt is hosed.
among other things, it usually has a blurb which includes the job count,
expressed as:
jobs(%j)
now, it just has a single number representing the job count and all
other good info is gone. worked fine with CURRENT from '04/28/05
00:20:45', which was my last CURRENT build before today.
old prompt:
michael phoenix.gargantuan.com (Fri) 2005-05-13 15:46:08 ~
line(ttyp2) jobs(0) signal(0)
>
current prompt:
0
here is the full monty...
set FD_DEF=3D"%{^[[0;0;0m%}"
set FB_DEF=3D"%{^[[0;1;0m%}"
set FD_GRY=3D"%{^[[0;0;30m%}"
set FB_GRY=3D"%{^[[0;1;30m%}"
set FD_RED=3D"%{^[[0;0;31m%}"
set FB_RED=3D"%{^[[0;1;31m%}"
set FD_GRN=3D"%{^[[0;0;32m%}"
set FB_GRN=3D"%{^[[0;1;32m%}"
set FD_YEL=3D"%{^[[0;0;33m%}"
set FB_YEL=3D"%{^[[0;1;33m%}"
set FD_BLU=3D"%{^[[0;0;34m%}"
set FB_BLU=3D"%{^[[0;1;34m%}"
set FD_MAG=3D"%{^[[0;0;35m%}"
set FB_MAG=3D"%{^[[0;1;35m%}"
set FD_CYN=3D"%{^[[0;0;36m%}"
set FB_CYN=3D"%{^[[0;1;36m%}"
set FD_WHT=3D"%{^[[0;0;37m%}"
set FB_WHT=3D"%{^[[0;1;37m%}"
#
set is_root =3D ""
if ("$uid" =3D=3D "0") then
set is_root =3D "${FB_RED}(root)${FD_DEF}"
endif
#
# the whitespace at the end of each line is manadatory, else
# the prompt will be hosed up when using <home> and <end>
#
set prompt =3D "\n${FB_RED}%n${FD_DEF} ${FB_CYN}%M${FD_DEF} (%d) %Y-%W-%D
${FB_GRN}%P${FD_DEF} ${FB_YEL}%~${FD_DEF} \n${FD_YEL}line(%l)${FD_DEF}
${FD_MAG}jobs(%j)${FD_DEF} ${FD_GRN}signal(%?)${FD_DEF}
\n${is_root}${FD_YEL}%#${FD_DEF} "
(that 'set prompt' is all one line, btw)
thanks in advance for any pointers on fixing this.
--=20
Mike Oliver
[see complete headers for contact information]
--C1iGAkRnbeBonpVg
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)
iD8DBQFChRN2sWv7q8X6o8kRAtNgAJ0cIgxbYm+IIU9SeV8LDfuJhBLAigCfWWcG
px2Fpx+cMNYcouydcbYQg8g=
=oCWE
-----END PGP SIGNATURE-----
--C1iGAkRnbeBonpVg--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050513205206.GC40601>
