Files
dotfiles/home/dot_config/fish/functions/gh.fish
Xevion 942e814f1a config: add JetBrains Toolbox and GitHub CLI completions
- Add JetBrains Toolbox scripts directory to PATH across shells
- Initialize GitHub CLI completions in bash, fish, and PowerShell
- Lazy-load gh completions in Fish to improve startup time
2026-01-03 18:37:37 -06:00

19 lines
452 B
Fish

# Lazy-load gh completions on first use
function gh --wraps gh
# Initialize gh completions only once
if not set -q __gh_initialized
set -g __gh_initialized 1
# Generate and source completions
if command -q gh
command gh completion -s fish | source
else
echo "gh is not installed" >&2
return 1
end
end
# Execute the actual gh command
command gh $argv
end