小编Gag*_*age的帖子

删除 zsh shell 中每一行的时间戳

我正在尝试使用 ZSH 从我的终端 (macOS) 中删除当前时间戳。我正在使用 oh-my-zsh 并且配置了主题“pure”。

\n\n

时间戳出现在每行最右侧的括号中,我不知道如何删除它。

\n\n

示例: \n时间戳在右侧以红色突出显示。

\n\n

更新:终端输出示例,我想[17:29:47]从每一行中删除等。

\n\n
\xe2\x9d\xaf cd ~                                                                         [17:29:47]\n\n~\n\xe2\x9d\xaf ls                                                                           [17:29:49]\nApplications Documents    Library      Music        Projects\nDesktop      Downloads    Movies       Pictures     Public\n\n~\n\xe2\x9d\xaf ls -l                                                                        [17:29:51]\ntotal 0\ndrwx------@  4 gage  staff   128 Mar  4 22:27 Applications\ndrwx------@  4 gage  staff   128 Mar  7 15:39 Desktop\n
Run Code Online (Sandbox Code Playgroud)\n\n

任何帮助将不胜感激,谢谢!

\n

unix macos shell zsh oh-my-zsh

3
推荐指数
2
解决办法
7288
查看次数

标签 统计

macos ×1

oh-my-zsh ×1

shell ×1

unix ×1

zsh ×1