Getting KM to use a specific shell containing the right ruby / gems

Hey Gregory,

See “How Scripts Are Processed” on this page in the wiki:

https://wiki.keyboardmaestro.com/action/Execute_a_Shell_Script

In short:

NONE of your terminal environment is picked up from any config files by the shell Keyboard Maestro invokes.

You can get around this by using the `source` command.

#!/usr/bin/env bash
source ~/.profile;

-Chris

4 Likes