Created
June 20, 2012 21:16
-
-
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
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
# 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