[185] in athena10
Re: System Dotfiles (was Re: /svn/athena r22913
daemon@ATHENA.MIT.EDU (Kenneth Charles Arnold)
Thu Apr 24 16:53:33 2008
From: Kenneth Charles Arnold <kcarnold@MIT.EDU>
To: athena10@mit.edu
Cc: Timothy G Abbott <tabbott@mit.edu>
In-Reply-To: <200804242025.m3OKP3xi009814@speaker-for-the-dead.mit.edu>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Apr 2008 16:52:16 -0400
Message-Id: <1209070336.7731.14.camel@m38-370-9.mit.edu>
Mime-Version: 1.0
On Thu, 2008-04-24 at 16:25 -0400, Jonathon Weiss wrote:
> > Notifying people is going to be hard. People ignore lert/gms and
> > email for important things like deactivations - I have no reason to
> > believe it would work any more effectively for notifying users of
> > shell changes. Dotfiles are going to be a problem, particularly for
> > professors who customized their accounts years ago, are reluctant to
> > come in for support, and are reluctant to play with new settings and/
> > or start from scratch. I'm trying to think of any other recent major
> > changes in order to set some precedent. The WinAthena AFS->DFS
> > migration doesn't really count, as it was a small percentage of the
> > community to begin with. Perhaps some folks who were around during
> > the NFS->AFS migration can offer some insight as to how to manage this?
1.
function setenv { eval "export \"$1\"=\"$2\""; }
(even: [ "$0" != "bash"] && echo "Fix $0...")
2.
if cmp ~/.cshrc /usr/prototype_user/.cshrc; then
echo "You have customized your environment, so we are leaving your"
echo "old setup alone. See $INFO_LOCATION for more details."
else
chsh $USER bash # or something that actually works
fi
For .environment, I already have my shell as bash but .environment is in
csh format; this seems to work. If not, sed -i.bak 's/setenv (\w+)
(.*)$/export \1=\2/g .environment, etc.)
Apologies if these have already been brought up; I haven't been
following the rest of this discussion.
-Ken