Skip to content

Instantly share code, notes, and snippets.

Created January 8, 2013 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4483496 to your computer and use it in GitHub Desktop.
Save anonymous/4483496 to your computer and use it in GitHub Desktop.
以移動硬盤同步RIME用戶詞典的樣例 移動硬盤用於同步的分區名爲 share(盤符I:),同步文件夾是 home/rimesync 每套輸入法分別在 installation.yaml 裏設 sync_dir 和 installation_id。 接上硬盤,Windows 和 Mac 一鍵完成同步。Linux 用 rime_dict_manager -s 同步。
➜ ~ for x in /media/share/home/rimesync/*/installation.yaml ~/.config/ibus/rime/installation.yaml; do echo $x; echo '---'; cat $x; echo '...'; done
/media/share/home/rimesync/lotem-macbook/installation.yaml
---
distribution_code_name: Squirrel
distribution_name: "鼠须管"
distribution_version: 0.9.14
install_time: "Mon Feb 20 23:00:26 2012"
installation_id: "lotem-macbook"
rime_version: 0.9.6
update_time: "Mon Jan 7 10:20:29 2013"
sync_dir: /Volumes/share/home/rimesync
...
/media/share/home/rimesync/lotem-win7-desktop/installation.yaml
---
distribution_code_name: Weasel
distribution_name: "小狼毫"
distribution_version: 0.9.18.5
install_time: "Sat Mar 03 15:18:24 2012"
rime_version: 0.9.6
update_time: "Mon Jan 07 19:15:09 2013"
installation_id: "lotem-win7-desktop"
sync_dir: 'I:\home\rimesync'
...
/home/lotem/.config/ibus/rime/installation.yaml
---
distribution_code_name: "ibus-rime"
distribution_name: Rime
distribution_version: 0.9.6
install_time: "Tue Jan 17 21:40:43 2012"
installation_id: "lotem-archlive"
rime_version: 0.9.6
sync_dir: "/media/share/home/rimesync"
update_time: "Wed Jan 9 03:32:12 2013"...
➜ ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment