美化終端

美化終端

zsh官網
zsh命令行主題
z的github地址git

安裝 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
相關文章
相關標籤/搜索