-
Notifications
You must be signed in to change notification settings - Fork 0
/
shellscript.sh
executable file
·71 lines (55 loc) · 1.96 KB
/
shellscript.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/usr/bin/sh
sudo pacman -S --needed git base-devel
git clone https://github.com/HarshalRathore/my-i3-config.git
cd my-i3-config
config_path=$(pwd)
cp -R .config ~/
chmod -R +x ~/.config/i3/scripts
cp .gtkrc-2.0 ~/
cp -R .fonts ~/
cp .bashrc ~/
cp .zshrc ~/
cp -R .local ~/
cp harshal/robbyrussell.zsh-theme ~/.oh-my-zsh/themes/robbyrussell.zsh-theme
sudo pacman -S --needed - < pacman_pkgs
#ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#starshipt prompt
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
#auto-completion
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
#syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
wget https://raw.githubusercontent.com/endeavouros-team/EndeavourOS-packages-lists/master/i3
yes y | sudo pacman -S --needed - < i3
#if [[ $(cat /etc/*-release | awk -F '=' '{if(NR==2)print $2 }') != "EndeavourOS" ]]; then
#sudo echo "
#[endeavouros]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/endeavouros-mirrorlist" >> /etc/pacman.conf
#sudo cp -R pacman.d /etc/
#fi
echo "Trying to install yay-AUR helper from pacman"
yes y | sudo pacman -S --needed yay
if [[ -f "/usr/bin/yay" ]]; then
echo "Yet-Another-Yourt sucessfully Installed"
else
echo "Failed to Installed yay with with pacman"
echo "Beginning to install yay from source"
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -sci
cd ..
fi
cd $config_path
#pwd=$(pwd)
#while read pkg
#do
# git clone https://aur.archlinux.org/$pkg.git
# cd $pkg && makepkg -si && cd $pwd
#done < aur_pkgs
yay -S --needed - < aur_pkgs
# installing vim-plugin manager
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
pip3 install --user neovim
yes y | sudo pacman -Syyu