I noticed that
filetype doesn't work reliably on Cygwin.
For example, consider the following piece of code:
filetype * xdg-open
filetype * start, explorer
While it works on Linux, it doesn't work on Cygwin.
What is strange, is that something like this
filetype *.zip zip -sf %c | less
works well on both Linux and Cygwin (given that Cygwin has zip installed).
fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dusk --syntax c %c
does not seem to work on Cygwin, despite
highlight utility working fine in the Cygwin terminal.
Am I missing something? Are there any special configuration that has to be done in order for filetype/fileviewer to work on Cygwin consistently?