How to open sublime using command line in zsh terminal

藏色散人
Release: 2019-09-26 10:11:50
forward
2751 people have browsed it

The following columnsublime usage tutorialwill 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
Copy after login

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'
Copy after login

3. Restart to

use it, for example, use sublime to open the current directory

subl ./
Copy after login

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
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!