# zsh **Repository Path**: iubest/zsh ## Basic Information - **Project Name**: zsh - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-11-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## zsh一键安装和配置 ```shell #在线安装zsh yum -y install zsh #自动安装主题 yum -y install git git clone https://gitee.com/iubest/zsh.git && cd zsh && source install.sh #自动配置主题和插件 source setting.sh #启动zsh(可选) zsh #设置zsh为默认shell(可选) chsh -s /usr/bin/zsh #备注:如果显示乱码,请安装字体 sudo apt install fonts-powerline ``` 以下内容可忽略 ```shell #安装zsh(兼容bash) yum -y install zsh #配置zsh为默认shell sh install.sh 选择主题 您需要编辑~/.zshrc文件。您将在其中看到一个环境变量(全部大写): ZSH_THEME = “ robbyrussell ” 要使用其他主题,只需更改值以匹配所需主题的名称即可。例如: ZSH_THEME = "agnoster" 使用以下命令生效 source ~/.zshrc #Zsh命令自动补全插件 git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions #Zsh命令语法高亮插件 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting #您需要编辑~/.zshrc文件 plugins=(git zsh-autosuggestions zsh-syntax-highlighting) source ~/.zshrc ``` ```shell #注意:fish不兼容bash语法 #yum安装fish shell #root用户下执行命令: cd /etc/yum.repos.d/ wget http://download.opensuse.org/repositories/shells:fish:release:2/CentOS_7/shells:fish:release:2.repo yum install fish #第二步:修改os默认的shell chsh -s /usr/bin/fish ```