bgnotify: use $2 in preexec hook if $1 is empty

Fixes #5803
master
Marc Cornellà 6 years ago committed by GitHub
parent 765966606d
commit 53259f628b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      plugins/bgnotify/bgnotify.plugin.zsh

@ -53,7 +53,7 @@ bgnotify () { ## args: (title, subtitle)
bgnotify_begin() {
bgnotify_timestamp=$EPOCHSECONDS
bgnotify_lastcmd="$1"
bgnotify_lastcmd="${1:-$2}"
bgnotify_windowid=$(currentWindowId)
}

Loading…
Cancel
Save