]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
zsh/rc: fix process run time display with fg
authorSimon Ruderich <simon@ruderich.org>
Sat, 29 Nov 2014 10:26:44 +0000 (11:26 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sat, 29 Nov 2014 10:26:44 +0000 (11:26 +0100)
zsh/rc

diff --git a/zsh/rc b/zsh/rc
index c1ee1d4aa2236ec8f3306fd230eb14b55336640f..2d8680eceda8708a2e8f7224734a351ec86313b2 100644 (file)
--- 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