From: Simon Ruderich Date: Sat, 29 Nov 2014 10:26:44 +0000 (+0100) Subject: zsh/rc: fix process run time display with fg X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=3c12563be13872d42cd9336c2f47cab6ec29f555;p=config%2Fdotfiles.git zsh/rc: fix process run time display with fg --- 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