mac 在文件夹打开终端 的正确姿势到底是啥?

2017-07-05 19:56:03 +08:00
 usedname

google 了一大堆,大抵有一下两种 1.用 mac 自带的系统偏好设置->键盘->快捷键->服务。

在右边新建位于文件夹位置的终端窗口上打勾。

缺点:1.只能在文件夹打开,2.打开的是自带的终端,难用的要死 [已经用惯了 iterm2+zsh,可以自定义改成 iterm2 吗]

2.go2shell 看网友们的截图这个应该是最接近的,可是这货年久失修,在 macOS 10.12.5 上打开的路径始终是 ~ 目录

所以正确的姿势到底是啥?

7460 次点击
所在节点    macOS
50 条回复
oxoxoxox
2017-07-05 19:57:47 +08:00
Alfred + 扩展
bookit
2017-07-05 20:01:00 +08:00
我用 path finder,然后可以右键自定义为打开 iterm2

没有 totalcmd 真。。
UnisandK
2017-07-05 20:04:13 +08:00
https://hobbyistsoftware.com/rcb 用的这个,在 10.10 能跑,10.12 不知道了
maemo
2017-07-05 20:05:20 +08:00
pb941129
2017-07-05 20:06:01 +08:00
Go2Shell 这东西在 10.12.5 下依旧可用啊~
xy19009188
2017-07-05 20:07:16 +08:00
cd to,mas 可下载
TimePPT
2017-07-05 20:10:30 +08:00
安装 oh-my-zsh,plugin 启用 osx,命令 cdf 进入当前 Finder tab 所处路径,ofd 会在 Finder 里打开当前终端路径。
osx 插件更多命令参见 Oh My ZSH 的 wiki ——>https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins#osx
usedname
2017-07-05 20:18:56 +08:00
@TimePPT #7 @TimePPT 感谢,我用了 zsh 的,现在试试

@UnisandK #3
@maemo #4
@xy19009188 #6 感谢几位推荐,我试试


@pb941129 #5 是可用,但是我不知道是不是我的姿势不对?我在 finder 打开的时候路径始终是在 家目录。。。
ashfinal
2017-07-05 20:42:31 +08:00
apple script 写个服务,想用 terminal 用 terminal,想换 item2 也行。
总共不几行,用得着纠结这么久。
keepsmilence
2017-07-05 20:47:33 +08:00
1.finder 选中文件夹,option+cmd+c
2.打开终端,cd +粘贴
3.回车,完
wweir
2017-07-05 20:47:34 +08:00
cdf ( cd finder )
记不得这是 brew 下安装了什么东西还是启用了哪个 oh-my-zsh 的插件了,用起来还行
dingdangnao
2017-07-05 20:50:47 +08:00
Go2Shell 一键搞定。应该是楼主安装方式不对。。。
ETiV
2017-07-05 20:52:34 +08:00
BetterTouchTool

Finder 里绑定个快捷键( Ctrl-C )

然后在文件夹的 Finder 窗口下按 Ctrl-C 就好了

跟 Terminal App 无关的,我 iTerm2 一样用
crontab
2017-07-05 21:12:50 +08:00
keyboard maestro + go2shell 一键进入终端目录
1. 安装 Go2Shell,双击 /Applications/Go2Shell, 配置命令为"cd %PATH%; clear; pwd"
2. 安装 Keyboard Maestro, 添加条目( add macro ),选择触发键,触发命令为 Open '/Applications/Go2Shell.app/Contents/MacOS/Go2ShellHelper.app
3. 任意 Finder 目录,触发按键,自动启动 terminal 并进入相应目录;
zhaidoudou123
2017-07-05 21:42:31 +08:00
没有用 xtrafinder 的么,我记得支持 iterm2
mkeith
2017-07-05 21:56:00 +08:00
cdto 啊
shisaq
2017-07-05 22:09:50 +08:00
Go2Shell 搭配 iterm2,在 macOS 10.12.6Beta 依然好用呀:
https://ooo.0o0.ooo/2017/07/05/595cf2cd986ef.png
Jaylee
2017-07-05 22:12:22 +08:00
cdf () {
cd "$(pfd)"
}
Autonomous
2017-07-05 22:21:53 +08:00
bettertouchtools 可以实现哦
Sylv
2017-07-05 22:24:08 +08:00
cdf 最方便。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/373304

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX