completion(1)
β¨ 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:
bashelvishfishpowershellzsh
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
- arch rolling: himalaya 2.2.1-2 Β· MIT AND Apache-2.0
- nixpkgs unstable: himalaya 2.2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms