aboutsummaryrefslogtreecommitdiff
path: root/scripts/init-rime.sh
blob: 22228f553dfa75cb56fab11bbc00ed80558fefd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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