Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uwm.edu!linac!att!cbnewsl!bonnie!rbr From: rbr@bonnie.ATT.COM (4197,ATTT) Newsgroups: comp.unix.shell Subject: Re: ksh - how do you keep aliases permanent? Message-ID: <1991Mar11.135601.10595@cbnewsl.att.com> Date: 11 Mar 91 13:56:01 GMT References: <1772@brchh104.bnr.ca> <1991Feb28.173758.21195@en.ecn.purdue.edu> <57517@mcdchg.chg.mcd.mot.com> <1991Mar4.133215.12269@cbnews.att.com> <57993@mcdchg.chg.mcd.mot.com> <7365@mentor.cc.purdue.edu> <544@genco.bungi.com> Sender: @cbnewsl.att.com Reply-To: rbr@bonnie.ATT.COM (Bob Rager) Distribution: na Organization: AT&T Bell Laboratories Lines: 21 In article <544@genco.bungi.com> rad@genco.bungi.com (Bob Daniel) writes: >When defining aliases, is there a way to keep them permanent as they are defined >rather than inserting them directly into .profile? If I have to, I'll write >something that makes aliases and stores them in a file that is launched by >.profile at login but would like to know if it can be done before spending >time on that routine. Store them in a file named ".kshrc" which will be read by ksh at login. At least this is true "ksh" on AT&T UNIX V. Other implementations may use a different name for the file. Check your Ksh manual or talk to your system administrator. The following is an example showing a few lines from my ".kshrc". You can put them in one per line "alias = 'command line' or bunch them as I have. alias \ lf='ls -CF' \ ll='ls -l' Bob Rager