From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MV3gc-0000Zf-4a for garchives@archives.gentoo.org; Sun, 26 Jul 2009 13:22:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA67EE040A; Sun, 26 Jul 2009 13:22:44 +0000 (UTC) Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by pigeon.gentoo.org (Postfix) with ESMTP id 5C2F9E0401; Sun, 26 Jul 2009 13:22:44 +0000 (UTC) Received: by bwz23 with SMTP id 23so597103bwz.13 for ; Sun, 26 Jul 2009 06:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer; bh=UWgsYSUxsMmDFLXOW01j/wIxywkiuR2Yv1qMYJk+JaA=; b=hCwaWoqheoNTHGHtUdS8+SxYLQla2vgZ5F63WT3+Hf4wul/nq5XnEY1FvkBoTszfV+ eCyfazjvNGkZ7lOFPh/LzYW1f6Uphlmsb0qfDmYKG+032QcyLCOXJytrdHHWuR1hL2SA qsEbc2yPlaASsUePplF4AEd4VeSvGaj2Zivlg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer; b=m9B/3hAh/ccxYW0hXWVp9ziACEkXAE0GHYBq7XeiiaM6VJdG7g7V4CHzYUl1lOAW7i HsoDDiGWYaKqyYIHKXRIXbUXPBw71IC4ACiIF2RYyXfCXv4oBzW4v6wKG3DVuogRVJPK wC6+NbBjk5+bZHY+11LTtXDJVHKeWO5k3jYJw= Received: by 10.204.51.210 with SMTP id e18mr1950031bkg.69.1248614563446; Sun, 26 Jul 2009 06:22:43 -0700 (PDT) Received: from ?87.103.16.187? (187.16.103.87.rev.vodafone.pt [87.103.16.187]) by mx.google.com with ESMTPS id 12sm9039861fks.51.2009.07.26.06.22.38 (version=SSLv3 cipher=RC4-MD5); Sun, 26 Jul 2009 06:22:42 -0700 (PDT) Subject: Re: [gentoo-dev] Re: [gentoo-soc] Re: Progress on Universal Select Tool From: =?ISO-8859-1?Q?S=E9rgio?= Almeida To: gentoo-dev@lists.gentoo.org Cc: Robert Buchholz , gentoo-soc@lists.gentoo.org In-Reply-To: <4A696F59.5000200@gentoo.org> References: <1245163715.14589.515.camel@thedude> <8b4c83ad0907222232o6499fcbcjce1d8a063d93d5c1@mail.gmail.com> <1248356100.8713.11.camel@thedude> <200907231728.23329.rbu@gentoo.org> <1248374038.8713.96.camel@thedude> <4A696F59.5000200@gentoo.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-3p2VnBmein82UFH22T4a" Date: Fri, 24 Jul 2009 16:20:49 +0100 Message-Id: <1248448849.8713.112.camel@thedude> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-Archives-Salt: f3edcf13-bc08-4b73-9756-ce5f73d70218 X-Archives-Hash: aba7ff4eda2d59810cd99d990633f3c6 --=-3p2VnBmein82UFH22T4a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2009-07-24 at 10:22 +0200, Michael Haubenwallner wrote:=20 > S=C3=A9rgio Almeida wrote: > > On Thu, 2009-07-23 at 17:28 +0200, Robert Buchholz wrote: > >> On Thursday 23 July 2009, S=C3=A9rgio Almeida wrote: > >>> You changedir, you call uprofile, and > >>> voila, new profile. You login again, default profile. >=20 > ..., change back to your home dir, call uprofile, and you have your > default (=3Dlogin) environment. >=20 Indeed... that's what's supposed to happen. Who wants to call uprofile? Who doesn't? > > if cmd =3D 'chdir': > > uprofile >=20 > > What do you guys think? >=20 > While the per-directory profile sounds interesting and useful (a really > good idea!), as it might solve the requirement for per-project > environment here, the automatism for the 'cd' command feels like more > confusing than useful: "WTF does 'cd' more than change directory?" >=20 Atm, cd just changes dir as it is supposed to. Robert alerted us to the fact that we can trigger a PRE_CMD on most shells when a CHANGEDIR occurs.=20 > Instead, provide a command to update the environment for the current > directory, which does search for an .uprofile/ in all the parent > directories when there is no local one. > Additionally, (let the user) define a *new* command that does both > changing directory and updating the environment. >=20 This is the question... Call uprofile manually or detect the profile automatically? Both capabilities? Mmm... > Another point: the per-directory profile solution feels like there is no > need to distinguish between user- and directory-profile any more - as > the user-profile would not be anything different than ~/.uprofile/, no? >=20 Yes and no. ~/.uselect/ contains a bin/ environment (prepended to your PATH by /etc/profile or something) a env.d/ and most probabily something else that gets executed uppon login. This does not invalidate you having a ~/.uprofile/. uprofile will configure your ~/.uselect/ and your environment variables. Your user profile will not be interpreted by python, uprofile turns profile files (from python) into bin/ and env.d/ environment on your ~/.uselect. This may seem confusing, but that's the best way I can explain. Later this weekend will send a call for ideas/call for modules to the dev list to get everyone known with the uselect environment. I'm just finishing cleaning up the code to start commiting and using git branches. >=20 > Thank you! >=20 I thank you! All! Have a nice weekend! >=20 > /haubi/ >=20 Cheers, S=C3=A9rgio --=20 S=C3=A9rgio Almeida - mephx.x@gmail.com mephx @ freenode --=-3p2VnBmein82UFH22T4a Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkpp0U0ACgkQQXumuXcKj04dXwCfeDe6YUNX6+ESb4e0bLxT8FpM 4RwAn0636XbskjYDHhGQno8hKzkayCNk =tZNn -----END PGP SIGNATURE----- --=-3p2VnBmein82UFH22T4a--