From 59f75acb083dc548d2a36936ee639e5449caa6f0 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 25 Mar 2021 11:54:29 +0800 Subject: [PATCH] [bugfix] error when running inside idea --- cli/fish/functions/fish_right_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/fish/functions/fish_right_prompt.fish b/cli/fish/functions/fish_right_prompt.fish index e4b467e..7048fea 100644 --- a/cli/fish/functions/fish_right_prompt.fish +++ b/cli/fish/functions/fish_right_prompt.fish @@ -9,7 +9,7 @@ function fish_right_prompt test -z $CMD_DURATION -o \( $CMD_DURATION -lt 3000 \) && return test -z $WINDOWID && return 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] notify-send (test "$s" -ne 0 && echo '--icon=dialog-warning') $message end