Skip to content

Instantly share code, notes, and snippets.

@zhnxin
Created April 22, 2019 09:47
Show Gist options
  • Save zhnxin/81039a303e11606722452663fce021fe to your computer and use it in GitHub Desktop.
Save zhnxin/81039a303e11606722452663fce021fe to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
pacman-mirrors -c China
echo '[archlinuxcn]
SigLevel = Optional TrustedOnly
Server = https://mirrors.ustc.edu.cn/archlinuxcn/$arch' >> /etc/pacman.conf
pacman -Syyu
pacman -S archlinuxcn-keyring
echo 'export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"' >> /etc/environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment