mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-12 15:34:50 +08:00
Merge 5429336731 into 72acd2ca90
This commit is contained in:
commit
05d1a3c10c
@ -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…
Reference in New Issue
Block a user