Don't notify when select commands exit

This commit is contained in:
2024-04-12 22:17:27 +01:00
parent 6678fe0aaf
commit a9fb5104ac
2 changed files with 31 additions and 3 deletions

11
zshrc
View File

@@ -231,3 +231,14 @@ esac
command -v wol > /dev/null && \
alias wakeonlan='wol'
# Append any aliases to notify_ignore_list if they contain any ignore commands
# NOTE: Keep this at the end of ~/.zshrc so all aliases are processed
for name in ${(k)aliases}; do
cmd=${${${$(alias $name)#${name}=}#\'}#\"}
for ignore in $notify_ignore_list; do
if [[ "$cmd" = "$ignore"* ]]; then
notify_ignore_list+=( $name )
fi
done
done