python - Fabric 本地 zsh 别名

标签 python emacs zsh fabric

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

local("git commit -a")

在我的 .zshenv 中,我有:

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

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

最佳答案

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

git config core.editor "emacs -nw"

关于python - Fabric 本地 zsh 别名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11345359/

相关文章:

python - Tkinter 使用 enter 而不是空格键按下按钮

python - 代码覆盖率和三元运算符

python - 解除绑定(bind)Window.grab_mouse

emacs - 我应该从 ErgoEmacs 开始学习 emacs 吗?

Ruby Rbenv 试图从 Bundle 运行 Zeus,尽管它是一个全局性的 gem(使用 ZSH)

python - 查找非空字符串的百分比

emacs - 停止 lisp 要求用户输入

emacs - 基于正则表达式 emacs 组织模式的颜色标签

bash - ZSH 在 linux bash 中的 "compadd' 等价物是什么?

bash - shell历史文件的格式是什么