Linux Navigation artifact-----autojump

Source: Internet
Author: User

For command-line users, frequent CDs and tabs should be the most used commands in their daily work. Especially for heavy users, if you can save so much CD and tab, more time to do meaningful things that much better. In fact, the learning process of Linux itself is the same. You will continue to be unsatisfied with the status quo, just like me, a year ago was still studying how to use the CD can be faster, CD and what better point of the user can get to the directory more quickly. (CD-Back to the previous directory, CD or CD ~ Back to the user directory, etc.) learning itself is the process of growth, not satisfied with the status quo is my driving force, so today, the Breakthrough CD and tab, let us accept a new divine plug-in----autojump.

The first simple introduction of the plug-in, simple usage, such as your folder path is

~/work/build/ninja

You do not need a CD WORK,CD BUILD,CD ninja, you only need to enter the directory after the first time,(note that it must be entered after the record), the direct input autojump b N, automatically entered. Of course AutoJump by default will J to alias, so you just need to enter J B N to this directory, of course, if you have a high-weight directory, you may only need to input J nin to this directory. Prior to the introduction of the weight, then the simple introduction, it will be based on the user's weight to the directory name and the counter hash file storage. The path is generally

/home/rickyk/.local/share/autojump/autojump.txt

The weights are usually like this.

28.3:    /etc/bash_completion.d30.3:    /home/rickyk/bash_completion/etc/  PROFILE.D30.6:    /home/rickyk/. AutoJump31.0:    /home/rickyk/.oh-my-zsh/ Custom 31.6:    /usr/local/share/cmake-2.8/completions33.2:    /usr/ Local/share

This weight means that when you type in the/ETC/BASH_COMPLETION.D for the first one, you enter. D, because this weight is 28.3, so it goes to the second/ETC/PROFILE.D because his weight is 30.3.

The installation is simple, apt-get install AutoJump or directly

git clone http://joelthelion/autojump

Then go to the catalog./install.py on it. Note that after the first install, you need to add the following sentence to the. BASHRC

[[-s/home/rickyk/.autojump/etc/profile.d/autojump. SH ]] && Source/home/rickyk/.autojump/etc/profile.d/autojump. SH

This allows you to use this divine plugin, I hope this plugin can give you the general feeling of flying:)

Reference Link: http://linux.cn/article-3401-1.html

Linux Navigation artifact-----autojump

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.