CDIST-TYPE__LOCALE_SYSTEM(7)

πŸ’– CDIST-TYPE__LOCALE_SYSTEM πŸ’–

okay bestie, welcome to cdist-type__locale_system, part of the cdist manual, section 7. yes this is the one that handles your system-wide locale. let's get into it πŸ¦‹


✨ NAME ✨

cdist-type__locale_system β€” sets the system-wide locale πŸ‘‘


🌸 DESCRIPTION 🌸

so this cdist type lets you mess with the system-wide locale. the name of the locale category is literally the object id β€” so like, whatever you name the object is the category. and yeah, usually you're probably gonna want LANG, that's the vibe. πŸ’…


πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

  • state β€” either present or absent, and it defaults to present. if it's present, it sets the locale category to the value you gave it. if it's absent, it removes the locale category from the system file. gone. bye. 🫢
  • value β€” the value for the locale category. defaults to en_US.UTF-8. slay. ✨

🌈 EXAMPLES 🌈

lowkey these are the moments:

# Set LANG to en_US.UTF-8
__locale_system LANG

# Same as above, but more explicit
__locale_system LANG --value en_US.UTF-8

# Set category LC_MESSAGES to de_CH.UTF-8
__locale_system LC_MESSAGES --value de_CH.UTF-8

# Remove setting for LC_ALL
__locale_system LC_ALL --state absent

no cap, the first one and the second one do the exact same thing. the second one is just doing main character energy with extra words. 😭


πŸ¦‹ SEE ALSO πŸ¦‹

iykyk πŸ‘€


πŸ’œ AUTHORS πŸ’œ

  • Steven Armstrong <steven-cdist--@--armstrong.cc>
  • Carlos Ortigoza <carlos.ortigoza--@--ungleich.ch>
  • Nico Schottelius <nico.schottelius--@--ungleich.ch>

absolute icons, all three of them πŸ‘‘


πŸ’… COPYING πŸ’…

Copyright (C) 2016 Nico Schottelius. Free use of this software is granted under the terms of the GNU General Public License version 3 or later (GPLv3+).

fr fr, that's the license. GPLv3 or later. respect it. 🫢

ungleich GmbH 2021


and that's the whole page, bestie πŸ’– this was CDIST-TYPE__LOCALE_SYSTEM(7) from version 7.0.0, dated Jul 31, 2022, brought to you by ungleich GmbH 2021. go set your locale and eat πŸ“βœ¨

πŸ“¦ where this page comes from