summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorYigit Sever2022-12-06 23:23:20 +0300
committerYigit Sever2022-12-06 23:23:20 +0300
commit9fc65ddc209318db1d4d9121e458d67cccf89fa0 (patch)
tree5c583af1ac49fc31ab16f60f89e09ee90cb661e2 /.local/bin
parent6f0a28e57835362a4a8222ee072563a4ba25e8da (diff)
downloaddotfiles-9fc65ddc209318db1d4d9121e458d67cccf89fa0.tar.gz
dotfiles-9fc65ddc209318db1d4d9121e458d67cccf89fa0.tar.bz2
dotfiles-9fc65ddc209318db1d4d9121e458d67cccf89fa0.zip
feat(bin): add yc script
uses gum to be fancy will keep rest of the dotfiles repository commit messages consistent, hopefully
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/yc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/bin/yc b/.local/bin/yc
new file mode 100755
index 0000000..c0108cf
--- /dev/null
+++ b/.local/bin/yc
@@ -0,0 +1,11 @@
1#!/usr/bin/env bash
2
3TYPE=$(gum choose "fix" "feat" "docs" "style" "refactor" "test" "chore" "revert")
4SCOPE=$(gum input --placeholder "scope")
5
6test -n "$SCOPE" && SCOPE="($SCOPE)"
7
8SUMMARY=$(gum input --value "$TYPE$SCOPE: " --placeholder "summary of this change")
9DESCRIPTION=$(gum write --placeholder "details of this change (<C-d> to finish)")
10
11gum confirm "commit changes?" && yadm commit -m "$SUMMARY" -m "$DESCRIPTION"