diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/format.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 0000000..d9db529 --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,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 |