Don't notify when select commands exit
This commit is contained in:
11
zshrc
11
zshrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user