我正在使用PHP
目前最新的稳定版本 Netbeans 7.3.1(主要是其他东西)。但我面临的问题甚至在这个版本之前就已经存在。
问题是,每当我alias
在 Netbeans 终端中为程序设置
( Window->Output->Terminal
) 并关闭终端,所有设置的别名都消失了。
同样的情况发生在Cygwin
.
这非常令人沮丧。这是一个错误,我必须忍受它还是我必须做一些调整?
问候,
I think I got it, perhaps it's not Netbeans' fault.
The problem (I'm not sure if it is really) is with Cygwin, when I do alias "foo=bar"
it
forgets everything when I close the Cygwin terminal or the Terminal in Netbeans.
Eventually, I had to add alias "foo=bar"
and every other necessary alias in the /home/.bashrc file.
And the Netbeans Terminal won't know anything about the aliases i have set until I manually run
. ~/.bashrc
Which raises another question, how can I make Netbeans Terminal load .bashrc
automatically whenever I launch the Terminal?
Regards,
假设您使用的是 Windows(因为您使用的是 Cygwin),请转到 Cygwin
cd # go to homedirectory
notepad .bashrc # add line "alias foo=bar" in notepad window"
exit
Window->Output->Terminal
在 Netbeans 中启动sh
不是bash
. 所以当你去那里时,输入“bash”,你就可以访问你可以在 Cygwin 上访问的所有别名。
我有 Netbeans 7.3.1 和 Cygwin 1.7.22,它对我来说工作正常。