From: sev Date: Fri, 5 Apr 2024 19:48:35 +0000 (-0500) Subject: zshrc: use int for _sev_exectime X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/commitdiff_plain/5437a0d2b352a5e15dd03dc65733aaeb5688f9d8?hp=4ab73520446bbaf98bc1a6069710f44888551f7a zshrc: use int for _sev_exectime --- diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index fd1f378..bd670c2 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -307,7 +307,7 @@ alias dcl='sudo docker compose logs -f' ### hooks autoload -Uz add-zsh-hook -_sev_exectime= +typeset -gi _sev_exectime function sev_preexec { # change terminal title to show command print -n "\e]2;$(print -P '%#')${SSH_CLIENT+$USER@$HOST:}$1\e\\"