A lightweight Zsh plugin to add custom prefixes and optional icons to your Git commit messages.
Supports multiple prefix styles ([fix]:
or Fix:
) and icon themes (classic
, minimal
, or none).
git-commit-prefixer feat "add dark mode toggle" # โจ [feat]: add dark mode toggle
classic
or minimal
).icons.conf
.git clone https://github.com/dvigo/git-commit-prefixer.git ~/.oh-my-zsh/custom/plugins/git-commit-prefixer
~/.zshrc
:
plugins=(... git-commit-prefixer)
Edit the icons.conf
file in the plugin folder or adjust the variables inside it.
USE_ICONS
true
/ false
true
Enable or disable icons PREFIX_STYLE
brackets
/ labels
brackets
Commit prefix format ICON_STYLE
classic
/ minimal
/ none
classic
Icon theme
Example icons.conf
USE_ICONS=true PREFIX_STYLE="brackets" ICON_STYLE="classic"
Basic syntax:
git-commit-prefixer <type> "your commit message"
Available types:
feat, fix, build, chore, ci, docs, style, refactor, perf, test
git-commit-prefixer feat "add login form" # โจ [feat]: add login form git-commit-prefixer fix "corrected typo in README" # ๐ [fix]: corrected typo in README
[fix]:
[feat]:
[build]:
[chore]:
[ci]:
[docs]:
[style]:
[refactor]:
[perf]:
[test]:
Fix:
Feature:
Build:
Chore:
CI:
Docs:
Style:
Refactor:
Performance:
Test:
๐ โจ ๐๏ธ ๐งน โ๏ธ ๐ ๐จ โป๏ธ โก โ
icons.conf
.GNU General Public License v3.0 โ See LICENSE for details.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4