mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
feat(github): gho opens github.com repo page
This commit is contained in:
parent
13d4176a68
commit
5429336731
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue