SURFRAW...ATE-PATH(1)
π SURFRAW-...-ATE-PATH π (okay it's literally surfraw-update-path)
bestie this is a section 1 manual page from the User Contributed Perl Documentation, and it's all about the lil script that goes surfraw-update-path. say it with me now: surfraw-update-path β¨
π NAME π
surfraw-update-path</ppurple> β no cap, all it does is update PATH in your shell config files π¦
β¨ SYNOPSIS β¨
surfraw-update-path [-add] [-remove] [-check] [-sys] [-all] [-help]
[-shell=SHELL]
that's it, that's the whole vibe π
πΈ DESCRIPTION πΈ
okay so here's the tea π: surfraw-update-path takes the surfraw elvi directory β which is /usr/lib/surfraw β and adds it to your PATH inside your shell's config file. iconic behaviour honestly.
as of right now it supports bash, sh, csh, tcsh, ash, dash, ksh, pdksh, zsh, rc, and es π
π¨ do NOT forget to log in again or source your login files, because otherwise it literally will not take effect. not me being dramatic, that's just the facts π
π OPTIONS π
-checkβ peeks to see if the surfraw config code is even there. this is the default, so if you don't say anything, this is what you get π«Ά-addβ adds the surfraw config code. slay β¨-removeβ removes the surfraw config code. we love a clean exit π-sysβ updates the system-wide shell config instead of the user one. you MUST do this as root, no exceptions, that's not a suggestion bestie π¨-shell=SHELLβ picks which shell to configure. defaults to whatever's chillin' in the$SHELLenvironment variable π
currently supported shells are:
sh,ash,bash,dash,csh,tcsh,ksh,pdksh,zsh,rc, andesπ
-allβ tries to configure the startup files for all known shells. go big or go home, main character energy fr fr π-helpβ gives you a usage message π
β RETURN VALUE β
-checkreturns0if the surfraw code is present in the file,1if it is not found, or2on error π- all the other options return
0on success, or2on error π
π¦ ENVIRONMENT π¦
SHELLβ used to figure out which shell to configure, but only if-shellisn't given πΈHOMEβ used to find the user's config files πENVβ used by posix-compliant shells to specify a startup rc file β¨ZDOTDIRβ used to find user config files forzsh. if it's not set, it defaults toHOMEπ
π SEE ALSO π
surfraw(1), sh(1), ash(1), bash(1), dash(1), csh(1), tcsh(1), ksh(1), pdksh(1), zsh(1), rc(1), es(1) β go read the girlies too, they're all connected π«Ά
π AUTHOR π
Ian Beckwith <ianb@erislabs.net> β thank u king ππ
and that's the whole page, bestie! this one was written by perl v5.36.0 and dated 2022-12-29, and it's the SURFRAW...ATE-PATH(1) page (yes the header really does truncate the name like that, iconic honestly π
). now go source your login files, i'm not asking twice πβ¨π¦π
π¦ where this page comes from
- debian bookworm: surfraw 2.3.0-2 Β· LicenseRef-public-domain
- debian trixie: surfraw 2.3.0-2 Β· LicenseRef-public-domain
- ubuntu noble: surfraw 2.3.0-2 Β· LicenseRef-public-domain
- ubuntu questing: surfraw 2.3.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms