Created
March 24, 2009 06:36
-
-
Save erickedji/83978 to your computer and use it in GitHub Desktop.
Cygwin .bashrc goodies
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
#Copied from http://blog.athulacharya.com/2009/03/cygwin-bashrc-goodness.html | |
# Open a CMD shell under Cygwin, optionally specifying a working directory | |
function winsh() { | |
if [ "x${1}" != "x" ]; then | |
P=${1} | |
else | |
P=. | |
fi | |
cmd /c start cmd /k "cd `cygpath -aw ${P}`" | |
} | |
# Open a file, as if you double clicked it in windows explorer | |
function open() { | |
explorer `cygpath -aw "$1"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment