安装Z命令

Z 命令可以让你在terminal快速跳转到指定的目录下,前提是你进过这个目录下

首先下载 Z

将下载的z.sh文件放到 ~根目录下
vi ~/.zshrc 将 . /path/to/z.sh copy 到 .zshrc 里面

使用:

* z foo    # cd to most frecent dir matching foo
* z foo bar # cd to most frecent dir matching foo and bar
* z -r foo  # cd to highest ranked dir matching foo
* z -t foo  # cd to most recently accessed dir matching foo
* z -l foo  # list matches instead of cd
* z -c foo  # restrict matches to subdirs of $PWD

快速打开subline命令 subl安装

sudo mkdir -p "/usr/local/bin/" && ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容