Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to bring my alias across when I substitute another user 2

Status
Not open for further replies.

jcchoy

Programmer
Feb 1, 2003
9
CA
Hello. I have built a lot of handy alias to shorten my unix commands under my own id in .cshrc. But when I substitue to a production id, I am frustrated by I can't use my alias. I don't want to change the production id .cshrc but I want to be able to execute the alias commands that are in my own .cshrc for the duration of my production id session.

The simple solution I thought of right now is to put all my alias in a script and give read and execute permission of this script to the production id and execute it everytime I want to use the same alias commands in the production id.

Any ideas or suggestions would be most welcome.
 
Copy your own [tt].cshrc[/tt] file to the other user's home directory. //Daniel
 
create a '.aliases' file [or however you want to name it], and [if you're using csh/tcsh] 'source ~/.aliases' it from your ~/.cshrc file.

Copy the ~/.aliases file to your 'production' system and modify your 'production' ~/.cshrc file accordingly.

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Thank you very much Daniel and Vlad for your time and answers. I don't want to get into troubles by changing production id home directory with mine but both very good suggestions for my consideration. I have given you both a star.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top