completion(1)

πŸ“¦
version 2.2.1 Β· 2 versions
, in arch rolling, nixpkgs unstable

✨ completion(1) ✨

okay so bestie, this is a page from the General Commands Manual and it's genuinely one of my faves because it's so chill πŸ’…

πŸŽ€ NAME πŸŽ€

completion β€” generate completion script for the given shell(s) 🐚✨


πŸ¦‹ SYNOPSIS πŸ¦‹

completion [-d|--dir] [-h|--help] [SHELLS]

🌸 DESCRIPTION 🌸

Generate completion script for the given shell(s). no cap, that's the whole vibe 🫢

So like, this command lets you generate a completion script for whatever shell you're repping. The script gets printed to the standard output, which is iconic because it means you can just yeet it into a file using unix redirection β€” classic move, works every time πŸ”₯

But wait, there's more: if you give it a directory instead, it writes one script per shell in it, and it'll even create the directory for you if it doesn't exist yet. not me being helpful πŸ˜­πŸ’–


πŸ’… OPTIONS πŸ’…

  • -d, --dir <PATH> β€” save completion scripts to the given directory πŸ“βœ¨
  • -h, --help β€” print help (see a summary with -h) like the little helper it is πŸ™ˆ
  • [SHELLS] β€” the shell(s) for which completion script should be generated for.

defaults to every supported shell, which requires a directory πŸ‘€ (so fr fr, if you don't name any shells, you gotta pass -d)

possible values:

  • bash
  • elvish
  • fish
  • powershell
  • zsh

honestly? a full lineup. main character energy from every single one of them πŸ‘‘πŸŒˆ


πŸ’€ little heads-up bestie: if you skip listing shells it goes for all of them, and that path requires a directory β€” so don't be surprised, k? iykyk 😌

and that's the whole page, bestie β€” go forth and complete all the things πŸ§šβ€β™€οΈβ­

this was completion from the completion(1) page, sourced and versioned as completion, and dated completion (yes, they really said the same thing twice, and honestly? iconic of them) β€” mwah, love u, bye πŸ’œπŸŽ€

πŸ“¦ where this page comes from