To commit all tracked changes, in my fabfile I have:
local("git commit -a")
and in my .zshenv I have:
alias emacs="emacs -nw"
export EDITOR=emacs
However, when I call the fabfile function, it still spawns the GUI version of Emacs (which doesn’t seem to work from terminal). What am I missing to have Fabric and hence Git use my Emacs alias?
There are too many elements in the chain: fabric, shell etc. Alias can be not in effect in these situations.
Why don’t you simply issue this command