TKN-COMPLETION(1)

πŸ“¦ version 0.46.2, in nixos 26.05, nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to the TKN-COMPLETION(1) manual page β€” this is all about tkn-completion, the command that prints shell completion scripts. it prints the code, it does not magically install the vibe for you, iykyk πŸ’…

🌸 SYNOPSIS 🌸

tkn completion [SHELL]

πŸ¦‹ DESCRIPTION πŸ¦‹

so this command prints shell completion code, and that code must be evaluated to actually provide interactive completion. no evaluation, no completion, periodt ✨

Supported Shells:

  • bash
  • zsh
  • fish
  • powershell

πŸ’– OPTIONS πŸ’–

  • -h, --help[=false] β€” help for completion. yes, [=false] is literally part of the option spelling here, don't @ me 🫢

πŸ“ EXAMPLE πŸ“

here's how to load completions, with the commands copied exactly so you can just vibe:

To load completions:

Bash:

$ source <(tkn completion bash)

To load completions for each session, execute once:

Linux:

$ tkn completion bash > /etc/bash_completion.d/tkn

MacOS:

$ tkn completion bash > /usr/local/etc/bash_completion.d/tkn

Zsh:

$ source <(tkn completion zsh)

To load completions for every sessions, you can execute the following once:

$ echo "autoload -U compinit; compinit" >>  /.zshrc

and add the completion to your fpath (may differ from the first one in the fpath array):

$ tkn completion zsh > "${fpath[1]}/_tkn"

You will need to start a new shell for this setup to take effect.

Fish:

$ tkn completion fish | source

To load completions for each session, execute once:

$ tkn completion fish >  /.config/fish/completions/tkn.fish

πŸ‘‘ SEE ALSO πŸ‘‘

  • tkn(1) β€” the main character, obviously πŸ’œ

k bye bestie β€” this page is auto generated by spf13/cobra, and the footer just says TKN-COMPLETION(1) with no date listed, so that's the whole sign-off. mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from