summaryrefslogtreecommitdiff
path: root/lazy-hosts
diff options
context:
space:
mode:
authormarlonivo <email@marlonivo.xyz>2024-10-02 07:57:01 +0000
committermarlonivo <email@marlonivo.xyz>2024-10-02 08:01:43 +0000
commitc7566525d137894712380b64d73eb77376193130 (patch)
tree22761dc319d0d52fb40ed945eecb06cb2199b5d2 /lazy-hosts
parentb4051ed471c3291341c3baf1bdf2527f459a6677 (diff)
update
Diffstat (limited to 'lazy-hosts')
-rw-r--r--lazy-hosts15
1 files changed, 15 insertions, 0 deletions
diff --git a/lazy-hosts b/lazy-hosts
new file mode 100644
index 0000000..b339c52
--- /dev/null
+++ b/lazy-hosts
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Entferne alle Einträge nach der Markierung '# columndeeply's hosts list'
+sudo sed -i '/# columndeeply\'s hosts list/,$d' /etc/hosts
+
+# Repository klonen
+git clone https://github.com/columndeeply/hosts.git
+
+# Neue Einträge hinzufügen
+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
+
+# Verzeichnis löschen
+rm -rf