ksh - how do you keep aliases permanent?

Chuck Karish karish at mindcraft.com
Thu Mar 14 03:48:13 AEST 1991


In article <557 at genco.bungi.com> rad at genco.bungi.com (Bob Daniel) writes:
>Whenever setting up aliases, they are gone when I log out.  I want to keep
>aliases permanent for the next time I login.  

In your .kshrc, set an exit trap to run the 'alias' builtin
and save the results in a file.  Have .kshrc use what's saved
in the file to set new aliases the next time you log in.

	Chuck Karish		karish at mindcraft.com
	Mindcraft, Inc.		(415) 323-9000



More information about the Comp.unix.shell mailing list