Open command window here: Difference between revisions

 
(3 intermediate revisions by the same user not shown)
Line 27: Line 27:
== Cygwin window ⇋ File Explorer (OS: {{Win}}) ==
== Cygwin window ⇋ File Explorer (OS: {{Win}}) ==
=== Open a Cygwin window from the current File Explorer directory ===
=== Open a Cygwin window from the current File Explorer directory ===
[https://www.cygwin.com/ Cygwin]
Steps for [https://www.cygwin.com/ Cygwin]
* (1) Go to your "Send To" folder: {{kbd | key=<nowiki>C:\Users\<your_user_name>\AppData\Roaming\Microsoft\Windows\SendTo</nowiki>}} (2) Create a shortcut having this in the Target field: {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico  C:\cygwin64\bin\bash.exe  -l -c "cd \"$0\" ; exec bash"</nowiki>}}<ref>[https://stackoverflow.com/questions/9637601/open-cygwin-at-a-specific-folder windows - Open Cygwin at a specific folder - Stack Overflow]</ref> {{exclaim}} Known issue: the folder name in Chinese will met problem!
# Go to your "Send To" folder: {{kbd | key=<nowiki>C:\Users\<your_user_name>\AppData\Roaming\Microsoft\Windows\SendTo</nowiki>}} (howto: [https://www.howtogeek.com/howto/windows-vista/customize-the-windows-vista-send-to-menu/ Customize the Send To Menu in Windows 10, 8, 7, or Vista])
# Create a shortcut having this in the Target field: {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico  C:\cygwin64\bin\bash.exe  -l -c "cd \"$0\" ; exec bash"</nowiki>}}<ref>[https://stackoverflow.com/questions/9637601/open-cygwin-at-a-specific-folder windows - Open Cygwin at a specific folder - Stack Overflow]</ref> {{exclaim}} Known issue: If the folder name contains Chinese characters will met problem!


=== Open a File Explorer from the current Cygwin directory ===
=== Open a File Explorer from the current Cygwin directory ===
Line 49: Line 50:
* [[Total Commander]]  
* [[Total Commander]]  
* sublime text 3: [https://superuser.com/questions/636057/how-to-set-shortcut-for-copy-file-path-in-sublime-text-3 How to set shortcut for `Copy file path` in sublime text 3 - Super User]
* sublime text 3: [https://superuser.com/questions/636057/how-to-set-shortcut-for-copy-file-path-in-sublime-text-3 How to set shortcut for `Copy file path` in sublime text 3 - Super User]
* [https://notepad-plus-plus.org/zh/ Notepad++] --> Open the file --> Right mouse click on the label --> Copy the path
* [https://www.emeditor.com/ EmEditor (Text Editor)] --> Open the file --> Right mouse click on the label --> Copy the path


== Further reading ==
== Further reading ==
Line 58: Line 61:
<references />
<references />


[[Category:Windows]] [[Category:Mac]] [[Category:Software]] [[Category:Programming]]
[[Category:Windows]] [[Category:Mac]] [[Category:Software]] [[Category:Programming]] [[Category:Cygwin]]