Linux 安装 oh my zsh,并开启常见插件
文章目录
安装 zsh
下载
查看所有的 shell
cat /etc/shells安装 zsh
sudo apt install zsh把 zsh 设为默认的 shell
chsh -s /bin/zsh安装 oh my zsh
已经把 github 源替换为了 gitee,并且可以自动的选择软件镜像源,非常的方便!
sh -c "$(wget https://gitee.com/Devkings/oh_my_zsh_install/raw/master/install.sh -O -)"安装插件
zsh-autosuggestions
git clone https://gitee.com/githubClone/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestionsgit clone https://gitee.com/ponponon/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting常用
插件
alias ll='ls -alF'
plugins=(
git
zsh-autosuggestions
)主题
ZSH_THEME="gnzh"最后的效果

会五颜六色,会显示当前路径,然后如果你在 git 路径下,还会显示当前分支

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论