summary refs log tree commit diff stats
path: root/scripts/format.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/format.sh')
-rwxr-xr-xscripts/format.sh14
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