zsh

zsh

 英

  • 网络绍兴;东莞(Zhongshan);什那干群

例句

In the examples so far, we have been using a prompt of "zsh%" , which is not terribly informative.

目前为止示例我们一直使用没有包含一些有用信息“zsh%”提示

The Zsh even has a form of spell checker, which attempts to correct various mistakes.

Zsh甚至一个可以校正各种错误拼写检查

In zsh, you can accomplish this by skipping the temporary files, as shown in Listing 21.

zsh无需临时文件即可完成任务清单21

Within shells supporting the Bourne syntax (bash and zsh), you can define a function using the following syntax shown in Listing 6.

支持Bourne语法bashzsh外壳可以使用清单6以下语法定义函数

Please do try out the examples for yourself, to really get a feel for Zsh.

亲自尝试这些示例真正体会Zsh

The zsh operator, $=, splits words at whitespace boundaries.

zsh操作符$=空白边界拆分单词

There are a number of options available to you within zsh.

可以zsh使用许多选项

Finally, zsh supports a number of postfix qualifiers.

最后zsh支持许多后缀修饰

You'll find throughout this article that this is something Zsh is very good at doing.

通过本文发现Zsh擅长

Within some shells, zsh included, you can complete a file or command by pressing the TAB key.

某些Shell包括zsh可以通过TAB完成文件命令

zsh wiki: Collaborate, discuss, and share your zsh expertise.

协作讨论分享zsh专业知识访问zshwiki

With zsh, the same result can be achieved on a single command line (see Listing 13).

使用zsh单个命令即可实现相同结果请参见清单13)。

The above example was with the Bash shell, but of course the Zsh can do this too!

以上示例Bashshell当然Zsh可以做到一点

Hence, the command synch. zsh has only one positional parameter, $0.

因此命令synch.zsh只有一个位置参数$0。

See the Zsh documentation for more details of the Zsh startup process.

了解Zsh启动过程详情参阅Zsh文档

By using the custom completion control in zsh, you can add these subcommands to svn as part of the completion process.

通过使用zsh自定义完成控制可以作为完成过程一部分这些命令添加svn

You can redirect to multiple outputs simultaneously with zsh (see Listing 15).

现在使用zsh可以同时定向多个输出请参见清单15)。

Zsh offers a few default colours that can be accessed with names such as red, cyan, etc.

Zsh提供一些默认颜色可以通过redcyan这样名字引用

The Zsh also supports a right-hand prompt, using the RPROMPT variable which supports the same syntax.

Zsh同样支持右边提示符使用支持相同语法RPROMPT变量

zsh Mailing List Archive: Read this mailing list to learn more Z shell tricks and tips.

zsh邮件列表存档阅读列表了解更多ZShell技巧提示

These commands work in bash, but similar options exist in zsh and other shells.

这些命令可以bash执行zsh其他Shell具有类似选项

The commands should work in all shells, not just zsh.

这些命令可以所有shell工作不仅仅是zsh

By default the behaviour of Zsh is very similar, but by setting a couple of options, we can make it friendlier.

Zsh缺省情况类似但是通过设置几个选项我们可以使好些

But Zsh can do even better than that.

但是Zsh甚至可以要好

For example, to use cloud. zsh-theme, set ZSH_THEME=cloud.

例如使用cloud.zsh-theme,应该设置ZSH_THEME=cloud。

If you save Listing 4 to an executable file named listcmds. zsh, the output might look like this

如果清单4保存一个名为listcmds.zsh可执行文件输出可能类似如下

The production of hydrogen chloride and hydrochloric acid in the new type ZSH positive pressure two-in-one graphite synthesis furnace

新型ZSH合一石墨合成生产氯化氢盐酸

Zsh has a multi-line editing mode, which is great for short shell scripts, as in this example

Zsh具有编辑模式特别适合短小shell脚本如下