Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ listed in ``AUTO_NTFY_DONE_IGNORE`` don't generate notifications. For example:

.. code:: shell

export AUTO_NTFY_DONE_IGNORE="vim screen meld"
export AUTO_NTFY_DONE_IGNORE="vim screen meld 'npm run dev' 'npm run watch'"

Extras
~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion ntfy/shell_integration/auto-ntfy-done.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function _ntfy_precmd () {
ntfy_start_time=''

local appname=$(basename "${ntfy_command%% *}")
[[ " $AUTO_NTFY_DONE_IGNORE " == *" $appname "* ]] && return
[[ " $AUTO_NTFY_DONE_IGNORE " == *" $appname "* || " $AUTO_NTFY_DONE_IGNORE " == *"'$ntfy_command'"* ]] && return

(ntfy $AUTO_NTFY_DONE_OPTS done \
$AUTO_NTFY_DONE_UNFOCUSED_ONLY $AUTO_NTFY_DONE_LONGER_THAN \
Expand Down