Please Help Me Untangle My Bash/Shell Issue

Hey Guys,

This is how I handle that.

Execute a Shell Script @Working.kmmacros (1.9 KB)
Keyboard Maestro Export

5.2.9(1)-release

I installed BASH 5 with MacPorts rather that Homebrew, but the principle should be the same.

I do have to set my ENV_PATH variable correctly for this to work, and mine encompasses quite a lot and thus is pretty complex:

/opt/local/bin:/opt/local/sbin:/Users/myUserName/perl5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/TeX/texbin:

I used to do this manually, but I've accidentally deleted it a few times and have codified the process in a macro.

Here's a macro that creates a ENV_PATH Keyboard Maestro variable for you using your Terminal to extract your system's current assigned $PATH string.

Replicate $PATH From Your Terminal.app Environment to Keyboard Maestro

-Chris

1 Like