Skip to content

Commit bfbe5bf

Browse files
author
Lars Gohlke
committed
adds function to open repo in browser
1 parent 8957da1 commit bfbe5bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/git.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,10 @@ if [[ -z $COMPLETION_INSTALLED_GLAB ]]; then
146146
source <(glab completion -s bash)
147147
export COMPLETION_INSTALLED_GLAB=1
148148
fi
149-
fi
149+
fi
150+
151+
function glab_repo_open() {
152+
glab repo view --output json \
153+
| jq '.web_url' \
154+
| xargs open
155+
}

0 commit comments

Comments
 (0)