Skip to content

Instantly share code, notes, and snippets.

@mslinn
Created September 18, 2012 16:26
Show Gist options
  • Save mslinn/3744101 to your computer and use it in GitHub Desktop.
Save mslinn/3744101 to your computer and use it in GitHub Desktop.
RUn Notepad++ on cygwin
#!/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