git-pretty-pull-request
git-pretty-pull-request copied to clipboard
Use the preferred file editor configured in git?
Something like EDITOR=$(git config --get core.editor)
@williamdclt After reading more on this, it seems that the env variable you used, EDITOR
, is a system-wide standard, which git actually uses if you don't specify core.editor
.
So I guess I could export EDITOR=whatever
too.
Yeah I have export EDITOR=vim
in my .zshrc :) But using the git editor definitely makes sense, a PR would be welcome
which do you think should take precedence between EDITOR
and git config --get core.editor
?
git config --get core.editor, like in git itself