.bashrc выполняется только для interactive shell, чего здесь точно нет. Цитата из мануала про Open:
keyword=command (with no spaces
around =), where keyword should be: Open (invoked on Enter or double click),
…
command is any one-line shell command, with the simple macro substitution.
Вангую, что здесь будет non-interactive non-login shell, поэтому выноси функции в отдельный скрипт и делай руками source в твоей команде для Open.