zsh: Always report improved statistics of command

Print the `.banner` before printing the report. Add several parameters
to the report.
This commit is contained in:
finga 2023-06-21 09:29:36 +02:00
parent 3a4053e2e2
commit 5e3522ccf6

14
.zshrc
View file

@ -43,8 +43,17 @@ precmd() {
echo -ne "\e]2;${HOST}:${tab_label}\a"
}
# source banner
. ~/.banner
# Report CPU usage for commands running longer than 1 second
REPORTTIME=1
REPORTTIME=0
# Report Memory usage for commands running longer than 1 second
REPORTMEMORY=0
# Format reports
TIMEFMT="%J %U user %S system %P cpu %*E total, %X kB text space %D kB data/stack memory %M kB max. %K kB total, %O iops %I oops, %w waits %c ctx switches"
# Dirstack
DIRSTACKSIZE=20
@ -53,9 +62,6 @@ DIRSTACKSIZE=20
GPG_TTY=$(tty)
export GPG_TTY
# source banner
. ~/.banner
# source fzf
if [ -e "/usr/share/doc/fzf/examples/key-bindings.zsh" ] ; then
. /usr/share/doc/fzf/examples/key-bindings.zsh