13 lines
385 B
Bash
13 lines
385 B
Bash
#!/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"
|