首页 > 其他 > 详细

[Tools] Using z to jump to "frecent" folders - Command Line Power User

时间:2020-03-05 09:30:24      阅读:75      评论:0      收藏:0      [点我收藏+]

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:

. ~/.zshrc

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

 

[Tools] Using z to jump to "frecent" folders - Command Line Power User

原文:https://www.cnblogs.com/Answer1215/p/12418132.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!