Compare commits

...

3 Commits

Author SHA1 Message Date
inkch
b909524ed8 feat: fish: add abbr for chot command 2025-07-09 02:01:54 +09:00
inkch
bc36439ae8 feat: chot: add env var to specify the script directory 2025-07-09 02:00:48 +09:00
inkch
031d24dc03 feat: git: add examples to global commit template
This update adds curated examples to the .config/git/commitmsg file,
following the Conventional Commits style guide.

It includes examples for common types (feat, fix, docs, etc.)
and clarifies the structure of a good commit message.

Although I’ve decided to use Conventional Commit style for this project,
I haven’t settled on a consistent policy for scopes yet. For now, the
scope field (e.g. `fix(parser):`) may be omitted or used informally
based on context.

This should improve consistency and make `git commit` more guided
even in quick workflows.
2025-07-09 01:48:42 +09:00
4 changed files with 42 additions and 1 deletions

32
dot_config/git/commitmsg Normal file
View File

@@ -0,0 +1,32 @@
# Format: <type>[optional scope]: <description>
#
# Examples:
# feat: add new login flow
# fix: handle empty input properly in parser
# refactor(api): simplify response handler
# docs: add README section on usage
# chore: update .gitignore rules
# test: add coverage for config loader
#
#
# BREAKING CHANGES must be indicated with a "!" or in the footer:
# feat!: change output format to JSON
# chore(build)!: drop support for Node 14
#
# Or add footer:
# BREAKING CHANGE: config files now must include version field
# --------------------
# <type>(optional scope): <description>
#
# Optional body — explain what and why, not how
#
# Optional footers:
# BREAKING CHANGE: description
# Refs: #123, #456
# Reviewed-by: username
# --------------------
# Leave empty lines between header, body, and footer.

View File

@@ -418,3 +418,8 @@ end
if type -q hledger
abbr hl hledger
end
if type -q chot
abbr ch chot
abbr che chot edit
end

View File

@@ -13,7 +13,7 @@ set -x XDG_PICTURES_DIR "$HOME/vc/pix"
set -x XDG_VIDEOS_DIR "$HOME/vc/vids"
set -x PATH $HOME/.local/bin $PATH
set -x SCRIPTS_DIR "$HOME"/dev/scripts
# Editor
if type -q nvim;
@@ -169,6 +169,10 @@ if type -q zoxide
set -x _ZO_FZF_OPTS "-1"
end
if type -q chot; and test -d "$SCRIPTS_DIR"
set -x CHOT_SCRIPT "$SCRIPTS_DIR"/chot
end
{{- if (and (eq .chezmoi.os "linux") (eq .hosttype "desktop" "laptop")) }}
if test -d "$XDG_DATA_HOME/flatpak/exports/bin"
set -ax PATH "$XDG_DATA_HOME/flatpak/exports/bin"