[misc] fix --icon error

This commit is contained in:
Klesh Wong 2020-11-11 09:51:44 +08:00
parent e69968efe4
commit a91d0c003c

View File

@ -11,5 +11,5 @@ function fish_right_prompt
set active_window (xdotool getactivewindow 2>/dev/null) set active_window (xdotool getactivewindow 2>/dev/null)
test $active_window -eq $WINDOWID && return test $active_window -eq $WINDOWID && return
set message (history --max=1) [$duration] set message (history --max=1) [$duration]
notify-send (test "$s" -ne 0 && echo '--icon' error) $message notify-send (test "$s" -ne 0 && echo '--icon=dialog-warning') $message
end end