Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!samsung!aplcen!haven!uvaarpa!mcnc!rti!sunpix!matthew From: matthew@sunpix.UUCP ( Sun Visualization Products) Newsgroups: comp.unix.questions Subject: Re: The USE OF ALIAS Message-ID: <989@friar-taac.UUCP> Date: 9 Nov 89 16:32:54 GMT References: <5398@uhccux.uhcc.hawaii.edu> Reply-To: matthew@friar-taac.UUCP (Matthew Stier - Sun Visualization Products) Organization: Sun Microsystems, RTP, NC Lines: 29 In article <5398@uhccux.uhcc.hawaii.edu> bill@uhccux.uhcc.hawaii.edu (William J. King) writes: > >anybody know how to use an alias from my .login when i have >substituted user to another's? >bill@uhccux.bitnet The simplest way that comes to mind, is to have all your aliases in their own file. (i.e. '.alias') Your own .login can source them when needed, and you can also source them when you are 'su'ed. In your .login: if ( -f .alias ) source .alias And while su'ed: su@machine% source /home/yourlogin/.alias Your aliases are now overlayed on top of the aliases specified by the su'ed account. -- Matthew Lee Stier | Sun Microsystems --- RTP, NC 27709-3447 | "Wisconsin Escapee" uucp: sun!mstier or mcnc!rti!sunpix!matthew | phone: (919) 469-8300 fax: (919) 460-8355 |