Say, I defined a command in my ~/.bash_profile
, (MacOS Sierra, Macbook Air, if it's relevant)
function sayHello(){
echo Hello world!
}
and while using vim, intend to call
:! sayHello
It does not recognize, and tells me
/bin/bash: sayHello: command not found
shell returned 127
The actual situation is that I want compile something, so it would be handy to use external command. If not, then fine, I can open up another terminal, cd
-ed on the same directory.