removed unnecessary helper function

This commit is contained in:
yuval.d 2025-06-30 11:41:46 +03:00
commit 0b657cd76d

View file

@ -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)