1830354 Members
2296 Online
110001 Solutions
New Discussion

source .alias

 
Gemini_2
Regular Advisor

source .alias

I want to source my .alias file when I login. I put the following entry in my .kshrc

. ~/file/.alias

but, it doesnt work :-(

when I run it manually, then it works..

what did I do wrong?
2 REPLIES 2
Victor BERRIDGE
Honored Contributor

Re: source .alias

Hi,
Your aliases should be in .kshrc
In this case there is no need to do anything else than to add in your .profile
# Set up the KSH env.
ENV=$HOME/.kshrc
export ENV

or you add . ~/file/.alias in .profile...


All the best
Victor
Gemini_2
Regular Advisor

Re: source .alias

or you add . ~/file/.alias in .profile...
#my alias file is very long, so I dont want to add it to .kshrc.

adding to .profile is perfect. thank you!