LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gcrane-completion

generates shell autocompletion scripts

TLDR

Print the completion script for a shell
$ gcrane completion [bash]
copy
Print it without the descriptive comments
$ gcrane completion [bash] --no-descriptions
copy
Enable it in the running Bash shell
$ source <(gcrane completion bash)
copy
Enable it in the running Zsh shell
$ source <(gcrane completion zsh)
copy
Enable it in the running fish shell
$ gcrane completion fish | source
copy
Install it for every Bash session
$ gcrane completion bash | sudo tee /etc/bash_completion.d/gcrane
copy
Install it for every Zsh session
$ gcrane completion zsh > "${fpath[1]}/_gcrane"
copy
Install it for every fish session
$ gcrane completion fish > ~/.config/fish/completions/gcrane.fish
copy
Load it in PowerShell
$ gcrane completion powershell | Out-String | Invoke-Expression
copy

SYNOPSIS

gcrane completion shell [options]

DESCRIPTION

gcrane completion generates shell autocompletion scripts for the gcrane command-line tool. gcrane is a tool for working with container registries, part of Google's go-containerregistry project.Completions provide tab-completion for gcrane commands, flags, and arguments, improving command-line efficiency. The generated scripts must be sourced or installed according to your shell's completion system.For persistent completions, install the output to the appropriate location for your shell (bash_completion.d for Bash, fpath for Zsh, or ~/.config/fish/completions for fish).

PARAMETERS

bash

Generate Bash completion script
zsh
Generate Zsh completion script
fish
Generate fish completion script
powershell
Generate PowerShell completion script
--no-descriptions
Disable completion descriptions
-h, --help
Display help for completion command

INSTALL

sudo zypper install gcrane
copy
nix profile install nixpkgs#gcrane
copy

CAVEATS

Installation paths vary by system configuration. Zsh requires the completion directory to be in fpath before compinit is called. Some systems may require logging out and back in for changes to take effect.

SEE ALSO

gcrane(1), gcrane-gc(1), gcrane-ls(1), crane(1), docker(1), podman(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid