diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-29 23:57:32 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-29 23:57:32 +0100 |
commit | e0ca2d19231c50543a6dc6bcc6335a3f9a84c595 (patch) | |
tree | af4a581ebb6aacb456ea493a16a9934e01b5dcef /scripts/format.sh | |
parent | fix(src): Add some default stuff (diff) | |
download | qmk_layout-e0ca2d19231c50543a6dc6bcc6335a3f9a84c595.zip |
feat(src): Make usable
Diffstat (limited to 'scripts/format.sh')
-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 |