Skip to content

Instantly share code, notes, and snippets.

View aditya-sahu's full-sized avatar
💭
A UDP packet walks into a bar, no one acknowledges him.

aditya sahu aditya-sahu

💭
A UDP packet walks into a bar, no one acknowledges him.
View GitHub Profile
@gene-pavlovsky
gene-pavlovsky / cygrun.sh
Last active January 4, 2019 21:48
Cygwin: run a Cygwin or Windows program with pathname arguments converted to UNIX or Windows format.
#!/bin/bash
#
# Run a program, converting UNIX and Windows format path arguments.
#
# Install in Cygwin's `bin` dir or elsewhere in your path.
# Create a symlink for convenience: `ln -s cygrun.sh cygrun`.
#
# Use `cygrun -w windows-program unix-path ...` to run Windows programs (e.g. from UNIX software).
# E.g., in my .gitconfig core.editor is set to `cygrun -w 'C:/Program Files/Notepad2/Notepad2.exe'`.
#