Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've created .kshrc file in my home directory, but all my custom settings are ignored. ENV variable is not set. How can I force ksh to read .kshrc?

Here is my .kshrc:

set -o emacs

export PATH=$PATH:/home/ibykov/bin:/usr/vacpp/bin

PS1="ibykov@host:${PWD##*/}\$"

share|improve this question
1  
Could you please post your .kshrc file here? –  meMangesh Mar 7 '13 at 9:43
    
Thank you for your attention. I edited my question accordingly. –  ibykov Mar 7 '13 at 10:04
add comment

1 Answer 1

up vote 3 down vote accepted

In your .profile add the line

  export ENV=$HOME/.kshrc 
share|improve this answer
    
Thank you very much! My problem solved now. –  ibykov Mar 7 '13 at 10:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.