summarylogtreecommitdiffstats
path: root/sbxlm-init
blob: b3086bb38f57776cc1b395128a7140701bba2a22 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash -e
XDG_DATA_HOME=${XDG_DATA_HOME:-~/.local/share}
RIME_DIR=${RIME_DIR:-$XDG_DATA_HOME/fcitx5/rime}
if [[ -d $RIME_DIR ]];then
  cp -r $RIME_DIR $RIME_DIR-sbxlm-init-backup-"$(date +%s)"
fi
mkdir -p $RIME_DIR
cp /usr/share/sbxlm/default.custom.yaml $RIME_DIR