且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Fabric脚本中调用bash别名

更新时间:2023-12-05 18:50:46

是对主要问题的快速解答,是为了避免有人读我的长篇论文,只需
添加

Here is the quick answer to the main issue, to save someone reading my long question, just add

env.shell = "/bin/bash -l -i -c" 

到fabfile.py,您应该能够很好地在结构命令中使用别名!

to your fabfile.py and you should be able use aliases in your fabric commands just great!