diff --git a/auto-notify.plugin.zsh b/auto-notify.plugin.zsh index 673e66b..80aad5d 100644 --- a/auto-notify.plugin.zsh +++ b/auto-notify.plugin.zsh @@ -58,7 +58,7 @@ function _is_auto_notify_ignored() { local command_list=("${(@s/|/)command}") local target_command="${command_list[-1]}" # Remove leading whitespace - target_command="$(echo "$target_command" | sed -e 's/^ *//')}" + target_command="$(echo "$target_command" | sed -e 's/^ *//')" for ignore in $AUTO_NOTIFY_IGNORE; do if [[ "$target_command" == "$ignore"* ]]; then