Home  >  Article  >  Development Tools  >  How to open sublime using command line in zsh terminal

How to open sublime using command line in zsh terminal

藏色散人
藏色散人forward
2019-09-26 10:11:502845browse

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!

How to open sublime using command line in zsh terminal

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!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete