PRWD(1)
π NAME π
prwd β universal shell prompt π
β¨ SYNOPSIS β¨
prwd [-aVh]
π¦ DESCRIPTION π¦
okay bestie, listen. prwd is literally a replacement for your shell's PS1. it hands you a whole simple templating language, with commands, so you can customize your prompt however you want. obsessed. π«Ά
the whole point? your prompt stays consistent between shells, and it gives you fast template commands to show off contextual info β think hostname, path, the current git/hg branch β without an inordinate amount of slow, sluggish shell scripting dragging your whole terminal down. no cap, it's giving efficiency. β¨
The command-line options are as follows:
-Vβ show current version. that's it, that's the tweet. π-hβ show usage. your lil help menu, bestie.-ttemplateβ use the template you hand it instead of the one defined in the configuration file, or the one defined in the environment variablePRWD. this is especially useful for testing out a new template before you commit to it. π
pro tip from me to you: wrap your template in single quotes (') so your shell doesn't go and expand the$variable on you. she will do it. she always does. π
-aβ outputs all the aliases starting with$as shell variable exports. the output from this command is meant to be used withevalin your.profilefile. want the full tea? go read the ALIAS VARIABLES section in theprwdrc(5)manual, it's all laid out there in detail. π₯
πΈ ENVIRONMENT πΈ
prwd can read its template from a configuration file, from command-line parameters, or from this environment variable right here:
PRWDβ the template used to render your prompt. this value will override the default internal template, and can be overridden by the configuration file. so it's like, the middle child of the priority order. π
π FILES π
~/.prwdrcβ defines all the configuration, and overrides bothPRWDand the internal defaults. for the configuration syntax and parameters, go seeprwdrc(5). π
π SETUP π
bestie you're gonna need to place this line in your ~/.profile (your mileage may vary, as always π«Ά):
export PS1='`prwd`'
β SEE ALSO β
prwdrc(5), pwd(1), csh(1), ksh(1), sh(1), getcwd(3)
π AUTHORS π
prwd was written by Bertrand Janin <b@janin.com> and is distributed under an ISC license (BSD compatible, OSI compatible). iconic behavior honestly. π
and that's the whole page, bestie β this Debian build of the manual is dated May 9, 2013, so go forth and make your prompt the main character. slay. π β¨π
π¦ where this page comes from
- epel 10: prwd 1.9.1-13.el10_0 Β· ISC
- epel 9: prwd 1.9.1-6.el9 Β· ISC
- fedora 43: prwd 1.9.1-15.fc43 Β· ISC
- fedora 44: prwd 1.9.1-16.fc44 Β· ISC
- Copyright (c) 2009-2015 Bertrand Janin <b@janin.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms