feat(github): gho opens github.com repo page

This commit is contained in:
JonasG 2025-07-23 11:10:18 +02:00
commit 5429336731
No known key found for this signature in database
GPG key ID: 4EDF6AE5A0EEB696
2 changed files with 9 additions and 0 deletions

View file

@ -6,6 +6,12 @@ This plugin supports working with GitHub from the command line. It provides a fe
* Completion for the [`github` Ruby gem](https://github.com/defunkt/github-gem).
* Convenience functions for working with repos and URLs.
### Aliases
| Alias | Command |
| :--------------------- | :----------------------------------------------------------------------------------------------------------------------------- |
| `gho` | `open_command "$(git config --get remote.origin.url | sed -e "s#git@.*\.*github\.com:#https://github.com/#" -e "s/\.git$//")"` |
### Functions
* `empty_gh` - Creates a new empty repo (with a `README.md`) and pushes it to GitHub

View file

@ -3,6 +3,9 @@ if (( $+commands[hub] )); then
alias git=hub
fi
# Aliases
alias gho='open_command "$(git config --get remote.origin.url | sed -e "s#git@.*\.*github\.com:#https://github.com/#" -e "s/\.git$//")"'
# Functions #################################################################
# Based on https://github.com/dbb/githome/blob/master/.config/zsh/functions