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

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

 

posted @   Zhentiw  阅读(197)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2019-03-05 [Algorithm] How to use Max Heap to maintain K smallest items
2019-03-05 [HTML5] Avoiding CSS Conflicts via Shadow DOM CSS encapsulation
2019-03-05 [React] Simplify and Convert a Traditional React Form to Formik
2019-03-05 [Javascript Crocks] Make your own functions safer by lifting them into a Maybe context
2019-03-05 [Javascript Crocks] Compose Functions for Reusability with the Maybe Type
2019-03-05 [Algorithm] Array production problem
2019-03-05 [Algorithm -- Dynamic Programming] Recursive Staircase Problem
点击右上角即可分享
微信分享提示