From c88663944fcd031ff28102d56ae4ae7019a19430 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 4 Feb 2022 22:48:36 +0100 Subject: [PATCH] std_functions: Fix return code of open_command() --- default_plugins/std_functions/std_functions.zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/default_plugins/std_functions/std_functions.zshrc b/default_plugins/std_functions/std_functions.zshrc index 6401e74..e20122a 100644 --- a/default_plugins/std_functions/std_functions.zshrc +++ b/default_plugins/std_functions/std_functions.zshrc @@ -12,8 +12,10 @@ function open_command() { linux*) nohup xdg-open "$@" &>/dev/null || return 1 ;; + *) + return 2 esac - return 1 + return 0 } function take() { -- 2.39.2