1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env sh root="$(git rev-parse --show-toplevel)" final="$(mktemp)" format "$root/src/keymaps/soispha/layout/keymap.h" > "$final" git add "$root/src/keymaps/soispha/layout/keymap.h" cat "$final" > "$root/src/keymaps/soispha/layout/keymap.h" rm "$final" # vim: ft=sh