<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[[实践OK]cdto Mac必备神器之Go2Shell以及使用技巧，新版本的macbook升级系统后Go2Shell 已无法使用。]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Mon, 16 Dec 2019 09:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	cdto版本有关，最新版的cdto如3.1.3得最新的macOS,实践发现3.0版本在mac air本11.7版本上的big sur上能用：<br/>https://github.com/jbtule/cdto/releases<br/>v3.0 (broken)<br/>Only terminal.app version, I don&#039;t use the others, feel free to fork.<br/>Notarized, so I think it should work on Catalina. (Tested on mojave)<br/>cdto_3_0.zip：<br/><a href="attachment.php?fid=751">点击这里下载文件</a><br/><br/>最新版本的bigsur也能用：<br/>Go2Shell 没有升级，没有办法，就直接找来了一个替代品。cd to, 下载入口如下：<a href="https://mac.softpedia.com/get/System-Utilities/cdto.shtml" target="_blank">https://mac.softpedia.com/get/System-Utilities/cdto.shtml</a>&nbsp;&nbsp;,安装方法一样，选iterm2那个放到程序目录里，按下command拖动到finder上成后即可使用。强调command+拖动：再把它 拖到 Finder 工具栏（空白处按住 ⌘Command 拖，出现绿色 + 松手）。<br/><br/>Download：&nbsp;&nbsp;https://us.softpedia-secure-download.com/dl/beb0c85587fe7d89c69546c8234ab4b3/5df849aa/400023757/mac/System-Utilities/cdto_2_6.zip<br/><br/>以上来自：https://juejin.im/post/5cfe82e15188252b1b0366e6<br/><br/>这个「cd to」图标，其实是 macOS 在 Finder 工具栏里放的一个 **AppleScript 小应用（.app）**，它本身只有几百 KB，核心逻辑是：<br/><br/>&gt; 被拖到工具栏后，你在 Finder 选中任何文件夹，点一下图标就能让 iTerm2 `cd` 到该路径。<br/><br/>升级系统后图标变「问号」，是因为 **macOS 把旧版 32-bit 的 cd to 给屏蔽了**（10.15 起不再支持 32-bit）。&nbsp;&nbsp;<br/>解决思路只有两步：<br/><br/>1. 重新下载 **64-bit 版本**（或自己编译一份）；<br/>2. 再把新的 `cd to.app` 拖回 Finder 工具栏即可。<br/><br/>下面给你最简、最安全的做法，不用去第三方站点，直接拉官方源码编译，2 分钟搞定。<br/><br/>---<br/><br/>### ✅ 推荐方案：官方 GitHub 编译（64-bit，免费）<br/><br/>1. 打开终端依次执行：<br/><br/>```bash<br/># 1. 把源码拉下来<br/>git clone https://github.com/jbtule/cdto.git<br/>cd cdto<br/><br/># 2. 用 Xcode 命令行编译（无 Xcode GUI 也能过）<br/>xcodebuild -target cdto -configuration Release<br/>```<br/><br/>&gt; 如果提示找不到 `xcodebuild`，先装命令行工具：&nbsp;&nbsp;<br/>&gt; `xcode-select --install`<br/><br/>3. 编译完成后，产物在&nbsp;&nbsp;<br/>&nbsp;&nbsp; `cdto/build/Release/cd to.app`<br/><br/>4. 双击 `cd to.app` 先运行一次，**解除 GateKeeper 隔离**（右键-打开也行）。<br/><br/>5. 再把它 **拖到 Finder 工具栏**（空白处按住 `⌘Command` 拖，出现绿色 `+` 松手）。<br/><br/>6. 完事。以后选中文件夹点图标即可在当前目录打开 iTerm2。<br/><br/>---<br/><br/>### ⚠️ 注意事项<br/><br/>- 如果你之前装过 **iTerm2 的 Shell Integration**，`cd to.app` 会自动用 `it2run` 调起 iTerm2；&nbsp;&nbsp;<br/>&nbsp;&nbsp;没装也没关系，它会回退到系统默认终端。<br/><br/>- 拖进工具栏时，**必须按住 `⌘Command`**，否则 macOS 会当成移动文件而不是添加按钮。<br/><br/>- 以后系统再升级，只要重复上面步骤即可，源码永远跟得上新系统。<br/><br/>---<br/><br/>### 🔍 备用方案：直接下别人编译好的 64-bit 包<br/><br/>如果你实在不想编译，也可以到官方 Releases 页面下载别人打好包的 64-bit 版本：&nbsp;&nbsp;<br/>https://github.com/jbtule/cdto/releases&nbsp;&nbsp;<br/>（选最新 `cd to.x.x.x.zip`，解压后同上 4-6 步）<br/><br/>---<br/><br/>### 🧹 清理旧残骸（可选）<br/><br/>升级前旧的 `cd to.app` 如果被系统移到「废纸篓」或「Incompatible Software」，直接清空即可；&nbsp;&nbsp;<br/>工具栏里的问号图标，按住 `⌘Command` 往外一拖就能删除。<br/><br/>---<br/><br/>照以上操作，图标即可恢复，且今后随系统升级也不会再变问号。祝使用愉快！<br/><br/><br/>===========废弃=======<br/>用法<br/>安装go2shell后，打开finder的application文件夹，找到go2shell<br/>按住command，用鼠标将go2shell拖到finder的toolbar上（一定要按住command,否则无法拖到上面去的。）<br/>到这里安装设置完成。<br/>如果要修改默认terminal，比如你想要在finder上点击go2shell，打开的是iterm2 而不是默认的terminal。<br/><br/>打开finder ， 点击go2shell，设置默认iterm<br/>而Go2Shell默认没有设置界面,需要用命令行打开(隐藏得真深啊!)<br/>在打开的terminal中，输入： open -a Go2Shell —args config<br/>在弹出框中选择 iterm2<br/><br/>吐槽一下:<br/>推荐在App Store下载旧版本,因为官方网站最新版本已经变了,打开Go2Shell变成了设置界面,虽然不用再输入命令打开设置界面了,但是,事实上这变得更加坑了!<br/>因为不能配合Alfred 和 Manico了!!!那还有个软用?<br/><br/>实践结果： 新的Mac版本用旧的go2shell图标上有一个横杠还是不能用，估计苹果自己想做到OS里去吧？譬如，mac 当前位置打开终端 ：<a href="https://jackxiang.com/post/10367/" target="_blank">https://jackxiang.com/post/10367/</a><br/><br/><br/>链接：https://www.jianshu.com/p/88c6e68645c4<br/>更多：https://www.cnblogs.com/juking/p/7257251.html<br/>下载：https://zipzapmac.com/Go2Shell<br/><br/><br/><br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [实践OK]cdto Mac必备神器之Go2Shell以及使用技巧，新版本的macbook升级系统后Go2Shell 已无法使用。]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>