Created
March 17, 2014 16:27
-
-
Save wesleybliss/9602718 to your computer and use it in GitHub Desktop.
Simple open shortcut for Cygwin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Very basic open script that either opens a path specified, | |
# or opens your current directory, in Windows Explorer, also | |
# accounting for path translation (via cygpath) | |
# | |
# Usage: | |
# $ open # Opens current directory | |
# $ open /my/unix/path # Opens a given path | |
if [ -z "$1" ]; then | |
explorer `cygpath -w "$PWD"` | |
else | |
explorer `cygpath -w "$1"` | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment