iTerm2 會搶走 https 的預設開啟應用程式
所以每次點 …

iTerm2 會搶走 https 的預設開啟應用程式
所以每次點 https 連結以後
就會在 iTerm2 開一個新分頁 然後啥都沒有
http 連結就不會有這個問題

google 了好久 終於找到這篇
MacUknow - 請問關於https連結預設開啟程式
國外好像都沒人遇到 不然就是我 google searching skill 太差


解法

在 terminal 輸入

open ~/Library/Preferences/com.apple.LaunchServices.plist

預設會用 Xcode 開啟
一個個點開檢查 LSHandlers 底下的某個 Item
看到 LSHandlerURLScheme https 後
把底下的 LSHandlerRoleAll 改成 com.google.chrome

確認修改完之後重新開機
點選 https 應該就會改回用 Chrome 開啟了


Share


Donation

如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。

If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.


Related Posts