1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-17 23:57:52 +08:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Jonas Geiregat
dc5d4537cc
Merge 5429336731 into 1b4497fc8f 2025-12-06 23:42:58 -08:00
JonasG
5429336731
feat(github): gho opens github.com repo page 2025-07-23 12:01:57 +02:00
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