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