From sheBanG to Shim
Project description
Usage
- Install bangshim with scoop
scoop install https://raw.githubusercontent.com/Winterreisender/bangshim/refs/heads/master/bangshim.json
or uv
uv tool install bangshim
or pip
pip install bangshim
It's also recommended to install uutils/coreutils for the env in shebang
- Write any script with shebang, supposing you have an intepreter (Git Bash, MSYS2, etc.) installed for your scripts.
#!/usr/bin/sh
print("Hello World")
- Make your script executable
bangshim ./myscript.sh
./myscript
# "Hello World"
FAQ
-
Q: Why doing this?
A: shebang is the Unix way for executable scripts, while shim are the best practice for Windows. And this is a tool to make the Unix style work in Windows. -
Q: How it works?
A: bangshim do a simple things, search intepreter from shebang inPATH, and generate args for shim. -
Q: How to work with
/usr/bin/env?
A: We suppose you installed anenv.exein yourPATH. For example, you can install uutils/coreutils byscoop install uutils-coreutils
Build
See Makefile for more information
Credit
shim.exefrom kiennq/scoop-better-shimexe licensed underMIT OR Unlicense
License
Copyright 2025 Winterreisender
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bangshim-0.2.0.tar.gz.
File metadata
- Download URL: bangshim-0.2.0.tar.gz
- Upload date:
- Size: 87.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c4adc196a5c3593f87cf1730e5c75411db514a3d6ae7b140edbeb8bf100a63
|
|
| MD5 |
524fa07b679b0dd1fa435fb4881659f9
|
|
| BLAKE2b-256 |
c0ef672ac6b7c2a5d7e764acc0f6e192f00d883257ba01b4f6e154d60a0ffd01
|
File details
Details for the file bangshim-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bangshim-0.2.0-py3-none-any.whl
- Upload date:
- Size: 87.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
857eed64dd615c8ef59c93e6d63b3e554d3d881dc4f450ec7cf740c09d6ea1e5
|
|
| MD5 |
d2426eede7b4dad02a8ff416aaaa5229
|
|
| BLAKE2b-256 |
b3aa457c50f28924cc26983abb5b55227a707bab04cca427907f56f97affab86
|