I want to open Cygwin's terminal in the specified folder from the right-click of the explorer.

Asked 1 years ago, Updated 1 years ago, 51 views

As it says here, I was able to do what I wanted to do with here

here-i-t mintty
https://stackoverflow.com/questions/9637601/open-cygwin-at-a-specific-folder

If the folder name is in English, right-click the folder in Explorer and Cygwin's terminal will open it.

However, if the folder name is in Japanese, it will not work properly. /cygdrive/c/WINDOWS/system32
opens.

What should I do to make the Japanese folder work properly?

windows cygwin

2022-09-30 19:40

1 Answers

I am writing to let you know that I have done the following procedure after further investigation.

下記 Save the following file name "a.reg" somewhere on Windows.
②Edit C:\\pg\\cygwin64 to match the cygwin path in your environment.
③Double-click a.reg to register in the registry.
④Right-click the Japanese folder in Explorer and run Cygwin Here.
⑤Mintty starts in the Japanese folder.

In case of non-ASCII, it was stated below that the mintty option should be "--dir".
https://github.com/mintty/mintty/wiki/Tips

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin64_bash]
@ = "Cygwin Here (&B)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin64_bash\command]
@ = "C:\\pg\\cygwin64\\bin\\mintty.exe --dir\"%1\"-e/bin/xhere/bin/bash"

[HKEY_CLASSES_ROOT\Directory\shell\cygwin64_bash]
@ = "Cygwin Here (&B)"

[HKEY_CLASSES_ROOT\Directory\shell\cygwin64_bash\command]
@ = "C:\\pg\\cygwin64\\bin\\mintty.exe --dir\"%1\"-e/bin/xhere/bin/bash"

[HKEY_CLASSES_ROOT\Drive\shell\cygwin64_bash]
@ = "Cygwin Here (&B)"

[HKEY_CLASSES_ROOT\Drive\shell\cygwin64_bash\command]
@ = "C:\\pg\\cygwin64\\bin\\mintty.exe --dir\"%1\"-e/bin/xhere/bin/bash"


2022-09-30 19:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.