Maoyeedy

Oct 08, 2022

Archlinux包管理器之yay

sudo nano /etc/pacman.d/mirrorlist #添加该行以使用交大archlinux源 Server = https://mirror.sjtu.edu.cn/archlinux/$repo/os/$arch
sudo nano /etc/pacman.conf #启用这两个选项 Color ParallelDownloads=8 #添加这两行以使用交大archlinuxcn源 [archlinuxcn] Server = https://mirror.sjtu.edu.cn/archlinux-cn/$arch #使用archlinuxcn前需导入GPG key sudo pacman -Sy archlinuxcn-keyring
sudo pacman -S base-devel yay #通过archlinuxcn源安装yay yay --noeditmenu --nodiffmenu --nocleanmenu --save
yay -S fcitx5-im fcitx5-chinese-addons fcitx5-material-color fcitx5-pinyin-zhwiki #向/etc/environment添加以下五行 GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx SDL_IM_MODULE=fcitx GLFW_IM_MODULE=ibus
yay -S fish #fish比zsh轻量一点而且开箱即用 chsh -s /usr/bin/fish #设置fish为默认shell
yay -S nano-syntax-highlighting-git #向/etc/nanorc添加该行以启用语法高亮 include /usr/share/nano-syntax-highlighting/*.nanorc
 

Copyright © 2024 Maoyeedy

logo