[bugfix] error when running inside idea

This commit is contained in:
Klesh Wong 2021-03-25 11:54:29 +08:00
parent 2cc47607df
commit 59f75acb08

View File

@ -9,7 +9,7 @@ function fish_right_prompt
test -z $CMD_DURATION -o \( $CMD_DURATION -lt 3000 \) && return test -z $CMD_DURATION -o \( $CMD_DURATION -lt 3000 \) && return
test -z $WINDOWID && return test -z $WINDOWID && return
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=dialog-warning') $message notify-send (test "$s" -ne 0 && echo '--icon=dialog-warning') $message
end end