bundle open #{gem_name}
opens a gem you have installed in the application specified by BUNDLER_EDITOR
or EDITOR
if the former is not present.
bundle open#{gem_name}打开您在BUNDLER_EDITOR或EDITOR指定的应用程序中安装的gem(如果前者不存在)。
Obviously it is possible to open the actual location instead, I'm just wondering if node/npm have a similar helper feature.
显然,可以打开实际位置,我只是想知道node / npm是否有类似的帮助功能。
1 个解决方案
#1
2
You can use the npm edit <pkg>
command to do this
您可以使用npm edit
Description
Opens the package folder in the default editor (or whatever you've configured as the npm editor config -- see
npm-config
.)在默认编辑器中打开包文件夹(或者您配置为npm编辑器配置的任何内容 - 请参阅npm-config。)
After it has been edited, the package is rebuilt so as to pick up any changes in compiled packages.
编辑完成后,将重建包,以便获取已编译包中的任何更改。
For instance, you can do
npm install connect
to install connect into your package, and thennpm edit connect
to make a few changes to your locally installed copy.例如,您可以执行npm install connect以将connect安装到您的软件包中,然后使用npm edit connect来对您本地安装的副本进行一些更改。
Configuration
editor
编辑
- Default: EDITOR environment variable if set, or "vi" on Posix, or "notepad" on Windows.
- 默认值:如果设置了EDITOR环境变量,或者Posix上的“vi”或Windows上的“notepad”。
- Type: path
- 输入:路径
The command to run for
npm edit
ornpm config edit
.运行npm edit或npm config编辑的命令。
#1
2
You can use the npm edit <pkg>
command to do this
您可以使用npm edit
Description
Opens the package folder in the default editor (or whatever you've configured as the npm editor config -- see
npm-config
.)在默认编辑器中打开包文件夹(或者您配置为npm编辑器配置的任何内容 - 请参阅npm-config。)
After it has been edited, the package is rebuilt so as to pick up any changes in compiled packages.
编辑完成后,将重建包,以便获取已编译包中的任何更改。
For instance, you can do
npm install connect
to install connect into your package, and thennpm edit connect
to make a few changes to your locally installed copy.例如,您可以执行npm install connect以将connect安装到您的软件包中,然后使用npm edit connect来对您本地安装的副本进行一些更改。
Configuration
editor
编辑
- Default: EDITOR environment variable if set, or "vi" on Posix, or "notepad" on Windows.
- 默认值:如果设置了EDITOR环境变量,或者Posix上的“vi”或Windows上的“notepad”。
- Type: path
- 输入:路径
The command to run for
npm edit
ornpm config edit
.运行npm edit或npm config编辑的命令。