feat: new 'tasks' utils
This commit is contained in:
1 parent
164b13f9f0
commit
2160370d41
5 files changed
+99
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
type="$(cat ~/.config/nvim/tasks/assets/conventional_commits_types.txt | fzf | awk -F' ' '{print $1 ": "}')"
|
||||
emoji="$(cat ~/.config/nvim/tasks/assets/emoji_list.txt | fzf | awk -F' ' '{print $3 " "}')"
|
||||
branch="$(git branch --show-current | awk -F'/' '{if ($2) print " [" $2 "] "}')"
|
||||
|
||||
message="$type$branch$emoji"
|
||||
|
||||
echo -n "$message"
|
||||
read body
|
||||
|
||||
git commit -m "$message$body"
|
||||
Reference in new issue
Block a user