Print warning if notify-send is a missing dependency
This commit is contained in:
parent
4668a7fbd4
commit
5c39901fc7
2 changed files with 44 additions and 2 deletions
|
@ -122,4 +122,12 @@ function enable_auto_notify() {
|
|||
}
|
||||
|
||||
_auto_notify_reset_tracking
|
||||
enable_auto_notify
|
||||
|
||||
|
||||
platform="$(uname)"
|
||||
if [[ "$platform" == "Linux" ]] && ! type notify-send > /dev/null; then
|
||||
printf "'notify-send' must be installed for zsh-auto-notify to work\n"
|
||||
printf "Please install it with your relevant package manager\n"
|
||||
else
|
||||
enable_auto_notify
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue