POWERLINE(1)
π POWERLINE(1) β the powerline prompt & statusline script, bestie edition π
okay so. you opened the manual for powerline, which lives in section 1 of the Powerline manual, and honestly? iconic of you. this is the script that makes your prompt and your statusline look like a whole vibe, and I'm gonna walk you through every single flag because you deserve to know all of them. no gatekeeping here. π
β¨ NAME β¨
powerline β the Powerline prompt and statusline script. that's the whole thing. that's the girl. π
πΈ SYNOPSIS πΈ
powerline EXT [SIDE] [-rMODULE] [-wWIDTH] [--last-exit-code=INT]
[--last-pipe-status=LIST] [--jobnum=INT]
[-cKEY.KEY=VALUE]β¦ [-tTHEME.KEY.KEY=VALUE]β¦ [-RKEY=VAL]β¦
[-pPATH]β¦ [--socket=ADDRESS]
π¦ DESCRIPTION π¦
so the way this works is you hand powerline a couple of positional things and then a pile of flags, and it renders your little statusline situation. here's the tea on each piece. β¨
EXTβ the Extension, aka the application you're launching this powerline command for. usually it's yourshellortmux. it also supportswm.extensions, specificallywm.awesome. πSIDEβ the Side, and there are four moods you can pick from:leftandrightβ left side and right side respectively, obviously. πaboveβ emits lines that are supposed to be printed just above the prompt.aboveleftβ it's like concatenatingabovewithleft, except the glow-up is that only one Python instance gets used in this case. efficiency queen.- also, this whole argument may be omitted for
wm.*extensions. no biggie.
π OPTIONS π
-r,--renderer-moduleMODULE β the renderer module, bestie. usually it's something like.bashor.zsh(note the leading dot) which maps topowerline.renderers.{ext}{MODULE}. it can also be a full module name (which must contain at least one dot, or end with a dot if it's a top-level module), or apowerline.rendererssubmodule (in case there are no dots at all). so many options and all of them valid. we love range.-w,--widthWIDTH β the maximum prompt width. heads up: this triggers truncation of some segments. yes, it will cut your segments off. that's the whole point. π--last-exit-codeINT β the last exit code. that's it, that's the flag. if your last command flopped, this is where it gets recorded. π--last-pipe-statusLIST β like--last-exit-code, but this one is supposed to contain a space-separated array of statuses, representing the exit statuses of commands in one pipe. so if you piped a whole chain of stuff, this holds all of their little verdicts.--jobnumINT β number of jobs. your background job count, right there.-c,--config-overrideKEY.KEY=VALUE β configuration overrides forconfig.json. here's how it works: it gets translated to a dictionary and merged with the dictionary obtained from the actual JSON configuration. specifically,KEY.KEY=VALUEbecomes{"KEY": {"KEY": VALUE}}and then that gets merged recursively.VALUEmay be any JSON value β anything that isn'tnull,true,false, or doesn't start with a digit,{, or[is treated like a string. and ifVALUEis omitted entirely? then the corresponding key is removed. bye girl. π-t,--theme-overrideTHEME.KEY.KEY=VALUE β like the above, but theme-specific. quick note:THEMEshould point to an existing and used theme for this to have any effect β but honestly, it's fine to use any theme here. do what you want. π«Ά-R,--renderer-argKEY=VAL β like the above, but it provides an argument for the renderer. it's supposed to be used only by shell bindings, to provide various data likelast-exit-codeorlast-pipe-status. and iykyk, those bindings aren't using--renderer-argfor historical reasons:--renderer-argwas added later. lore. π-p,--config-pathPATH β path to the configuration directory. if this is present, then configuration files will only be sought in the provided path. may be provided multiple times to search in a list of directories. stack them up. π--socketADDRESS β socket address to use in daemon clients. it's always a UNIX domain socket on linux and a file socket on Mac OS X. not used here tho β it's present only for compatibility with other powerline clients. β οΈ and listen closely: this argument must always be the first one, and it must be in the form--socket ADDRESSβ no=and no short form allowed (that's in other powerline clients, not here). so don't get cute with it. π-h,--helpβ display help and exit. the classic. the icon. π
π AUTHOR π
Written by Kim SilkebΓ¦kken, Nikolay Pavlov, Kovid Goyal and contributors. The glyphs in the font patcher are created by Fabrizio Schiavi. literal legends, all of them. π
π¨ REPORTING BUGS π¨
Report powerline bugs to https://github.com/powerline/powerline/issues. go tell them what's wrong, they wanna know, fr fr. π
π SEE ALSO π
okay that's the whole page bestie, you made it to the end, I'm so proud of you. π₯Ή this was the beta version of the page, dated January 22, 2025, so if you're reading it way later, hi from the past, hope your statusline is slaying. periodt. π β¨
π¦ where this page comes from
- debian trixie: powerline 2.8.4-1 Β· MIT
- ubuntu resolute: powerline 2.8.4-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms