Home >Development Tools >sublime >How to open sublime using command line in zsh terminal
The following column sublime usage tutorial will introduce to you how to use the command line to open sublime under the zsh terminal. I hope it will be helpful to friends in need!
Open the front-end common editor under zsh
1. .zshrc is the zsh related configuration file, open the configuration file first
vim .zshrc
2. Add the following code, the specific path may be inconsistent
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. Restart to
use it, for example, use sublime to open the current directory
subl ./
Note : To display the path in finder, you can execute the following line of code in the terminal
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder
The above is the detailed content of How to open sublime using command line in zsh terminal. For more information, please follow other related articles on the PHP Chinese website!