diff --git a/Makefile b/Makefile index d86bae0..8684fe7 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ all: dist/repotool install: dist/repotool repotool.zsh repotool.plugin.zsh mkdir -p ${REPOTOOL_PATH}/.bin/ - install repotool repotool.zsh repotool.plugin.zsh ${REPOTOOL_PATH}/.bin/ + install dist/repotool repotool.zsh repotool.plugin.zsh ${REPOTOOL_PATH}/.bin/ src/lib/repotool/stdlib.sh: $(SOURCES_LIBS) bashly add --source . stdlib -f diff --git a/repotool.zsh b/repotool.zsh index 6f1262a..ed6153a 100755 --- a/repotool.zsh +++ b/repotool.zsh @@ -43,4 +43,9 @@ case "$1" in usage: repo get EOF + ;; + "open") + raw_url=$(git ls-remote --get-url | cut -d '@' -f2 | sed 's/:/\//1') + xdg-open "https://${raw_url}" + ;; esac