从bash的默认编辑器打开文件 [英] Open file in default editor from bash
本文介绍了从bash的默认编辑器打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何打开与bash的默认GUI编辑器?
How do I open a file my script generated with the default GUI editor with bash?
在OS X中是命令打开
,但据我所知,这并不在Linux上存在。什么是一个很好的跨平台替代?
On OS X there is the command open
, but as far as I know that doesn't exist on linux. What is a good cross-platform alternative?
(执行开somefile.ext
在OS X不一样的,如果我双击Finder中的文件)。
(executing open somefile.ext
on OS X does the same as if I double clicked the file in Finder).
推荐答案
大多接近这个是 XDG-打开
:
Mostly close to this is xdg-open
:
$ xdg-open somefile.ext
这篇关于从bash的默认编辑器打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文