Created
September 18, 2012 16:26
-
-
Save mslinn/3744101 to your computer and use it in GitHub Desktop.
RUn Notepad++ on 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 | |
if [ $# != 1 ]; then | |
echo "Usage: $(basename $0) filename" | |
echo " If filename is not found in the current directory then subdirectories are searched" | |
echo " The file is then edited in Notepad++" | |
exit -1 | |
fi | |
if [ -f "$1" ]; then | |
FN=$1 | |
else | |
FN="$(find . -name $1)" | |
fi | |
FN2=`cygpath -w "$FN"` | |
"C:/PROGRA~2/Notepad++/notepad++.exe" $FN2 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment