对于我已经用习惯linux的人来说,每天都要和终端打交道,此时想打扮一下终端,oh-my-zsh is perfect!
Go!
给出安装步骤以及修改主题、遇到问题:
①安装zsh和git:
sudo apt-get install zsh
sudo apt-get install git
②安装oh-my-zsh:
输入:sh -c “$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)”
到此我遇到GitHub的raw.githubusercontent.com无法连接的问题:
解决方案:
sudo vim /etc/hosts
添加并保存:
# GitHub Start
52.74.223.119 github.com
192.30.253.119 gist.github.com
54.169.195.247 api.github.com
185.199.111.153 assets-cdn.github.com
151.101.76.133 raw.githubusercontent.com
151.101.108.133 user-images.githubusercontent.com
151.101.76.133 gist.githubusercontent.com
151.101.76.133 cloud.githubusercontent.com
151.101.76.133 camo.githubusercontent.com
151.101.76.133 avatars0.githubusercontent.com
151.101.76.133 avatars1.githubusercontent.com
151.101.76.133 avatars2.githubusercontent.com
151.101.76.133 avatars3.githubusercontent.com
151.101.76.133 avatars4.githubusercontent.com
151.101.76.133 avatars5.githubusercontent.com
151.101.76.133 avatars6.githubusercontent.com
151.101.76.133 avatars7.githubusercontent.com
151.101.76.133 avatars8.githubusercontent.com
# GitHub End
再次输入:
sh -c “$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)”
此时可以成功连接
③切换自己喜欢的主题:
进入oh-my-zsh官网:https://ohmyz.sh/ 找到主题,选择自己喜欢的主题并且复制该主题名字
输入:
vim ~/.zshrc
在ZSH_THEME=“” 一行粘贴上主题名字,个人推荐ys比较舒服。
保存好后:
source ~/.zshrc 使配置生效
完成!
在最后在推荐一个终端分屏软件:
sudo apt-get install terminator
你下好了就知道啥感觉了。