How to bring up an Explorer window in the current Cygwin shell folder?

0

I'm in a shell session in Cygwin, and want to open up a Windows Explorer window in the current directory you're in. How do I do that?

einpoklum

Posted 2020-01-30T12:08:24.423

Reputation: 5 032

Answers

1

The easy way

cygstart .

The smart-ass way

explorer "$(cygpath -d "$(pwd)")"

This takes the current directory, converts it from the Cygwin to the Windows format, then passes it as the argument to the explorer program.

einpoklum

Posted 2020-01-30T12:08:24.423

Reputation: 5 032

also explorer . – matzeri – 2020-01-31T15:31:58.230

@matzeri: Even though . is a Cygwin, not a Windows, path? – einpoklum – 2020-01-31T17:16:33.603

it is the same. In both the dot means the current directory – matzeri – 2020-01-31T19:05:58.857