From 3c12563be13872d42cd9336c2f47cab6ec29f555 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 29 Nov 2014 11:26:44 +0100 Subject: [PATCH] zsh/rc: fix process run time display with fg --- zsh/rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/rc b/zsh/rc index c1ee1d4..2d8680e 100644 --- a/zsh/rc +++ b/zsh/rc @@ -344,6 +344,11 @@ zshrc_longrun_preexec() { zshrc_resolve_fg_to_resumed_job_name $program program=$REPLY + # No background process found. + if [[ -z $program ]]; then + return + fi + # Don't track the time for certain (possible) long running processes which # need no automatic notification. for ignore in elinks man mutt vim; do -- 2.45.2