aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-08-06 22:55:05 +0200
committersrdusr <trevorgray@srdusr.com>2023-08-06 22:55:05 +0200
commit57629466749a7848ffffab2da9129a3137e67857 (patch)
treecf86e3bbb262fbfa75e873a767c50bb83af167e7
parenta3b9018f0a17f8473941a9d0f8323161f93903c3 (diff)
downloaddotfiles-57629466749a7848ffffab2da9129a3137e67857.tar.gz
dotfiles-57629466749a7848ffffab2da9129a3137e67857.zip
Add install.sh
-rw-r--r--install.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..b811355
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+if [[ $EUID -eq 0 ]]; then
+ echo "This script must not be run as root"
+ exit 1
+fi
+
+# Install system packages
+packages=(
+ "ripgrep"
+ "xclip"
+ "ctags"
+)
+
+for package in "${packages[@]}"; do
+ if ! pacman -Qi "$package" > /dev/null 2>&1; then
+ sudo pacman -S --noconfirm "$package"
+ fi
+done