Efficiency tool AutoJump under Mac

Source: Internet
Author: User
Tags git clone

Go

IDE is always not satisfied with, Mac suitable for development, I also like Mac system, of course, like Unix/linux system. A .zshrc few lines of shortcut commands have been added to the file today:

alias gow = "CD ~/barretlee/work" alias GOTB = "CD ~/barretlee/work/tb" alias gotbn = "CD ~/barretlee/work/tb/node"

After I finished writing, I immediately deleted these lines of command, which seemed a bit two. Online search, found a very good tool-autojump.

AutoJump himself is described as:

AutoJump is a faster-to navigate your filesystem. It works by maintaining a database of the "directories you" and the most from the command line.

By history command you can find the most recently used commands, such as

History | grep "Git clone"

With the above command, you can find which libraries have been clone recently, eliminating the effort to write a bunch of code. AutoJump is to cache the folder path you've visited by recording your behavior in history, and when you do the following:

AutoJump node

He will jump directly to the previously accessed ~/barretlee/work/tb/node directory. He also has a shortcut:

J Node

I love this gadget and let me wander between folders effortlessly.

Installation:
    • Recommended Installation Zsh
    • Recommended installation Homebrew
    • brew install autojump
    • .zshrcfound in plugins= , added later

      plugins= (git autojump)
    • Then continue to add in the above file

      [-S $ (brew--prefix)/etc/profile.d/autojump.sh]] &&. $ (Brew--prefix)/etc/profile.d/autojump.sh
    • source ~/.zshrc

Efficiency tool AutoJump under Mac

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.