Quickly add executables to your path.
This project has been inspired on shimexe by Luke Sampson, but implemented in go.
To build this project from sources you need go compiler 1.16 or newer.
Clone this repoistory.
On Linux run:
go build -ldflags="-s" -trimpath
On Windows run:
go build -ldflags="-s -w" -trimpath
Follow the steps:
-
Copy the
go-shim
to the name of the command you want to run, for example copy it togo-env
. -
Create the configuration file with the same name of the executable, but with the
.ini
extension, for examplego-env.ini
. -
Inside the configuration file put the full path of the correct program to be executed on the key called
command
like on the example bellow.# example configuration for go-shim command = go # optional fixed args passed to command before the args passed to shim args = env