惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
V
Visual Studio Blog
博客园 - 司徒正美
TaoSecurity Blog
TaoSecurity Blog
博客园 - 聂微东
IT之家
IT之家
博客园_首页
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园 - Franky
雷峰网
雷峰网
罗磊的独立博客
S
Schneier on Security
C
Cybersecurity and Infrastructure Security Agency CISA
The Cloudflare Blog
T
Tailwind CSS Blog
B
Blog RSS Feed
H
Help Net Security
T
The Blog of Author Tim Ferriss
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
C
CERT Recently Published Vulnerability Notes
博客园 - 三生石上(FineUI控件)
P
Palo Alto Networks Blog
I
Intezer
G
GRAHAM CLULEY
Engineering at Meta
Engineering at Meta
S
Securelist
J
Java Code Geeks
V
V2EX
Y
Y Combinator Blog
Simon Willison's Weblog
Simon Willison's Weblog
L
LINUX DO - 热门话题
云风的 BLOG
云风的 BLOG
Spread Privacy
Spread Privacy
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
B
Blog
Forbes - Security
Forbes - Security
Google Online Security Blog
Google Online Security Blog
Help Net Security
Help Net Security
S
SegmentFault 最新的问题
N
Netflix TechBlog - Medium
Webroot Blog
Webroot Blog
Microsoft Security Blog
Microsoft Security Blog
SecWiki News
SecWiki News
Scott Helme
Scott Helme
aimingoo的专栏
aimingoo的专栏
N
News and Events Feed by Topic

博客园 - 白虎

软件架构设计的六大原则 Linux 安装npm 下载ECharts Linux 安装WebStorm Linux配置开机自启动执行脚本 Linux挂载第二块硬盘 Linux 安装Nginx Linux 第一个脚本程序 Linux 8开启FTP功能服务 Jigloo 下载 安装 GUI Linux应用开发入门(转) NET(C#)连接各类数据库-集锦 C# 编写最小化时隐藏为任务栏图标的Window appllication 管理型交换机IEEE 802.1Q VLAN设置应用实例 Windows Server 2012如何实现双网卡绑定 多网卡的7种bond模式原理 For Linux Eplan中电缆源和目标的确定规则 Eplan 2D安装版布局,部件、端子竖放 EPLAN Electric P8 2.0即将到来,着实令人期待-转caodaping 关于STM32 CAN回环可用,正常不可用情况分析
Linux个性终端Oh my zsh
白虎 · 2021-02-16 · via 博客园 - 白虎

关于个性终端,内置皮肤,可以为我们带来很好的视觉体验,提高了实用性,绚丽的颜色为我们带来了方便。

基于Oracle Linux 8 安装,相信也适用于Redhat和CentOS。

1、首先我们需要安装zsh,如果没装,安装oh my zsh的时候会提示安装。

2、然后安装oh my zsh

$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

3、哎,这里出了问题,会提示433端口错误,DNS好像混乱了。解决:

#使用IP地址解析工具获取该网站的IP地址
#raw.githubusercontent.com
#在/etc/hosts文件中添加一行
xxx.xxx.xxx.xxx  raw.githubusercontent.com
#这里不写实际IP,因为动态DNS随时会变的。
#然后再执行安装就没有问题了。

安装完之后,提示中选择y。

我们发现root用户已经可以使用oh my zsh了。

4、但是我们想换一个皮肤,编辑~/.zshrc配置文件

当然如果想要深入研究配置文件,可以详细阅读配置文件说明。

5、编辑完成之后,需要重新加载配置文件,执行以下命令

皮肤样例显示在此网址中。

https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

6、此时可以看到root用户可以使用了,但是普通用户还不能用。网上也有很多办法解决。

1)、创建root和普通用户的连接 

2)、直接cp文件到普通用户

7、我们这里使用直接从网站上克隆一个副本到普通用户。以下代码在普通用户下执行。

git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
#复制zshrc文件
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
#更改你的shell
chsh -s /bin/zsh

然后就是配置主题了,和之前一样,选择一个喜欢的主提修改进去就可以了。