跳转至内容

Oil Shell

来自 ArchWiki

Oil Shell (OSH) 是一个与 Bash 兼容的 UNIX 命令行 Shell。OSH 可以在大多数类 UNIX 操作系统上运行,包括 GNU/Linux。它使用 Python (v2.7) 编写,但附带一个原生可执行文件。OSH 识别的 Bash 方言称为 OSH 语言。

安装

安装 oil 包。

烟雾测试

通过在终端中运行以下命令,确保 OSH 已正确安装

$ osh

这将启动一个 OSH 会话并显示一个 Shell 提示符

osh$

识别已安装的二进制文件,并尝试在 OSH 会话中调用它,以确认输出是否正确。

例如:

osh$ ls
...

将 OSH 设置为默认 Shell

请参阅 Command-line shell#Changing your default shell

卸载

请参阅 Command-line shell#Uninstalling shell

故障排除

可复现的 bug/错误可以在 Github 上报告。在提交报告时,请包含 OSH 在详细模式下运行时生成的输出。要启用详细模式,请执行以下操作

$> export OVM_VERBOSE=1

参见

© . This site is unofficial and not affiliated with Arch Linux.

Content is available under GNU Free Documentation License 1.3 or later unless otherwise noted.