diff --git a/share/functions/fish_vi_cursor.fish b/share/functions/fish_vi_cursor.fish index 3f1e7bbc6..f58d45f50 100644 --- a/share/functions/fish_vi_cursor.fish +++ b/share/functions/fish_vi_cursor.fish @@ -1,6 +1,6 @@ function fish_vi_cursor -d 'Set cursor shape for different vi modes' - # If we're not interactive, there is effectively no bind mode. - if not status is-interactive + # if stdin is not a tty, there is effectively no bind mode. + if not test -t 0 return end