나는 HISTTIMEFORMAT이 Bash shells라고 생각합니다. 사용하는 경우 zsh
다음 스위치를 history
명령에 사용할 수 있습니다 .
예
$ history -E
1 2.12.2013 14:19 history -E
$ history -i
1 2013-12-02 14:19 history -E
$ history -D
1 0:00 history -E
2 0:00 history -i
당신이 man zshoptions
또는man zshbuiltins
이러한 스위치에 대한 자세한 정보와 관련된 다른 정보를 찾을 수 있습니다 history
.
zshbuiltins 매뉴얼 페이지에서 발췌
Also when listing,
-d prints timestamps for each command
-f prints full time-date stamps in the US `MM/DD/YY hh:mm' format
-E prints full time-date stamps in the European `dd.mm.yyyy hh:mm' format
-i prints full time-date stamps in ISO8601 `yyyy-mm-dd hh:mm' format
-t fmt prints time and date stamps in the given format; fmt is formatted
with the strftime function with the zsh extensions described for
the %D{string} prompt format in the section EXPANSION OF PROMPT
SEQUENCES in zshmisc(1). The resulting formatted string must be no
more than 256 characters or will not be printed.
-D prints elapsed times; may be combined with one of the options above.
디버깅 호출
다음 두 가지 방법을 사용하여 zsh
호출 할 때 디버그 할 수 있습니다.
방법 # 1
$ zsh -xv
방법 # 2
$ zsh
$ setopt XTRACE VERBOSE
두 경우 모두 시작시 다음과 같이 표시됩니다.
$ zsh -xv
#
# /etc/zshenv is sourced on all invocations of the
# shell, unless the -f option is set. It should
# contain commands to set the command search path,
# plus other important environment variables.
# .zshenv should not contain commands that produce
# output or assume the shell is attached to a tty.
#
#
# /etc/zshrc is sourced in interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
## shell functions
...
...
unset -f pathmunge _src_etc_profile_d
+/etc/zshrc:49> unset -f pathmunge _src_etc_profile_d
# Created by newuser for 4.3.10