The USE OF ALIAS
Sun Visualization Products
matthew at sunpix.UUCP
Fri Nov 10 03:32:54 AEST 1989
In article <5398 at uhccux.uhcc.hawaii.edu> bill at 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 at 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 at 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 |
More information about the Comp.unix.questions
mailing list