Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

When I start a new screen, the aliases that I have set in my ~/.profile do not seem to be sourced.

Does anyone know where I can change this or which file is actually read when starting a new screen?

share|improve this question
    
Doesn't screen -l work? –  lhf Jul 6 '12 at 22:11

1 Answer 1

up vote 3 down vote accepted

For an alias to work in ~/.profile the session needs to be a login shell. Bash, which is probably what you're using, is typically read from ~/.bash_profile.

There's a good explanation of the differences mentioned here:

http://superuser.com/questions/183870/difference-between-bashrc-and-bash-profile

share|improve this answer

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.