I wrote a package for NCL (NCAR Command Language), which has the NCL.sublime-build:
{
"selector": "source.ncl",
"shell_cmd": "cd ${file_path}; ncl ${file}"
}
In Mac OS X, there is no problem. I can run a script by pressing ‘cmd-b’. But in Linux, I press ‘ctrl-b’ and encounter:
/bin/bash: ncl: command not found
[Finished in 0.0s with exit code 127]
[shell_cmd: cd /home/dongli; ncl /home/dongli/test.ncl]
[dir: /home/dongli]
[path: /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games]
Obviously, the PATH is not correct. So I would like to know which BASH configuration file does ST read? The settings for NCL is in .bashrc.
Thanks for help!
UPDATE:
I tried to type subl in terminal to open ST, and the ncl command is correctly invoked. But I would like ST can read .bashrc when opened by clicking the icon.