Karabiner-Elements (OS X)
mkdir -p ~/.config/karabiner/ && \
cd ~/.config/karabiner/ && \
ln -s ~/dotfiles/Karabiner-Elements/karabiner.json
只实现 tab+hjkl 变成方向键:
open "karabiner://karabiner/assets/complex_modifications/import?url=$(python -c "import urllib; print urllib.quote(u'file://$HOME/dotfiles/Karabiner-Elements/tab_rule.json', safe='~()*\!.\'')")"
cd ~/Library/Rime && \
ln -s ~/dotfiles/Rime/default.custom.yaml && \
ln -s ~/dotfiles/Rime/squirrel.custom.yaml
一个比较好用的自动化脚本工具
cd ~ && \
ln -s ~/dotfiles/hammerspoon .hammerspoon