From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DtYHO-0005FQ-Ud for garchives@archives.gentoo.org; Fri, 15 Jul 2005 22:03:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6FM1vgC002886; Fri, 15 Jul 2005 22:01:57 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6FLx7ox031714 for ; Fri, 15 Jul 2005 21:59:07 GMT Received: from zproxy.gmail.com ([64.233.162.200]) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DtYDP-0003j9-S7 for gentoo-dev@lists.gentoo.org; Fri, 15 Jul 2005 21:59:27 +0000 Received: by zproxy.gmail.com with SMTP id n29so408385nzf for ; Fri, 15 Jul 2005 14:59:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cVbT9J+9uescw5QiBGwR01T5Ky4Eu/dgJE7vd0pV+KE/0hzauo5G/LryYK+o+5aw/F7XgC7Hgu5jTVxauPLeMc7dsLhQey9iIdEoIMu19iMDTV6BRiqjWJ7NFf9AT2WQ5efLOOVnhzUlZbWbinelMFtKtB0gM4OuxEKXtoxC9Dk= Received: by 10.36.57.11 with SMTP id f11mr1893462nza; Fri, 15 Jul 2005 14:59:27 -0700 (PDT) Received: by 10.36.141.2 with HTTP; Fri, 15 Jul 2005 14:59:27 -0700 (PDT) Message-ID: <9f90e8bf05071514597043b7bb@mail.gmail.com> Date: Fri, 15 Jul 2005 18:59:27 -0300 From: Herbert Fischer To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] /etc/profile.d/ Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j6FLx7ox031714 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id j6FM1vhg002886 X-Archives-Salt: 680322e8-98b1-43db-901a-7f3e5098ad53 X-Archives-Hash: a431b7525fbb33cde8d02789c4f1cc6f Hi, I'm new to this list and I really don't know if this is the right place to post this message. I already posted something about this on the gentoo forums and I don't know too if the correct persons are seeing that, so I decided to post here. Sorry for the double posting, so I'll be straight on the fact. In about one and a half year working with Gentoo I had a lots os yeepies and some boring problems. I love the /etc/env.d, env-update, /etc/profile.env thing but I think that is something missing. In the past I worked many years with Slackware. Now I replaced Slackware with Gentoo and everywere I use Gentoo, even on some old creepy IBM-PPC B50 hardware. In Slackware I had /etc/profile.d/ as a place to customize all my shell environment, including aliases, prompt, etc, without touching original Slackware's files. In Gentoo we need to "hack" files that sometimes are changed in some "emerge world" updates, like /etc/profile, /etc/skel/.bashrc, and that is a little mess to me, as when etc-update's list is too long I place a "-5" (auto update) and voil=E1... all my customizations are gone. I suggest Gentoo adopting a /etc/profile.d/ dir like Slackware, or even better, have some way, some place, to customize aliases, prompts, etc, without being replaced on "etc-update"s... some place untouchable for Gentoo, by Gentoo and that's automatically parsed on /etc/profile (or somewhere else) by default. Slackware parses /etc/profile.d/ by having those lines bellow on /etc/pro= file: # Append any additional sh scripts found in /etc/profile.d/: for file in /etc/profile.d/*.sh ; do if [ -x $file ]; then . $file fi done ... and those lines in /etc/csh.login (for csh users): # Append any additional csh scripts found in /etc/profile.d/: [ -d /etc/profile.d ] if ($status =3D=3D 0) then set nonomatch foreach file ( /etc/profile.d/*.csh ) [ -x $file ] if ($status =3D=3D 0) then source $file endif end unset file nonomatch endif That way the root user only need to create new files on /etc/profile.d/ to customize their shells. *.sh for bash/ash/sh and *.csh for csh/tcsh shells. Best regards, Herbert G. Fischer --=20 gentoo-dev@gentoo.org mailing list