- Select Language
🎌日本語 | 🤡English | 🐉简体中文 | 🍜繁体中文 | 🌸한국어 |
---|
pummit can be used in two ways
pummit <emojiprefix> '<subject>'
# or
pummit '<emojiprefix> <subject>'
# Example
pummit sparkles 'I am unko man'
# Run: git commit -m ':sparkles: I am unko man (path/to/added/file, path/to/added/file)'
pummit 'sparkles I am unko man'
# Run: git commit -m ':sparkles: I am unko man (path/to/added/file, path/to/added/file)'
It is distributed with Homebrew.
brew tap hidemaruowo/tap
brew update
brew install pummit
If you have Go installed, run this.
go install github.com/HidemaruOwO/pummit@latest
https://github.com/HidemaruOwO/pummit/releases
If it is not installed, download the file that matches your environment from Release and run the following command.
tar xzvf pummit**.tar.gz
sudo mv pummit /usr/local/bin
git clone https://github.com/HidemaruOwO/pummit.git
cd pummit
go build main.go
To use pummit, please register the following command in your path
- git
the following keybindings.config/lazygit/config.yml
Please set it to
customCommands:
- key: "c"
prompts:
- type: "input"
title: "Commit message"
initialValue: ""
command: "pummit '{{index .PromptResponses 0}}'"
context: "files"
description: "commit changes(Custom Command)"
# ==================== Emojis ====================
# 🎉 :tada: 初めてのコミット(Initial Commit)
# ♻️ :recycle: マージ(Merge)
# 🔖 :bookmark: バージョンタグ(Version Tag)
# ✨ :sparkles: 新機能(New Feature)
# 🐛 :bug: バグ修正(Bagfix)
# 👀 :eyes: リファクタリング(Refactoring)
# 📚 :books: ドキュメント(Documentation)
# 🎨 :art: デザインUI/UX(Accessibility)
# 🐎 :horse: パフォーマンス(Performance)
# 🔧 :wrench: ツール(Tooling)
# 🚨 :rotating_light: テスト(Tests)
# 💩 :hankey: 非推奨追加(Deprecation)
# 🗑️ :wastebasket: 削除(Removal)
# 🚧 :construction: WIP(Work In Progress)
# ☃️ :snowman: 仕様変更
# ==================== Format ====================
# :emoji: Subject (Dir/AddedFile Dir/AddedFile)
#
# Commit body...
for examplewastebasket
を入力するのは少し大変ですが、エイリアス機能を使うとwb
You can enter it easily.
$ pummit wb モジュールの削除
# Result: :wastebasket: モジュールの削除 (path/to/added/file)
The default aliases are as follows.
📎 There is aliases
Alias : Prefix : Emoji
----------------------
sm : snowman : ☃️
h : horse : 🐎
w : wrench : 🔧
l : rotating_light : 🚨
p : hankey : 💩
wb : wastebasket : 🗑️
c : construction : 🚧
r : recycle : ♻️
s : sparkles : ✨
t : tada : 🎉
e : eyes : 👀
b : bug : 🐛
d : books : 📚
a : art : 🎨
This command allows you to add an alias.
$ pummit alias add 's' 'sparkles'
In this cases
Just enter the alias "Emoji prefix" in the commit message.sparkles
will be able to be substituted.
$ pummit s 新機能の追加
# Run: git commit -m ':sparkles: 新機能の追加 (path/to/added/file)'
This command allows you to delete an alias.
$ pummit alias delete s
In this case,s=spakles
If you run this command assuming that the alias is registereds
andsparkles
Since the association of Emoji prefix will be lost, even if you run the following command, the Emoji prefix will not bes
only is assigned.
$ pummit s 新機能の追加
# Run: git commmit -m ':s: 新機能の追加 (path/to/added/file)'
You can also specify multiple aliases to delete as arguments.
$ pummit alias delete s sm c h
This command deletes all registered aliases.
$ pummit alias delete --all
This command displays all registered aliases.
$ pummit alias list
If the aliass=sparkles
andt=tada
If it is registered, the following will be output.
📎 There is aliases
Alias : Prefix : Emoji
s : sparkles : ✨
t : tada : 🎉
This command resets the alias.
$ pummit alias reset
If there are so many aliases that it becomes confusing,config.json
It can be used as a recovery tool in case you cause a bug by directly playing with it.
$ pummit alias list
📎 There is aliases
Alias : Prefix : Emoji
----------------------
hjjciiiisadsadasda : sparkles : ✨
w : wrench : 🔧
s : sparkles : ✨
l : rotating_light : 🚨
p : hankey : 💩
wb : wastebasket : 🗑️
c : construction : 🚧
sm : snowman : ☃️
hj : sparkles : ✨
hjjjksda : sparkles : ✨
hjjca : sparkles : ✨
hjjciiiia : sparkles : ✨
a : art : 🎨
h : horse : 🐎
r : recycle : ♻️
t : tada : 🎉
b : bug : 🐛
e : eyes : 👀
d : books : 📚
Even if there are a lot of confusing aliases like this:
$ pummit alias reset
> May I reset the aliases? :(Y/n) y
[INFO] Alias reseted
📎 There is aliases
Alias : Prefix : Emoji
----------------------
sm : snowman : ☃️
h : horse : 🐎
w : wrench : 🔧
l : rotating_light : 🚨
p : hankey : 💩
wb : wastebasket : 🗑️
c : construction : 🚧
r : recycle : ♻️
s : sparkles : ✨
t : tada : 🎉
e : eyes : 👀
b : bug : 🐛
d : books : 📚
a : art : 🎨
You can restore it to this beautiful state with just one command.