summary refs log tree commit diff stats
path: root/scripts/init
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2020-04-07 01:00:13 +0530
committerAndinus <andinus@nand.sh>2020-04-07 01:00:13 +0530
commitcd4325250d64799ef328c51ddc36ab0a14d1e640 (patch)
tree7e613a7e48a11dd08f4d4f0fdc90fbc9a7b70025 /scripts/init
parent0a6d510d2add0e46e890cc6fcac39d3080ba689b (diff)
downloadgrus-cd4325250d64799ef328c51ddc36ab0a14d1e640.tar.gz
Add init and install scripts
Diffstat (limited to 'scripts/init')
-rwxr-xr-xscripts/init13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/init b/scripts/init
new file mode 100755
index 0000000..1ca1f12
--- /dev/null
+++ b/scripts/init
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Download the list of words.
+curl -o /tmp/words.txt \
+     https://raw.githubusercontent.com/dwyl/english-words/master/words.txt
+
+# Make the script executable.
+chmod +x grus-add
+
+# Add those words to the database.
+./grus-add \
+    -d $HOME/.local/share/grus/grus.db \
+    -f /tmp/words.txt