CDIST-TYPE__SENSIBLE_EDITOR(7)

πŸ’– cdist-type__sensible_editor πŸ’–

ok so bestie, welcome to the cdist-type__sensible_editor page β€” it's a cdist type, manual section 7, and it's literally here to pick your sensible-editor for you. iconic behavior, honestly. πŸŽ€


✨ NAME ✨

cdist-type__sensible_editor β€” bestie's lil helper for selecting the sensible-editor πŸ’…


🌸 DESCRIPTION 🌸

So, like β€” this cdist type lets you select the sensible-editor for a given user. That's it. That's the whole vibe. No cap. ✨


πŸŽ€ REQUIRED PARAMETERS πŸŽ€

  • editor β€” the name or path of the editor you want selected. okay so here's the tea: on systems that are not Debian derivatives, an absolute path is required. no shortcuts, bestie. 🫢 Also, it's totally permissible to omit this parameter if --state is absent. iykyk.

πŸ’… OPTIONAL PARAMETERS πŸ’…

  • state β€” can be 'present', 'absent', or 'exists'. Defaults to 'present'. Here's the breakdown, bestie:

🌈 the state lore

  • present β€” the sensible-editor is exactly what's specified in --editor. like, no notes. periodt.
  • absent β€” no sensible-editor configuration is present at all. it's giving minimalist. πŸ’€
  • exists β€” the sensible-editor will be set to what's specified in --editor, unless there already is a configuration on the target system. so it only steps in if nobody's home yet. πŸ¦‹

⭐ EXAMPLES ⭐

ok look at these, they're so clean:

__sensible_editor root --editor /bin/ed  # ed(1) is the standard
__sensible_editor noob --editor nano
not the ed(1) being the standard 😭 it's giving ancient but valid, bestie. and nano for noob?? the naming, the commitment, we love to see it πŸ’€πŸ’–

🚧 LIMITATIONS 🚧

ngl, this type is dependent on the sensible-editor(1) script, which is part of the sensible-utils package. so if you don't have that, we can't do the thing. πŸ™ˆ

Therefore, the following operating systems are supported:

  • Debian 8 (jessie) or later
  • Devuan
  • Ubuntu 8.10 (intrepid) or later
  • RHEL/CentOS 7 or later (EPEL repo required)
  • Fedora 21 or later
Note: on old versions of Ubuntu the sensible-* utils are part of the debianutils package. so like, check before you panic. ✨

πŸ‘€ SEE ALSO πŸ‘€

go read those too, bestie, they're the whole supporting cast. 🫢


🧚 AUTHOR 🧚

Dennis Camera <dennis.camera--@--ssrq-sds-fds.ch>

shoutout to Dennis, main character energy fr fr πŸ‘‘


πŸ“œ COPYING πŸ“œ

Copyright (C) 2019 Dennis Camera. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. slay, legally speaking. βš–οΈπŸ’–


ungleich GmbH 2021


and that's the whole page, bestie!! this was cdist manual, version 7.0.0, dated Jul 31, 2022 β€” mwah, go forth and pick your editor πŸ’…βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from