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
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"
© 2024 OneMinuteCode. All rights reserved.