Skip to content

Instantly share code, notes, and snippets.

@gialloporpora
Created June 20, 2012 21:16
Show Gist options
  • Save gialloporpora/2962282 to your computer and use it in GitHub Desktop.
Save gialloporpora/2962282 to your computer and use it in GitHub Desktop.
Function to add an edit command to open files with Windows text editor in Cygwin
# Finally, thanking Larry Hall on cygwin newsgroup
# I have my edit command to use my favorite text editor on Cygwin :-D
# These lines must be inserted in .bashrc file in your home
function edit() {
cygstart /cygdrive/c/Programmi/Crimson\ Editor/cedt.exe "$(cygpath -w "$*")";
}
# Simpler, but useful, the open function
function open(){ cygstart "$*";}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment