900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > #mac# #finder# #Iterm2# finder中打开当前路径的Iterm2终端

#mac# #finder# #Iterm2# finder中打开当前路径的Iterm2终端

时间:2021-07-26 01:51:32

相关推荐

#mac# #finder# #Iterm2# finder中打开当前路径的Iterm2终端

在mac finder的某个文件夹下面,想直接跳转到iterm2,跳过去的目录就是当前目录。从iterm2打开当前目录的finder很简单,直接"open ."即可,但是反过来就不是那么容易了,本文就是为了解决这个痛点。

建议Go2Shell

下载地址Go2Shell - ZipZapMac

安装说明

1,首先下载好程序,然后运行到下面界面

2 然后将程序拖到下面位置

3,然后执行install Go2Shell to Finder

如图所示进入一个文件夹,然后点击finder工具栏上的图标, 即可跳转到iterm2,

pwd看一下目录就是跳转过来的目录。

搜索脚本编辑器,打开将一下命令复制进去

(*Open Terminal HereA toolbar script for Mac OS X 10.3/10.4Written by Brian Schlining*)property debug : false-- when the toolbar script icon is clicked--on runtell application "Finder"tryset this_folder to (the target of the front window) as aliason errorset this_folder to startup diskend trymy process_item(this_folder)end tellend run-- This handler processes folders dropped onto the toolbar script icon--on open these_itemsrepeat with i from 1 to the count of these_itemsset this_item to item i of these_itemsmy process_item(this_item)end repeatend open-- this subroutine processes does the actual work-- this version can handle this weirdo case: a folder named "te'st"? te%s`t"on process_item(this_item)set thePath to quoted form of POSIX path of this_itemset theCmd to "cd " & thePath & ";clear;"tell application "iTerm"activate-- just open a terminal and cd to thePath--set newWindow to (create window with default profile)set aWindow to current windowif aWindow is equal to missing value thenset aWindow to (create window with default profile)elsetell aWindowset t to (create tab with default profile)end tellend iftell current session of aWindowwrite text "cd " & thePath & ";clear;"end tellend tellend process_item

点击 "文件 | 导出 … ",文件格式选择 "应用程序",导出为:自己取一个名字,此处取得finder2iterm, 位置选择要保存到的位置,然后点击"存储"。「

在 Finder 中右键点击目标 App,然后选择“显示简介”。

在目标 App 的“显示简介”窗口中点击程序图标。另外,该锋友表示,如果你想要直接获取系统图标的高清大图的话,可以直接使用 Command + C 的快捷键来进行复制。

最后,双击想要更换的图片,通过 Command + A 全选,然后使用 Command + C 复制。

回目标 App 的“显示简介”窗口,选中应用图标,然后使用 Command + V 粘贴即可。

然后同时按住"alt+cmd"将该应用程序拖拽到 finder的toolbar中。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。