Last active
May 14, 2024 02:46
-
-
Save beakr/10424899 to your computer and use it in GitHub Desktop.
Open Windows file explorer on a directory with Cygwin.
This file contains hidden or 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.exe | |
# This script opens a given directory up in the Windows file explorer. I did | |
# this to make it easy when opening directories in the Cygwin system using | |
# the explorer. | |
# | |
# To install: | |
# | |
# $ touch /usr/bin/opene | |
# $ vim /usr/bin/opene | |
# Copy contents of this script to /usr/bin/opene... | |
# $ chmod +x /usr/bin/opene | |
# | |
# Now test it out! | |
# | |
# $ opene . | |
# | |
# NOTE: credit for the full command goes to this message on the Cygwin mailing | |
# list: http://cygwin.com/ml/cygwin/2002-09/msg00631.html | |
/cygdrive/c/Windows/explorer.exe /e,`cygpath -w "$1"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment