-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1-config-env.sh
More file actions
executable file
·17 lines (12 loc) · 902 Bytes
/
1-config-env.sh
File metadata and controls
executable file
·17 lines (12 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# refer to the link [Check the file exists or not in bash](https://www.php.cn/linux-416452.html)
# Don't use xmodmap. It has been outdated for a decade. The new guys are XKB and its tool setxkbmap.
# [ ! -f ~/.Xmodmap ] && ln -sf ~/.config/.Xmodmap ~/.Xmodmap || echo '.Xmodmap already exists'
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
echo "[archlinuxcn]" | sudo tee -a /etc/pacman.conf
echo "Server = https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/\$arch" | sudo tee -a /etc/pacman.conf
sudo pacman -Sy archlinuxcn-keyring --noconfirm
sudo pacman -Syyu
# wget -O /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/all/
wget -O /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/?country=CN
echo "Configue Complete! Restart to take effect."