1

要提交所有跟踪的更改,在我的 fabfile 中我有:

local("git commit -a")

在我的 .zshenv 中,我有:

alias emacs="emacs -nw"
export EDITOR=emacs

但是,当我调用 fabfile 函数时,它仍然会生成 Emacs 的 GUI 版本(这似乎不适用于终端)。我缺少什么让 Fabric 和 Git 使用我的 Emacs 别名?

4

1 回答 1

1

链中有太多元素:织物、外壳等。在这些情况下,别名可能无效。你为什么不简单地发出这个命令

git config core.editor "emacs -nw"
于 2012-07-05T13:37:41.450 回答