Получение oh-my-zsh 'history' для отображения даты и времени команды - PullRequest
0 голосов
/ 11 октября 2018

.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 не работает.

1 Ответ

0 голосов
/ 11 октября 2018

Текст комментария .zshrc вводит в заблуждение.

Использование:

HIST_STAMPS="%d/%m/%y %T"

Для отображения соответственно дня, месяца, года и времени.

...