Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a source command which i have to manually run every time I open a new terminal.

source /opt/ros/groovy/setup.bash

Thus I added the command into the .bashrc file. However the does not seem to been ran as I still need to manually run the command for my application to function properly.

I have added a echo command to ensure the the .bashrc file is being ran by the the terminal and it seem to be the case.

Thanks in advance

share|improve this question
    
What do you use for source? A script (which script) or a file from the system (which one)? –  Radu Rădeanu Aug 7 '13 at 8:05
    
its used to run a bash script –  zen Aug 7 '13 at 8:17
    
So, when you use source /opt/ros/groovy/setup.bash in terminal is ok and when you put this line in ~/.bashrc is not ok? –  Radu Rădeanu Aug 7 '13 at 8:20
    
yup thats right –  zen Aug 7 '13 at 8:24
    
Can you post your /opt/ros/groovy/setup.bash file on paste.ubuntu.com? –  Radu Rădeanu Aug 7 '13 at 10:39

1 Answer 1

Are you launching your terminals with a login shell?

Does your ~/.profile or ~/.bash_profile contain . ~/.bashrc?

If you use gnome-terminal,

  • Edit -> Profiles
  • select your profile and click Edit
  • on the Title andCommand tab, check "Run command as a login shell"
share|improve this answer
    
No I am not launching my terminals with a login shell. Yup my .profile contain ~/.bashrc –  zen Aug 12 '13 at 1:22

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.