zoukankan      html  css  js  c++  java
  • [Tools] Using z to jump to "frecent" folders

    Are you using z? Greatly speed up your file system traversal and say goodbye to finder.

    Install:

    brew install z

    2. Go the github: https://github.com/rupa/z

    3. Download z.sh

    4. Save the file to the folder where you won't delete it, for example save to home folder.

    5. Check whether it successfully save: 

    ls ~/z.sh

    You should see the file path.

    6. Include into ~/.zshrc

    vim ~/.zshrc

    Include:

    . ~/z.sh

    Save it and exit.

    7. Apply the changes:

    source ~/.zshrc

    8. Then you can start nav around your file systems, 'z' will build a database to remeber the path you have visited.

    9. You can pass options as well, for example:

     -c     restrict matches to subdirectories of the current directory

    It will force to stay in current directory and only looking for subdir inside current dir.

    10. You can list all the match paths

    z angular -l

    11. Matching deep path:

    For example you have /programming/framework/angular/...

    you can do:

    z prog angular
  • 相关阅读:
    课后作业
    课后作业
    课后作业3
    课后作业
    课后作业
    课后作业
    java 加减法2
    java 出计算题
    Java web 登录界面
    构建之法读后感
  • 原文地址:https://www.cnblogs.com/Answer1215/p/12418132.html
Copyright © 2011-2022 走看看