z命令跳轉

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。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章