{"id":811,"date":"2018-08-20T02:30:07","date_gmt":"2018-08-19T18:30:07","guid":{"rendered":"http:\/\/43.142.23.169\/?p=811"},"modified":"2018-08-20T02:30:07","modified_gmt":"2018-08-19T18:30:07","slug":"cmder","status":"publish","type":"post","link":"https:\/\/blog.240996.xyz\/index.php\/2018\/08\/20\/cmder\/","title":{"rendered":"Windows\u4e0a\u7684\u7a0b\u5e8f\u5458\u795e\u5668\u2014\u2014Cmder"},"content":{"rendered":"<p><strong>\u524d\u8a00<\/strong><br \/>\n\u5728Windows\u7cfb\u7edf\u4e0a\u505a\u5f00\u53d1\uff0c\u603b\u662f\u5bf9\u5176Terminal\u4e0d\u6ee1\u610f\u3002\u65e0\u8bba\u662fCMD\u8fd8\u662fPowerShell\uff0c\u771f\u662f\u592a\u4e11\u4e86\u3002\u73b0\u5728\u5b89\u5229\u5927\u5bb6\u4e00\u6b3e\u795e\u5668\uff0c\u9664\u4e86\u5916\u89c2\u597d\u770b\u4ee5\u5916\uff0c\u529f\u80fd\u4e5f\u662f\u5f3a\u52b2\u7684\u72e0\u3002<br \/>\n<img decoding=\"async\" title=\"\u8bf7\u8f93\u5165\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/ituku.me\/images\/dlFI.jpg\" alt=\"\u8bf7\u8f93\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><strong>\u7279\u70b9<\/strong><\/p>\n<ul>\n<li>\u4fbf\u643a\uff0c\u89e3\u538b\u5373\u53ef\u7528<\/li>\n<li>\u81ea\u5e26git\u3001ls\u3001curl\u7b49\u547d\u4ee4<\/li>\n<li>\u53ef\u8bbe\u7f6e\u547d\u4ee4\u522b\u540d<\/li>\n<li>\u4e30\u5bcc\u7684\u989c\u8272\u4e3b\u9898\uff08Solarized\u3001Twilight\u3001Ubuntu\u3001xterm\u3001Monokai\uff0c\u751a\u81f3\u63a5\u53d7\u81ea\u5b9a\uff09\u3001\u53ef\u5b9a\u5236\u5b57\u4f53<\/li>\n<li>\u652f\u6301tab\u5206\u9875\u3001\u540c\u5c4f\u591a\u7aef\u53e3\uff08\u652f\u6301\u6c34\u5e73\u5206\u5272\u3001\u5782\u76f4\u5206\u5272\uff09<\/li>\n<li>\u652f\u6301\u81ea\u5b9aterminal\uff0c\u65e0\u8bba\u662fCMD\u3001PowerShell\u3001bash\u90fd\u53ef\u4ee5\uff0c\u8fd8\u53ef\u4ee5\u6ce8\u5165\u73af\u5883\u53d8\u91cf<\/li>\n<\/ul>\n<p><img decoding=\"async\" title=\"\u8bf7\u8f93\u5165\u56fe\u7247\u63cf\u8ff0\" src=\"https:\/\/ituku.me\/images\/2YbG.gif\" alt=\"\u8bf7\u8f93\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p><strong>\u5b89\u88c5<\/strong><\/p>\n<ul>\n<li>\u4e0b\u8f7d\u94fe\u63a5\uff1a<a href=\"http:\/\/cmder.net\/\" target=\"_blank\" rel=\"noopener\">Cmder.net<\/a><\/li>\n<\/ul>\n<p>\u5206\u522b\u6709mini\uff086MB\uff09\u548cfull\uff0884MD\uff09\u7248\u672c\uff0c\u90fd\u662fportable\u7684\uff0c\u89e3\u538b\u5373\u53ef\u4f7f\u7528\u3002<\/p>\n<p>\u5360\u7528\u7a7a\u95f4\u53c8\u5c0f\uff0c\u6240\u4ee5\u76f4\u63a5\u653e\u5728u\u76d8\u3001\u4e91\u76d8\uff08\u50cfOnedrive\u3001iCloud\uff09\u91cc\u4e5f\u884c\uff0c\u8fbe\u5230\u591a\u53f0\u8bbe\u5907\u540c\u6b65\u8bbe\u7f6e\u7684\u6548\u679c\uff08\u6211\u662f\u628a\u8bbe\u7f6e\u5bfc\u51fa\u5230gist\u4e0a\uff0c\u66f4\u6539\u5c31\u624b\u52a8\u66f4\u65b0\uff09\u3002<\/p>\n<ul>\n<li>\u89e3\u538b\uff0c\u53cc\u51fbCmder.exe\u8fd0\u884c\u3002<\/li>\n<\/ul>\n<p><strong>\u5916\u89c2\u914d\u7f6e<\/strong><\/p>\n<p>1\u3001Font\uff0c\u53f3\u952eTab\u680f\u7a7a\u767d\u5904\uff0c\u5f39\u51fa\u83dc\u5355\u9009\u62e9Settings\uff0c\u6620\u5165\u773c\u5e18\u7684\u5c31\u662f\u5b57\u4f53\u8bbe\u7f6e\u4e86\u3002\u5efa\u8bae\u4f7f\u7528\u5b57\u4f53Input Mono\u3001Inconsolata\u3001Consolas\u3001Courier New\u3002\u8fd8\u53ef\u4ee5\u52a0\u4e0a\u4e2d\u6587\u5b57\u4f53\uff0c&#8221;Main font&#8221;\u8bbe\u7f6e\u4e0b\u65b9\u7684&#8221;Alternative font&#8221;\u6dfb\u52a0CJK\u5b57\u4f53\uff0c\u5728\u8bbe\u7f6e&#8221;Unicode ranges&#8221;\u6210CJK\u7684\u5c31\u597d\u4e86\u3002<br \/>\n2\u3001Color Schemes\uff0c\u540c\u6837\u662f\u5728Settings\u4e2d\uff0c\u5de6\u4fa7\u6811\u5f62\u83dc\u5355\u4e2d\u9009\u62e9Features-&gt;Colors\uff0c\u5c31\u80fd\u6765\u5230Scheme\u8bbe\u7f6e\u754c\u9762\u3002Cmder\u81ea\u5e26\u7684Scheme\u5f88\u4e30\u5bcc\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9aScheme\uff0c\u5e94\u7528\u7f51\u7edc\u4e0a\u7b80\u6d01\u597d\u770b\u7684\u98ce\u683c\u3002<a href=\"https:\/\/github.com\/joonro\/ConEmu-Color-Themes\" target=\"_blank\" rel=\"noopener\">Github | joonro\/ConEmu-Color-Themes<\/a>\u63d0\u4f9b\u4e86\u5f53\u524d\u6d41\u884c\u7684Scheme\u5b89\u88c5\u65b9\u5f0f\u3002<br \/>\n3\u3001Quake Style\uff0c \u5f00\u542f\u540e\uff0cCmder\u5c31\u53d8\u6210\u4e86\u4e0b\u62c9\u5f0f\u3002\u6309\u4f4f&#8221; ctrl + <code> \"Cmder\u5c31\u4ece\u5c4f\u5e55\u4e0a\u65b9\u5f39\u51fa\uff0c\u7126\u70b9\u8f6c\u79fb\u5c31\u6536\u56de\uff08\u53ef\u4fee\u6539\u6210\u518d\u6b21\u6309\u4f4f\" ctrl + <\/code> &#8220;\u6536\u56de\uff09\u3002\u5f00\u542fQuake Style\u4e4b\u540e\u6781\u5ba2\u611f\u5f88\u5f3a !( \u2022\u0300 \u03c9 \u2022\u0301 )!<\/p>\n<p><strong>\u7ec8\u7aef\u8bbe\u7f6e<\/strong><\/p>\n<p>1\u3001Default Terminal\uff0c \u5728Startup\u7f6e\u9879\u6846\u91cc\u5c31\u53ef\u4ee5\u66f4\u6539\u9ed8\u8ba4\u7ec8\u7aef\uff0c\u9009\u62e9Special named task\uff0c\u5728\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u7ec8\u7aef\u3002\u4ec0\u4e48\uff1f\uff01\u627e\u4e0d\u5230\u81ea\u5df1\u6ee1\u610f\u7684\uff0c\u8fd8\u4ee5\u5728Startup-&gt;Tasks\u4e2d\u6dfb\u52a0\u65b0\u7684\u7ec8\u7aef\uff0c\u53ca\u521d\u59cb\u5316\u811a\u672c\uff08\u7528\u6765\u6267\u884c\u4e00\u4e9b\u547d\u4ee4\uff0c\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u547d\u4ee4\u522b\u540d\u3001ssh\u7b49\uff09\u3002\u8fd8\u53ef\u4ee5\u4e3a\u8fd9\u4e9b\u7ec8\u7aef\u6dfb\u52a0\u5feb\u6377\u952eHotKey\uff0c\u65b9\u4fbf\u5feb\u901f\u6253\u5f00\u3002Startup-&gt;Environment\uff0c\u80fd\u5728\u8fd9\u91cc\u4e3a\u6240\u6709Tasks\u4f5c\u521d\u59cb\u5316\u8bbe\u7f6e\u3002<br \/>\n2\u3001Split window\uff0c\u6309\u4f4f&#8221;ctrl + shift + e&#8221;\u6c34\u5e73\u5206\u5c4f\uff1b\u6309\u4f4f&#8221;ctrl + shift + o&#8221;\u5782\u76f4\u5206\u5c4f \uff08\u53ef\u4ee5\u5728\u70ed\u952e\u8bbe\u7f6e\u4e2d\u66f4\u6539\uff09\uff1b \u70b9\u51fbTab bar\u4e0a\u7684[+]\uff0c\u9009\u62e9&#8221;New Console Dialog&#8221;\uff0c\u91cc\u6709&#8221;New console split&#8221;\u9009\u9879\uff0c\u5373\u53ef\u5206\u5c4f\u51fa\u4e0d\u540c\u7c7b\u578b\u7684Terminal\u4e86\u3002<br \/>\n3\u3001Integration\uff0c\u5728\u5176\u4e2d\u5373\u53ef\u6dfb\u52a0\u53f3\u952e\u83dc\u5355\u9879\uff0c\u63a8\u8350\u7528&#8221;ConEmu Here&#8221;\u3002\u6309\u4f4f&#8221;Register&#8221;\u5373\u53ef\u6dfb\u52a0\uff0c\u4f46\u4ee5\u540e\u5220\u9664Cmder\u4e4b\u524d\u4e00\u5b9a\u8981\u8bb0\u5f97&#8221;Unregister&#8221;\u4e00\u4e0b\u3002<br \/>\n4\u3001HotKey\uff0c\u5728Keys &amp; Macro\u4e2d\u5373\u53ef\uff0c\u4fee\u6539\u6dfb\u52a0\u5404\u79cd\u70ed\u952e\u3002\u5728\u5b50\u8bbe\u7f6e\u9879\u4e2d\uff0c\u8fd8\u53ef\u4ee5\u66f4\u6539\u590d\u5236\u65b9\u5f0f\u3002Cmder\u9ed8\u8ba4\u8bbe\u7f6e\u662f\u5de6\u952e\u5212\u53d6\u6587\u672c\u540e\uff0c\u5c31\u81ea\u52a8\u590d\u5236\u4e86\uff0c\u5341\u5206\u65b9\u4fbf\u3002<\/p>\n<p><strong>VSCode\u96c6\u6210\u7ec8\u7aef<\/strong><\/p>\n<p>\u4ec0\u4e48Cmder\u8fd8\u53ef\u4ee5\u5f53\u4f5cVSCode\u7684\u96c6\u6210\u7ec8\u7aef\uff01\uff1f\uff01\uff1f\u4e0d\u8fc7\u6709\u4e2a\u5c0fbug\uff0c\u5df2\u7ecf\u6709\u4eba\u63d0\u4e86issue\u54af\uff0c\u7b49bug\u89e3\u51b3\u6211\u518d\u5411\u5927\u5bb6\u5b89\u5229\u5427\u3002<\/p>\n<p><strong>Q&amp;A<\/strong><\/p>\n<ol>\n<li>\u54ea\u91cc\u53ef\u4ee5\u770b\u5230\u8be6\u7ec6\u7684\u4f7f\u7528\u6587\u6863\uff1f<\/li>\n<\/ol>\n<p>\u53f3\u952eTab bar-&gt;Help-&gt;About\/Help\u5c31\u53ef\u4ee5\u770b\u5230\u54af\u3002<\/p>\n<ol>\n<li>\u547d\u4ee4\u522b\u540d\u4e0d\u8d77\u4f5c\u7528\u600e\u4e48\u529e\uff1f<\/li>\n<\/ol>\n<p>\u6253\u5f00Windows\u91cc\u7684Terminal\uff0c\u65e0\u8bba\u662fCMD\u8fd8\u662fPowerShell\u90fd\u884c\u3002\u5728\u5176\u8bbe\u7f6e\u4e2d\u52fe\u9009&#8221;\u4f7f\u7528\u65e7\u7248\u63a7\u5236\u53f0&#8221;\u5373\u53ef\u3002\u76f8\u5173issue\uff1aAliases not working at all<\/p>\n<ol>\n<li>ls\u547d\u4ee4\u4e0d\u652f\u6301\u4e2d\u6587<\/li>\n<\/ol>\n<p>\u5728\u8bbe\u7f6e\u754c\u9762Startup-&gt;Environment\u4e2d\u7684\u6587\u672c\u6846\u4e0b\u52a0\u5165<code>set LANG=zh_CN.UTF-8<\/code> \u5373\u53ef\u3002 \u987a\u4fbf\u628a\u4ee3\u7801\u9875\u5207\u6210utf-8\u7684\u5427\uff0c\u4f1a\u7701\u5fc3\u5f88\u591a\u8ddf\u4f60\u8bb2\u3002\u8f93\u5165<code>chcp 65001<\/code>\u3002<\/p>\n<ol>\n<li>\u60f3\u653e\u5f03Windows\u81ea\u5e26\u7684Terminal\u600e\u4e48\u529e\uff1f\u56e0\u4e3a\u771f\u662f\u4e11\u7684\u53d7\u4e0d\u4e86\u2026\u2026<\/li>\n<\/ol>\n<p>\u5728\u8bbe\u7f6e\u754c\u9762Integration-&gt;Default term\u4e2d\u6709&#8221;Force ConEmu as default terminal for console applications&#8221;\u7684\u9009\u9879\u3002\u52fe\u9009\u4e4b\u524d\u522b\u5fd8\u4e86\u770b\u5411\u4e0a\u65b9\u7684\u8b66\u544a\u4fe1\u606f\u3002<\/p>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/28400466\" target=\"_blank\" rel=\"noopener\">https:\/\/zhuanlan.zhihu.com\/p\/28400466<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5728Windows\u7cfb\u7edf\u4e0a\u505a\u5f00\u53d1\uff0c\u603b\u662f\u5bf9\u5176Terminal\u4e0d\u6ee1\u610f\u3002\u65e0\u8bba\u662fCMD\u8fd8\u662fPowerShell\uff0c\u771f\u662f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-811","post","type-post","status-publish","format-standard","hentry","category-exp"],"_links":{"self":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/posts\/811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=811"}],"version-history":[{"count":0,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/posts\/811\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.240996.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}