summaryrefslogtreecommitdiff
path: root/lazy-hosts
blob: d2493922e8a9eda5dab1f1084ecab500c5ad777d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Cleaning
sudo sed -i '/# columndeeply\'s hosts list/,$d' /etc/hosts

# Cloning
git clone https://github.com/columndeeply/hosts.git

# Merging
echo "# columndeeply's hosts list" | sudo tee -a /etc/hosts
cat /home/artix/hosts/hosts00 /home/artix/hosts/hosts01 /home/artix/hosts/hosts02 /home/artix/hosts/hosts03 /home/artix/hosts/hosts04 | sudo tee -a /etc/hosts
echo "# END columndeeply's hosts list" | sudo tee -a /etc/hosts

# Deleting
rm -rf