Last Updated on 2021-09-08 by Clay
『打開終端機』這個動作對我而言非常重要 —— 畢竟終端機可以做到許多圖形化介面做不到的事情,所以會有許多工作都只能在終端機上面運行。
之前在使用 Linux 作業系統的時候,我已經習慣可以在資料夾中按右鍵打開選單,並選擇『在此打開終端機』(或之類的名稱,我忘啦)來召喚出在這個目錄底下的終端機。這很方便,真的。
不過在 Mac OS 中,我在 Finder 裡並沒有找到這一選項,後來上網查了查,這才發現需要經過簡單的設定才能使用。
設定在資料夾中打開終端機
首先,點選右上角的蘋果圖示,選擇 System Preferences。

選擇 Keyboard。

切到 Shortcuts 的頁面,選擇 Services,並把 New Terminal at Folder 選項勾選。

目前為止,設定應該沒有問題了。以下來簡單測試一下。
對著某個資料夾點擊右鍵,應該能找到 New Terminal at Folder 選項,點擊。

Output:

可以看到,我們直接將終端機在指定路徑開啟了。