Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Created March 31, 2016 12:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/933f8a7808c9ecb9a0418d2ea3864a21 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/933f8a7808c9ecb9a0418d2ea3864a21 to your computer and use it in GitHub Desktop.
CLI: Detect Cygwin or MINGW
#!/usr/bin/env bash
case "$(uname --kernel-name)" in
*cygwin*|*CYGWIN*|*mingw*|*MINGW*|*msys*|*MSYS*)
echo "I'm in cygwin or mingw!"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment