3

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

6
  • What do you use for source? A script (which script) or a file from the system (which one)? Aug 7, 2013 at 8:05
  • its used to run a bash script
    – zen
    Aug 7, 2013 at 8:17
  • 1
    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? Aug 7, 2013 at 8:20
  • yup thats right
    – zen
    Aug 7, 2013 at 8:24
  • Can you post your /opt/ros/groovy/setup.bash file on paste.ubuntu.com? Aug 7, 2013 at 10:39

1 Answer 1

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"
1
  • No I am not launching my terminals with a login shell. Yup my .profile contain ~/.bashrc
    – zen
    Aug 12, 2013 at 1:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .