From 4d28473e506b802b9da370c9d9217dcecbdaf53d Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 1 Mar 2021 15:18:45 -0700 Subject: [PATCH] Allowed webbrowser to be a function --- zsh/utility | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/utility b/zsh/utility index 95d538e..95eb5f3 100644 --- a/zsh/utility +++ b/zsh/utility @@ -35,8 +35,8 @@ OPEN_CURRENT_GIT_REPOSITORY_IN_WEB_BROWSER() { } local URL="$(git remote get-url $REMOTE | sed 's/git@\([^:]*\):/http:\/\/\1\//')" [ "$WEBBROWSER" ]\ - && "$WEBBROWSER $URL" >/dev/null 2>&1 \ - || dg-open $URL >/dev/null 2>&1 \ + && $WEBBROWSER $URL >/dev/null 2>&1 \ + || xdg-open $URL >/dev/null 2>&1 \ || echo $URL; }