Bash 补全 symfony
如何在 bash 中完成 symfony 补全? 有ubuntu 9.10。编写自己的别名很困难。有人知道我在哪里可以找到它吗?
我发现 http://trac.symfony-project.org/wiki/BashCompletion -但它适用于 symfony 1.1。与1.4兼容吗?
How can I make symfony completion in bash?
Have ubuntu 9.10. It's hard to write own alias. Anyone know where can I find it?
I find http://trac.symfony-project.org/wiki/BashCompletion - but it is for symfony 1.1. Is it compatible with 1.4 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
http://github.com/biko2/symfony_complete
该脚本非常适合 symfony 1.4。
http://github.com/biko2/symfony_complete
This script works great for symfony 1.4.
我不确定该代码是否适用于 1.4,因为我不使用 propel,而是使用 symfony 的 ORM 学说。然而,真的有必要再这样做吗? symfony 任务能够计算出您的意思,如果它是最独特的表达式形式,就像补全一样,例如:
我还发现,如果您经常使用上面的脚本,那么将它们放入自己的脚本中是很有用的bash 脚本在路径中,这样您就可以使用代码完成来调用它们,
然后将其保存在路径中,例如
/usr/local/sbin
,如symfony-build
然后设置它作为可执行文件 chmod +x /usr/local/sbin/symfony-build ,然后您可以通过输入 symfony-[TAB] 来调用它,它应该为您完成代码(虽然不一定是你想要的)。I am not sure if that code will work with 1.4 because I do not use propel but use the doctrine ORM with symfony. However is there a real need to do this any more? The symfony task is capable of working out what you meant if it is the most unique form of the expression much like completion would work, for example:
I also find it useful to put scripts like the above if you use them a lot into their own bash scripts in the path so you can call them with code completion i.e.
and then save it in the path e.g.
/usr/local/sbin
as something likesymfony-build
then set it as execucutablechmod +x /usr/local/sbin/symfony-build
then you may call it by typingsymfony-[TAB]
and it should code complete for you (though not necessarily how you wanted).