]> arthur.barton.de Git - ax-zsh.git/commitdiff
std_functions: Fix return code of open_command()
authorAlexander Barton <alex@barton.de>
Fri, 4 Feb 2022 21:48:36 +0000 (22:48 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 4 Feb 2022 21:48:36 +0000 (22:48 +0100)
default_plugins/std_functions/std_functions.zshrc

index 6401e74fcee409a6132f8928dab9b6585f27add1..e20122ac80520675f0f1dfeb2c7e53de4349f055 100644 (file)
@@ -12,8 +12,10 @@ function open_command() {
                linux*)
                        nohup xdg-open "$@" &>/dev/null || return 1
                        ;;
+               *)
+                       return 2
        esac
-       return 1
+       return 0
 }
 
 function take() {