zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
z
命令z
命令會根據你最近使用的目錄的頻率,智能跳轉 最符合 的目錄github
cd ~/.zsh/ git clone https://github.com/rupa/z/ #添加配置 vim ~/.bashrc source ~/.zsh/z/z.sh
使用方法vim
➜ pwd /root/test/a ➜ cd ➜ ~ ls test a aa a.txt b c cc ➜ ~ cd test ➜ cd aa ➜ pwd /root/test/aa ➜ z test ➜ pwd /root/test ➜ cd ➜ ~ pwd /root ➜ ~ z aa ➜ pwd /root/test/aa ➜ z common: /root/test 20 /root/test/aa 28 /root/test 28 /root/test/a