-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
executable file
·56 lines (48 loc) · 799 Bytes
/
Copy pathsetup
File metadata and controls
executable file
·56 lines (48 loc) · 799 Bytes
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
52
53
54
55
56
#!/bin/bash
apply(){
if [ -f ~/.$1 ]; then
mv ~/.$1 ~/.$1.old
fi
cp ./assets/$1 ~/.$1
}
apply_config(){
if [ -d ~/.config/$1 ]; then
mv ~/.config/$1 ~/.config/$1.old
fi
cp ./assets/$1 ~/.config -r
}
apply bashrc
apply zshrc
apply p10k
apply vimrc
apply_config i3
apply_config i3blocks
apply_config sway
sudo pacman -Syyu
sudo pacman -S - < ./packages.list
yayinit(){
yay --version
if [ $? -eq 0 ]
then
log i "Yay already installed"
return
fi
log i "Instaling yay..."
pushd "${XDG_DATA_HOME:-${HOME}/.local/share}/yay"
git clone https://aur.archlinux.org/yay.git
if [ $? -ne 0 ]
then
log e "Failed to clone yay..."
exit 1
fi
cd yay
makepkg -si
if [ $? -ne 0 ]
then
log e "Failed to install yay..."
exit 2
fi
popd
}
yayinit
yay -S - < ./packages_yay.list