首页
/
每日頭條
/
科技
/
mac的終端程序在哪裡
mac的終端程序在哪裡
更新时间:2024-09-28 11:17:19

超級右鍵可以幫助我們在finder中快速打開終端

mac的終端程序在哪裡(如何在終端中快速打開文件夾)1

那麼在終端中如何快速的打開當前文件夾呢

第一種辦法是輸入:

open .

那麼我如果經常需要終端進入finder豈不是要經常敲擊這個命令

有小夥伴說了,我可以使用别名

alias o="open ."

那麼我隻需要輸入o,然後回車就可以跳轉到finder到相應目錄下美滋滋?

還有更好到方法麼,of course,快捷鍵啊

這裡我使用到是zsh

在我的.zshrc中映射出來一個文件 專門綁定快捷鍵

mac的終端程序在哪裡(如何在終端中快速打開文件夾)2

function zle_eval { echo -en "\e[2K\r" eval "$@" zle redisplay } function openfinder { zle_eval o } zle -N openfinder; bindkey "^O" openfinder

mac的終端程序在哪裡(如何在終端中快速打開文件夾)3

需要打開當前目錄的時候,按一下ctrl o就好了

enjoy it。

,
Comments
Welcome to tft每日頭條 comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments
Copyright 2023-2024 - www.tftnews.com All Rights Reserved