shim.c
shim.c
is a simple Windows program that, when started:
shim
(e.g. C:\bin\foo.exe
will read the file C:\bin\foo.shim
).shim.c
was originally made to replace Scoop's
shim.cs
since it had several important flaws:
shim.c
is:
.shim
file in a simpler way.Ctrl+C
are ignored, and therefore handled directly by the spawned child.
Your processes and REPLs will no longer close when pressing Ctrl+C
.Note: This project is not affiliated with Scoop.
cl /O1 shim.c
..exe
in scoop\shims
by shim.exe
.An additional script, repshims.bat
, is provided. It will replace all .exe
s in the user's Scoop directory
by shim.exe
.
Given the following shim gs.shim
:
path = C:\Program Files\Git\git.exe
args = status -u
In this directory, where gs.exe
is the compiled shim.c
:
C:\Bin\
gs.exe
gs.shim
Then calling gs -s
will run the program C:\Program Files\Git\git.exe status -u -s
.
Shims follow the same format as Scoop's shims: line-separated key = value
pairs.
path = C:\Program Files\Git\git.exe
args = status -uno
path
is a required value, but args
can be omitted. Also, do note that lines must end with a line feed.
SPDX-License-Identifier: MIT OR Unlicense