Mac developers artifact oh-my-zsh first experience

Copyright: https://blog.csdn.net/Dongguabai/article/details/89403549

I should be out, just know this stuff today. In fact, should not be called Mac development artifact, artifact called Terminal fishes, the official website ( https://ohmyz.sh/ ) says so:

Your terminal never felt this good before.

According to the official documentation, before installing the oh-my-zsh need to pay attention to several prerequisites:

  • Unix-like operating system (macOS or Linux)
  • Zsh should be installed (v4.3.9 or more recent). If not pre-installed (zsh --version to confirm), check the following instruction here: Installing ZSH
  • curl or wget should be installed
  • git should be installed
Dongguabai:~ dongguabai$ zsh --version
zsh 5.3 (x86_64-apple-darwin18.0)
Dongguabai:~ dongguabai$ curl --version
curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy 

Are ready, then you can start the installation:

  • via curl
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  • via wget
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

The first I used:

Dongguabai:~ dongguabai$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Cloning Oh My Zsh...
正克隆到 '/Users/dongguabai/.oh-my-zsh'...
remote: Enumerating objects: 1023, done.
remote: Counting objects: 100% (1023/1023), done.
remote: Compressing objects: 100% (940/940), done.
remote: Total 1023 (delta 23), reused 848 (delta 20), pack-reused 0
接收对象中: 100% (1023/1023), 680.62 KiB | 86.00 KiB/s, 完成.
处理 delta 中: 100% (23/23), 完成.
Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to ~/.zshrc
Time to change your default shell to zsh!
Changing shell for dongguabai.
Password for dongguabai: 
         __                                     __   
  ____  / /_     ____ ___  __  __   ____  _____/ /_  
 / __ \/ __ \   / __ `__ \/ / / /  /_  / / ___/ __ \ 
/ /_/ / / / /  / / / / / / /_/ /    / /_(__  ) / / / 
\____/_/ /_/  /_/ /_/ /_/\__, /    /___/____/_/ /_/  
                        /____/                       ....is now installed!


Please look over the ~/.zshrc file to select plugins, themes, and options.

p.s. Follow us at https://twitter.com/ohmyzsh

p.p.s. Get stickers, shirts, and coffee mugs at https://shop.planetargon.com/collections/oh-my-zsh

➜  ~ 

The most common example:
Here Insert Picture Description
highlight the distinction between folders and files are displayed.
Here Insert Picture Description
You can use the Tab key to switch the prompt completion.

In fact, oh-my-zsh there are many interesting places, such as scalable theme plug-ins, fonts and other plug-ins. You can make your Terminal dazzle them.


References:

Welcome to public concern number:
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/Dongguabai/article/details/89403549
Recommended