Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make cygwin autocomplete windows paths?

Tags:

cygwin

I don't want to type /cygdrive/c/path/to/stuff, especially when using tools that don't know anything about cygwin. Is there a way to configure cygwin to autocomplete "c:\path\to\stuff" or even "c:/path/to/stuff"?

like image 910
wowest Avatar asked Jan 12 '09 23:01

wowest


2 Answers

For tools that can't understand cygwin paths, you'll need to convert them to windows paths. The cygpath utility can do this for you:

notepad $(cygpath -w /cygdrive/c/path/to/stuff)

You can probably create aliases or wrapper scripts for commonly-used windows executables.

like image 110
Alastair Avatar answered Oct 22 '22 07:10

Alastair


Autocomplete should be working after the /cygdrive/c bit. Make a symlink for "/cygdrive/c/" to something else, like "ln -s /cygdrive/c /c". Also, make sure your inputrc is set up correctly.

like image 3
John Safranek Avatar answered Oct 22 '22 07:10

John Safranek