gpt4 book ai didi

oh-my-zsh - 获取 oh-my-zsh 'history' 以显示命令日期和时间

转载 作者:行者123 更新时间:2023-12-03 22:53:31 41 4
gpt4 key购买 nike

.zshrc有以下几行:

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

但取消注释并运行 history不起作用。

最佳答案

.zshrc 注释文本具有误导性。

用:
HIST_STAMPS="%d/%m/%y %T"
分别显示日、月、年和时间。

关于oh-my-zsh - 获取 oh-my-zsh 'history' 以显示命令日期和时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52755692/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com