github: https://github.com/rupa/z
檢測cd命令的跳轉頻次,方便跳轉常用目錄
安裝
# wget https://github.com/rupa/z/archive/v1.9.tar.gz
# tar xvf v1.9.tar.gz
# mv z-1.9/ /opt/
# vi /etc/profile
在最後一行添加
. /opt/z-1.9/z.sh
# source /etc/profile
使用
~# z
~# cd /opt/z-1.9/
/opt/z-1.9# cd
~# z
4 /opt/z-1.9
~# z z-
/opt/z-1.9#
可以使用tab補齊,更多見readme。