Skip to content

Oh-my-zsh in .gitconfig template #3970

Answered by twpayne
claughinghouse asked this question in Q&A
Discussion options

You must be logged in to vote

Another, admittedly hacky, option is to make .gitconfig a template and extract the value written by Oh My Zsh. Something like:

[oh-my-zsh]
    git-commit-alias = {{ index (output "grep" "git-commit-alias" (joinPath .chezmoi.homeDir ".gitconfig") | splitList "=") 1 | trim }}

This is really ugly though.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@claughinghouse
Comment options

Answer selected by claughinghouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants