https://github.com/opcode81/genpathextaliases
generates bash aliases for files that are executable on Windows (as defined through PATHEXT) but aren't in msys or cygwin bash
https://github.com/opcode81/genpathextaliases
Last synced: about 1 month ago
JSON representation
generates bash aliases for files that are executable on Windows (as defined through PATHEXT) but aren't in msys or cygwin bash
- Host: GitHub
- URL: https://github.com/opcode81/genpathextaliases
- Owner: opcode81
- Created: 2013-06-19T20:41:25.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-11-19T21:02:20.000Z (over 1 year ago)
- Last Synced: 2025-01-26T01:44:49.074Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
genPathExtAliases
=================
Windows supports a configurable set of file extensions which can be executed when found on the `PATH`.
Specifically, the extensions configured in the `PATHEXT` envioronment variable, e.g.
PATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.LNK"
Unfortunately, Bash shells for Linux (e.g. Git-Bash) will typically only execute `.exe` files they find on the `PATH`.
This tool generates a shell script containing alias definitions for files that are executable on Windows.
This shell script can then be sourced in e.g. `.bash_profile` to make the respective programs executible in Bash.
For instance, for the msys-based Git-Bash, run
python genPathExtAliases.py msys
which will generate the file `./pathextAliases.sh`.
Then add a line like the following `.bash_profile`:
source /path/to/genPathExtAliases/pathextAliases.sh