Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Open sublime with command line under zsh terminal

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the zsh terminal under the command line to open sublime, the article is very detailed, has a certain reference value, interested friends must read it!

Open the front-end common editor under zsh

1. Zshrc is a zsh-related configuration file. Open the configuration file first.

Vim .zshrc

two。 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. Just restart it.

Use, for example, to open the current directory with sublime

Subl. /

Note: the path shown in finder can execute the following line of code in the terminal

Defaults write com.apple.finder _ FXShowPosixPathInTitle-bool TRUE;killall Finder above is all the content of this article "Open sublime with command line under zsh terminal". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report