在Mac OS X中启动NetBeans时运行终端命令 [英] Run terminal command on startup of netbeans in mac osx

查看:122
本文介绍了在Mac OS X中启动NetBeans时运行终端命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,在Mac OS X中启动netbeans时,有人知道在终端中运行命令的好方法吗?作为netbeans中的选项还是mac osx的功能?我想在netbeans启动时自动将本地文件与远程文件夹同步,因此我想在netbeans启动时运行rsync命令.否则我会忘记,最终会陷入冲突.

Hey, does anybody know of a good way to run a command in the terminal when you startup netbeans in mac osx? Either as an option in netbeans or as a feature of mac osx? I'd like automatically sync my local files with a remote folder on startup of netbeans, so I'd like to run an rsync command when netbeans starts up. Otherwise I forget and I wind up with conflicts.

推荐答案

为什么不将您的路径中的原始"netbeans"重命名为其他东西, 并编写一个名为"netbeans"的脚本,该脚本首先运行所需的命令,然后运行 运行原始的netbeans可执行文件?

Why not just rename the original "netbeans" in your path to something else, and write a sciprt named "netbeans", which first runs the desired command, and then runs the original netbeans executable?

这篇关于在Mac OS X中启动NetBeans时运行终端命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆