From bf92224886c4b3a4d9e1e3b1417977034be83635 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sat, 14 Oct 2023 15:15:13 +0800 Subject: Add rime init script --- scripts/init-rime.sh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100755 scripts/init-rime.sh (limited to 'scripts/init-rime.sh') diff --git a/scripts/init-rime.sh b/scripts/init-rime.sh new file mode 100755 index 0000000..22228f5 --- /dev/null +++ b/scripts/init-rime.sh @@ -0,0 +1,30 @@ +#!/usr/bin/env bash + +set -e + +rime_dir= +case "$OSTYPE" in + linux*) + export rime_frontend=fcitx5-rime + rime_dir="$HOME/.local/share/fcitx5/rime" + ;; + darwin*) + rime_dir="$HOME/Library/Rime" + ;; +esac + + +mkdir -p "$rime_dir" + +plum_dir="$rime_dir/plum" +[ ! -d "$plum_dir" ] && git clone --depth 1 https://github.com/rime/plum.git "$plum_dir" + +prog="$plum_dir/rime-install" + +bash "$prog" \ + prelude \ + essay \ + luna-pinyin \ + emoji \ + emoji:customize:schema=luna_pinyin \ + emoji:customize:schema=luna_pinyin_simp -- cgit v1.2.3