美文网首页
终端自动提示功能

终端自动提示功能

作者: 京北磊哥 | 来源:发表于2019-10-02 12:35 被阅读0次

    Zsh 是什么?

       Zsh 是一款强大的虚拟终端,既是一个系统的虚拟终端,也可以作为一个脚本语言的交互解析器。
       打开终端,在终端上输入 zsh --version 这个命令来查看我们的电脑上是否安装了 Zsh
       终端查询版本为: zsh 5.7.1 (x86_64-apple-darwin18.2.0)
       查看系统当前 shell,cat /etc/shells
    

    1.首先安装 oh my zsh.

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    

    再安装zsh-autosuggestions

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    

    2.finder下按着command + shift 再按G 输入~/, 找到~/用户/xxxx/.zshrc 双击打开。
    搜索

    plugins=(git)
    

    在这一行下面 加上

    plugins=(zsh-autosuggestions)
    

    退出保存即可

    相关文章

      网友评论

          本文标题:终端自动提示功能

          本文链接:https://www.haomeiwen.com/subject/svalpctx.html