Editing
Boot up Tasks
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== 從當下瀏覽的檔案視窗的資料夾路徑,快速開啟命令列視窗 === * [[Open command window here]] * [https://conemu.github.io/ ConEmu] On {{Win}} *# Setup [https://conemu.github.io/en/Tasks.html Tasks] *# Define the command e.g. Input {{kbd | key=<nowiki>-new_console:d:C:\path\to\beach cmd.exe</nowiki>}} to open the folder {{kbd | key=<nowiki>C:\path\to\beach</nowiki>}} quickly. * [https://www.cygwin.com/ Cygwin] On {{Win}} 檔案總管選定某個資料夾,點選 「傳送到」 -> 「Cygwin」,就可以開啟 Cygwin 視窗,並且自動切換到選定的資料夾<ref>[https://superuser.com/questions/115587/how-do-i-create-a-shortcut-that-opens-cygwin-bash-shell-on-a-directory-of-my-cho How do I create a shortcut that opens Cygwin bash shell on a directory of my choosing (UNC especially)? - Super User]</ref> *# Open the explorer on {{Win}} and enter the {{kbd | key=<nowiki>shell:sento</nowiki>}} to open the folder of shortcuts *# Add a new shortcut {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd \"$0\" ; exec bash"</nowiki>}} it the Cygwin was installed on C drive * [https://www.cygwin.com/ Cygwin] 在 {{Win}} 中,於檔案總管中選取某個資料夾後,點選「傳送到」->「Cygwin」,即可開啟 Cygwin 視窗,並自動切換至選定的資料夾。<ref>[https://superuser.com/questions/115587/how-do-i-create-a-shortcut-that-opens-cygwin-bash-shell-on-a-directory-of-my-cho How do I create a shortcut that opens Cygwin bash shell on a directory of my choosing (UNC especially)? - Super User]</ref> *# 在 {{Win}} 中開啟檔案總管,輸入 {{kbd | key=<nowiki>shell:sento</nowiki>}} 以打開捷徑資料夾 *# 新增一個捷徑 {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -o Locale=UTF-8 -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd "$0" ; exec bash"</nowiki>}} (假設 Cygwin 安裝在 C 槽) 已知問題: * 捷徑需要包含「-o Locale=UTF-8」選項,否則顯示的中文檔案內容 (e.g. cat filename.csv),會變成亂碼。 * 若資料夾名稱包含中文字,捷徑可能無法正常運作。 * [https://iterm2.com/ iTerm2] On {{Mac}} [https://stackoverflow.com/questions/50370854/is-it-possibile-to-open-iterm-in-current-finder-position macos - is it possibile to open iTerm in current Finder position - Stack Overflow]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information