Skip to content

Instantly share code, notes, and snippets.

@wesleybliss
Created March 17, 2014 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesleybliss/9602718 to your computer and use it in GitHub Desktop.
Save wesleybliss/9602718 to your computer and use it in GitHub Desktop.
Simple open shortcut for Cygwin
#!/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