Skip to content

Commit

Permalink
chore: implement > /dev/null 2>&1 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Jan 27, 2021
1 parent aa0d56e commit 0b4ff3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zsh-notify.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ _zsh_notify_popup() {

_zsh_notify_success() {
_zsh_notify_popup "${1}" "The command succeded after ${2} seconds" success.jpg
notify::play "${_ZSH_NOTIFY_ASSETS_DIR}"/success.mp3
notify::play "${_ZSH_NOTIFY_ASSETS_DIR}"/success.mp3 > /dev/null 2>&1
}

_zsh_notify_error() {
_zsh_notify_popup "${1}" "The command failed after ${2} seconds with code: ${3}" error.png
notify::play "${_ZSH_NOTIFY_ASSETS_DIR}"/error.mp3
notify::play "${_ZSH_NOTIFY_ASSETS_DIR}"/error.mp3 > /dev/null 2>&1
}

_zsh_notify_command_complete() {
Expand Down

0 comments on commit 0b4ff3c

Please sign in to comment.