From kde-devel Mon Apr 25 18:31:45 2005 From: Mauricio Bahamonde Date: Mon, 25 Apr 2005 18:31:45 +0000 To: kde-devel Subject: Re: Idea for KDE and directories Message-Id: <200504251431.49549.elkrammer () kde ! cl> X-MARC-Message: https://marc.info/?l=kde-devel&m=111445388607872 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============1977089964==" --===============1977089964== Content-Type: multipart/signed; boundary="nextPart8340592.HcJP2yz0fu"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart8340592.HcJP2yz0fu Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 25 April 2005 13:33, David Boosalis wrote: > WOuld it not be a nice feature if when you cd'd to a directory it would > tell you a description of that directory summed up in one or two sentence= s: I don't think this is a Konsole Wish... This should be done at shell level = but=20 i'm not very convinced it's a good idea ;-)=20 However, I found a easy solution to implement what you want: Edit your .bashrc and add the following to the end of the file: function cd { command cd "$@"; if [ -s .description ] then cat .description fi } Now you can create .description files on each dir you want this behaviour a= nd=20 each time the file .description is found on a dir, it will output it's=20 content... Not sure if this is somehow what you wanted... Greetings, =2D-=20 Mauricio Bahamonde If there is a possibility of several things going wrong, the one that will= =20 cause the most damage will be the one to go wrong -- Murphy's Law --nextPart8340592.HcJP2yz0fu Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBCbTeVuwJRSrfnZvsRAjEBAJ98eph8d2VJYhvovHqeG6xS1VlXeACfZW8P JBdQSPVI7UK7E6cjbbFy24g= =gYqq -----END PGP SIGNATURE----- --nextPart8340592.HcJP2yz0fu-- --===============1977089964== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============1977089964==--