We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/docdyhr/mcp-wordpress'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setup-github-cli.shโข1.39 KiB
#!/bin/bash
# Enhanced GitHub CLI and bat configuration for MCP WordPress development
# Add this to your ~/.zshrc or ~/.bashrc for optimal experience
echo "๐ง Setting up enhanced GitHub CLI configuration..."
# Enhanced bat function for GitHub CLI and general use
function safe-bat() {
bat --paging=never --plain "$@"
}
# Set PAGER environment variable with enhanced bat options
if command -v bat &> /dev/null; then
export PAGER="bat --plain --paging=never"
echo "โ Enhanced PAGER configured with bat --plain --paging=never"
else
export PAGER=cat
echo "โ ๏ธ bat not found, using fallback PAGER=cat"
echo "๐ก Install bat for enhanced experience: brew install bat (macOS) or apt install bat (Ubuntu)"
fi
# GitHub CLI aliases for common operations
alias ghpr="gh pr view"
alias ghprs="gh pr list"
alias ghprm="gh pr merge"
alias ghprc="gh pr create"
# Test GitHub CLI configuration
echo "๐งช Testing GitHub CLI configuration..."
echo "PAGER is set to: $PAGER"
# Verify bat installation and version
if command -v bat &> /dev/null; then
echo "๐ฆ bat version: $(bat --version)"
echo "๐จ Testing safe-bat function..."
echo "Hello, World!" | safe-bat
else
echo "๐ฆ bat not installed - using cat fallback"
fi
echo ""
echo "๐ Setup complete! You can now use GitHub CLI commands without hanging."
echo "๐ก Try: gh pr list"
echo "๐ For more info, see CLAUDE.md in the project root"