【问题标题】:Text Wrangler and terminal command?文本牧马人和终端命令?
【发布时间】:2017-11-06 02:12:24
【问题描述】:

我想知道如何从终端打开 index.html 文件。例如,我知道崇高的作品是这样的:

崇高的 index.html

但是对于 textWrangler?一般来说,对于我选择的任何程序,我怎样才能找到这些命令,比如“sublime”。谢谢我正在使用 OSX。

【问题讨论】:

标签: html terminal textwrangler


【解决方案1】:

对于终端中的 TextWrangler 访问,我使用 open 命令:

# opens index.html in TextWrangler
open index.html -a 'TextWrangler'

# opens CWD in TextWrangler
open . -a 'TextWrangler'

# alternative, add alias for TextWrangler in .bashrc or .zshrc
alias code="open ${1: .} -a 'TextWrangler'"

# then open index.html or CWD (current working directory)
code index.html
code

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-20
    • 1970-01-01
    • 2020-09-16
    • 2010-09-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多