简体   繁体   English

自定义 zsh 提示符

[英]Customize zsh prompt

How can I remove the [ that is placed before my commands after they are entered (eg the top two lines in the picture).输入命令后如何删除[放在我的命令之前(例如图片中的前两行)。 Looking for something to put in my .zshrc file.寻找可放入我的.zshrc文件的内容。

在此处输入图像描述

As per chepner , they are part of the terminal not zsh.根据chepner ,它们是终端的一部分而不是 zsh。

The way to remove them is:去除它们的方法是:

Choose Edit > Marks > Automatically Mark Prompt Lines.选择“编辑”>“标记”>“自动标记提示行”。 The tick lets you know whether the option is enabled.勾号让您知道该选项是否已启用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM