An open API service indexing awesome lists of open source software.

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

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