1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

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

Fixes #5803
This commit is contained in:
Marc Cornellà
2020-09-28 12:09:20 +02:00
committed by GitHub
parent 765966606d
commit 53259f628b

View File

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