diff options
author | Marc Cornellà <marc.cornella@live.com> | 2020-09-28 12:09:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 12:09:20 +0200 |
commit | 53259f628b81040051afbec13313769d24c96410 (patch) | |
tree | 9e6b995973039aab9a9a961faa636fa4a530efc8 /plugins | |
parent | 765966606de9f1fc337818984220268af62926d6 (diff) | |
download | zsh-53259f628b81040051afbec13313769d24c96410.tar.gz zsh-53259f628b81040051afbec13313769d24c96410.tar.bz2 zsh-53259f628b81040051afbec13313769d24c96410.zip |
bgnotify: use $2 in preexec hook if $1 is empty
Fixes #5803
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/bgnotify/bgnotify.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh index b3a6890b8..aecde20ea 100644 --- a/plugins/bgnotify/bgnotify.plugin.zsh +++ b/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) } |