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