From 5e3522ccf6658f8c6834926ec30f0302ebb5628b Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 21 Jun 2023 09:29:36 +0200 Subject: [PATCH] zsh: Always report improved statistics of command Print the `.banner` before printing the report. Add several parameters to the report. --- .zshrc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 5da40b0..d893432 100644 --- a/.zshrc +++ b/.zshrc @@ -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