這篇文章主要介紹zsh終端下用命令行打開sublime,文中介紹的非常詳細(xì),具有一定的參考價(jià)值,感興趣的小伙伴們一定要看完!
在zsh下打開前端常見編輯器
1. .zshrc為zsh相關(guān)配置文件,先打開配置文件
vim .zshrc
2. 添加如下代碼,具體路徑可能不一致
alias atom='/Applications/Atom.app/Contents/MacOS/Atom' alias subl='/Applications/SublimeText.app/Contents/SharedSupport/bin/subl' alias code='/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code'
3. 重啟即可
使用,比如用sublime打開當(dāng)前目錄
subl ./
注意: finder中顯示路徑可以在終端中執(zhí)行下面這行代碼
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder
以上是“zsh終端下用命令行打開sublime”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!