全能终端养成计划

Zsh 安装

cat /etc/shells

先看下你的 CentOS 支持哪些 shell:cat /etc/shells,正常结果应该是这样的:

/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh

CentOS7.9 安装:

yum install -y zsh

切换shell为zsh:

chsh -s /bin/zsh
reboot  //重启生效
echo $SHELL  //重启之后看看默认shell是不是zsh

oh-my-zsh源码是放在github上,先确保你的机器上已安装了git:

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

修改主题:

vim ~/.zshrc
ZSH_THEME="agnoster" //随机主题
source ~/.zshrc

增加各种实用插件:

//自动补全
git clone https://gitee.com/phpxxo/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
//语法高亮
git clone git://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
//自动跳转目录
git clone https://github.com/joelthelion/autojump.git

安装autojump:

cd autojump
python install.py 

修改配置文件,使得插件生效:

vim ~/.zshrc

plugins=(git autojump zsh-autosuggestions zsh-syntax-highlighting)
DISABLE_UPDATE_PROMPT=true
[[ -s /root/.autojump/etc/profile.d/autojump.sh ]] && source /root/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u

source ~/.zshrc
#公司评价#
全部评论
楼主去了吗 是和第三方签约吗
点赞 回复 分享
发布于 2022-04-29 01:07
楼主去这个公司了吗?
点赞 回复 分享
发布于 2020-11-05 11:13
楼主去了吗
点赞 回复 分享
发布于 2020-11-05 08:38
16万税前的奖金和工资+额外福利
点赞 回复 分享
发布于 2019-12-27 00:43
不要沉
点赞 回复 分享
发布于 2019-12-22 21:07
求求各位大佬了!
点赞 回复 分享
发布于 2019-12-22 21:05

相关推荐

05-23 19:02
吉林大学 Java
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务