From 11d2de856bd28f8caada768fe3adb35fd3f717ab Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 7 Feb 2026 13:08:47 -0500 Subject: addWord.sh: allow specifying map and wordlist --- addWord.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addWord.sh b/addWord.sh index 9c4168c..45e662b 100755 --- a/addWord.sh +++ b/addWord.sh @@ -1,3 +1,5 @@ #!/bin/sh -cat ~/.local/share/sxmo/words.txt - > /tmp/unsortedwords.txt -mapScore ~/.local/share/sxmo/keyboard.map.tsv ~/.local/share/sxmo/words.txt +list=${1:-~/.local/share/sxmo/words.txt} +map=${2:-~/.local/share/sxmo/keyboard.map.tsv} +cat "$list" - > /tmp/unsortedwords.txt +mapScore "$map" bee "$list" -- cgit 1.4.1