aboutsummaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
Diffstat (limited to '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