That I knew when I started using Zsh (OH-MY-ZSH).

Source: Internet
Author: User

Original address: http://segmentfault.com/a/1190000002658335 Xavier

Plug-in with your own

In fact, I used the oh-my-zsh nearly three months later only to know that he brought a lot of plug-ins did not open ...

How do I turn it on? Find ~/.zshrc a row plugins=(git) , want to add what plug-in put the name inside is, for example, plugins=(rails git ruby) opened rails , git and ruby three plug-ins.

More plugins please go ~/.oh-my-zsh/plugins to the folder to explore, you can also look at the wiki Plugins overview, everyone's needs are different, every plug-in try always find surprises. There are some of the more magical plug-ins, such as knocking twice esc it will give you automatically add sudo the sudo plugin, so that the copy shows the progress bar plug-in cp , decompression plug-in extract (there is no feeling in the command line to knock a lot of options to extract a little strange?) I also think), vi powder and vi-mode so on ...

Z

Well, it's also a plug-in that comes with but doesn't open. Why take it out alone? Because it's so damn good, I don't want to use the command line without it. There is no brain jumping, such as you often enter the ~/Documents directory, press the z doc general it can jump in (of course, first you have to use a period of time to accumulate data to use). There are several similar plug-ins for example, autojump fasd This kind of thing seems to FS Jumping be called, here is a complete list: https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview# fs-jumping|fc0d85896881858ef77858d115b56c2020 |

D

In the fish shell you can press alt the left and right arrows to wander through the history, just like the GUI file browser
Go ahead, step back. Zsh is not so easy to use, but click d again to enter you will see the recent history, and then you can go 1 2 back to a history with numbers like, and so on. It's also very useful.

Ls

Press ls and press ENTER every time? This feeling is like knocking clear instead of ctrl+L clearing the screen, Don ' t Repeat yourself, press alt+L .

Zsh-autosuggestions

The official introduction is Fish-like fast/unobtrusive autosuggestions for zsh , yes, this is a plug-in that mimics the fish shell, which is essentially an instant reminder based on history. Not having this thing makes me feel so blind. A classmate who has not used fish may find it a little strange, but once you get used to it, you will find that it will significantly improve efficiency (by ctrl+e is the correct posture). Note: It's not oh-my-zsh, you can go to GitHub to see its installation instructions.

Bring your own Git Aliases

Git plugins are turned on by default, and you may notice that it automatically complements and displays the branch. For a git heavy user, some aliases are indispensable. Believe me, once you get used to aliases, you'll feel like you're not going to be able to beat a lot of orders (even if it's automatic). Here are some of my most commonly used (and of course, oh-my-zsh, see Wiki):

Alias Command
<pre>g</pre> <pre>git</pre>
<pre>gst</pre> <pre>git status</pre>
<pre>ga</pre> <pre>git add</pre>
<pre>gp</pre> <pre>git push</pre>
<pre>gc</pre> <pre>git commit-v</pre>
<pre>gc!</pre> <pre>git commit-v--amend</pre>
Zsh_stats

Knocking zsh_stats can see your frequency of use before the 20 command is what!

The official Wiki (important!) )

The official wiki provides a number of useful features, such as some aliases, like, ... .... and take so on.

If I had finished reading the wiki, my previous introduction was nonsense.

Conclusion
      • Oh-my-zsh too slow? Please change the SSD. Every time I see what people are doing, streamlining and optimizing the system and even compiling the kernel to squeeze dry system performance (as I did before, until I bought an SSD), I would only advise him to buy an SSD and a memory strip. Life is too short to spend time on money.

      • Recommend an unrelated: TRASH-CLI, is the command-line version of the Recycle Bin, its magic is not simply to move files to the Recycle Bin, and can be recovered in the Recycle Bin. So it says it is Command line interface to the freedesktop.org trashcan , there is a line in my ZSHRC:alias rm="trash-put"

      • Some of the other very useful tips are thought to be replenished.

      • Fill up my Profile: https://github.com/dd1994/dotfiles| fc0d85896881858ef77858d115b56c2085 |

      • Fill up one of my recent videos: http://www.tudou.com/programs/view/dmfKA8BWyCA/|fc0d85896881858ef77858d115b56c2087 |

That I knew when I started using Zsh (OH-MY-ZSH).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.