如果想在使用操作所系统有个好心情,那么一定要进行美化!

我选择oh my zsh

话不多说首先安装zsh

sudo pacman -S zsh

运行zsh

chsh -s /bin/zsh

安装git

sudo pacman -S git

编辑/etc/hosts

sudo nano /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.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 

安装PowerLevel10k主题

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k

配置PowerLevel10k

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

配置PowerLevel10k,在写入ZSH_THEME="powerlevel10k/powerlevel10k"也可以手动

echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc

安装自动补全,追加plugins=(zsh-autosuggestions git)

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

安装代码高亮

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

配置插件

echo "source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc

安装Ruby

sudo pacman -S ruby

安装colorls

gem install colorls

配置zshrc

sudo nano~/.zshrc

添加如下

alias ls=colorls
alias ll="colorls -l"
alias la="colorls -a"

输入密码显示****

sudo nano /etc/sudoers

添加如下

Defaults env_reset,pwfeedback

重启或刷新配置使其生效

source ~/.zshrc

结束,剩下的图形化自己配置吧!