]> arthur.barton.de Git - ax-zsh.git/blobdiff - default_plugins/std_functions/std_functions.zshrc
std_functions: Fix return code of open_command()
[ax-zsh.git] / 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() {