-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path01-setup-arch.sh
executable file
·51 lines (41 loc) · 1.53 KB
/
01-setup-arch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Red='\e[0;31m';
Gre='\e[0;32m';
Cya='\e[0;36m';
Whi='\e[0;37m';
# Synchronize package databases
echo -e "[${Red}*${Whi}] Updating system.."
sudo pacman -Syu
#Install aura AUR helper
echo -e "[${Red}+${Whi}] Installing aura"
git clone https://aur.archlinux.org/aura-bin.git /tmp/aura-git-cloned
cd /tmp/aura-git-cloned/
makepkg -sfci --noconfirm --needed
# Install pkgs
echo -e "[${Red}+${Whi}] Installing repo packages"
for repo_pkg in $(cat ~/.dotfiles/.assets/pkg_lists/pkg_list)
do
sudo pacman -S --noconfirm --needed $repo_pkg
done
# Install pkgs from the AUR
echo -e "[${Cya}+${Whi}] Installing AUR packages"
for aur_pkg in $(cat ~/.dotfiles/.assets/pkg_lists/aur_pkg_list)
do
sudo aura -Acax --noconfirm $aur_pkg
done
# Setup ZSH
echo -e "[${Gre}*${Whi}] Setting up ZSH plugins"
mkdir -p ~/.zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
# Change shell for root
echo -e "[${Red}*${Whi}] Changing shell for user"
sudo chsh -s /usr/bin/zsh
# Clone GTK theme(s) and icons
echo -e "[${Gre}*${Whi}] Cloning GTK theme and icons"
sudo git clone https://codeberg.org/tplasdio/numigsur-icon-theme.git /usr/share/icons/numigsur-icon-theme
sudo git clone https://github.com/EliverLara/Nordic /usr/share/themes/Nordic
# Change default commit message for git
echo -e "[${Gre}*${Whi}] Cloning default commit message for git"
git config --global commit.template ~/.gitmessage
chmod +x ./02-configs.sh
./02-configs.sh