mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
removed unnecessary helper function
This commit is contained in:
parent
9086de2380
commit
0b657cd76d
1 changed files with 0 additions and 73 deletions
|
|
@ -309,76 +309,3 @@ function ghpc-current() {
|
||||||
gh pr create
|
gh pr create
|
||||||
}
|
}
|
||||||
|
|
||||||
# ============================================
|
|
||||||
# Plugin Info Functions
|
|
||||||
# ============================================
|
|
||||||
|
|
||||||
# Function to list all gh aliases
|
|
||||||
function gh-aliases() {
|
|
||||||
alias | grep '^gh' | sed 's/=/ = /' | sort
|
|
||||||
}
|
|
||||||
|
|
||||||
# Function to search gh aliases
|
|
||||||
function gh-alias-search() {
|
|
||||||
if [[ -z "$1" ]]; then
|
|
||||||
echo "Usage: gh-alias-search <search-term>"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
alias | grep '^gh' | grep -i "$1" | sed 's/=/ = /'
|
|
||||||
}
|
|
||||||
|
|
||||||
# Function to show gh cheatsheet
|
|
||||||
function gh-cheat() {
|
|
||||||
cat <<'EOF'
|
|
||||||
GitHub CLI (gh) Aliases Cheatsheet
|
|
||||||
==================================
|
|
||||||
|
|
||||||
Authentication:
|
|
||||||
ghal = gh auth login ghas = gh auth status
|
|
||||||
ghaw = gh auth switch ghao = gh auth logout
|
|
||||||
|
|
||||||
Repository:
|
|
||||||
ghrc = gh repo clone ghrv = gh repo view
|
|
||||||
ghrl = gh repo list ghrf = gh repo fork
|
|
||||||
ghrn = gh repo create ghrs = gh repo sync
|
|
||||||
|
|
||||||
Issues:
|
|
||||||
ghic = gh issue create ghiv = gh issue view
|
|
||||||
ghil = gh issue list ghie = gh issue edit
|
|
||||||
ghix = gh issue close ghir = gh issue reopen
|
|
||||||
|
|
||||||
Pull Requests:
|
|
||||||
ghpc = gh pr create ghpv = gh pr view
|
|
||||||
ghpl = gh pr list ghpm = gh pr merge
|
|
||||||
ghpo = gh pr checkout ghpd = gh pr diff
|
|
||||||
|
|
||||||
Workflows:
|
|
||||||
ghwl = gh workflow list ghwr = gh workflow run
|
|
||||||
ghrnl = gh run list ghrnv = gh run view
|
|
||||||
|
|
||||||
Other:
|
|
||||||
ghs = gh status ghb = gh browse
|
|
||||||
gha = gh api ghh = gh help
|
|
||||||
|
|
||||||
Helper Functions:
|
|
||||||
ghrc-cd <repo> - Clone and cd into repo
|
|
||||||
gh-status - Show comprehensive status
|
|
||||||
gh-aliases - List all gh aliases
|
|
||||||
gh-cheat - Show this cheatsheet
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
|
|
||||||
# ============================================
|
|
||||||
# README Generation Function
|
|
||||||
# ============================================
|
|
||||||
|
|
||||||
function _gh_plugin_readme() {
|
|
||||||
cat <<'EOF'
|
|
||||||
# gh plugin
|
|
||||||
|
|
||||||
This plugin provides aliases and functions for the [GitHub CLI](https://cli.github.com/).
|
|
||||||
|
|
||||||
To use it, add `gh` to the plugins array in your zshrc file:
|
|
||||||
|
|
||||||
```zsh
|
|
||||||
plugins=(... gh)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue