Browser & automation
glab-completion
Generate shell completion scripts for bash, zsh, fish, or PowerShell. Use when setting up glab autocompletion for your shell. Triggers on completion, autocomplete, shell completion, tab completion.
vince-winkintel · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-completionAbout this skill
name: glab-completion description: Generate shell completion scripts for bash, zsh, fish, or PowerShell. Use when setting up glab autocompletion for your shell. Triggers on completion, autocomplete, shell completion, tab completion.
glab completion
Overview
This command outputs code meant to be saved to a file, or immediately
evaluated by an interactive shell. To load completions:
### Bash
To load completions in your current shell session:
```shell
source <(glab completion -s bash)
To load completions for every new session, run this command one time:
Linux
glab completion -s bash > /etc/bash_completion.d/glab
macOS
glab completion -s bash > /usr/local/etc/bash_completion.d/glab
Zsh
If shell completion is not already enabled in your environment you must
enable it. Run this command one time:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
source <(glab completion -s zsh); compdef _glab glab
To load completions for every new session, run this command one time:
Linux
glab completion -s zsh > "${fpath[1]}/_glab"
Read the complete source ↗