sublime配置shell脚本解释器

mac环境下

新建编译文件shell.sublime-build, 编译系统选择自动即可

{
    "cmd": ["bash", "$file"],
    "selector": "source.shell"
}

hello.sh

#!/bin/bash

echo "hello  world"
echo "你好,世界!"

运行:command + B

输出:

hello  world
你好,世界!
[Finished in 0.0s]

参考:
sublime text中使用cmd+B运行shell的设置

猜你喜欢

转载自blog.csdn.net/mouday/article/details/81030943
今日推荐