CDIST-TYPE__UPDATE_ALTERNATIVES(7)

✨ NAME ✨

cdist-type__update_alternatives β€” bestie, this is the one that configures alternatives for you πŸ’… (it lives in section 7 of the cdist manual, iykyk)


🌸 DESCRIPTION 🌸

okay so picture this: you're on Debian or a Debian-adjacent system, and you've got like five different programs all fighting over the same command name. The way you sort that out is with update-alternatives(1) β€” it sets up alternatives for alllll kinds of programs πŸ¦‹

And the target literally everyone and their mom reaches for? The "editor". iconic. classic. no notes. ✨


πŸŽ€ REQUIRED PARAMETERS πŸŽ€

like, you genuinely cannot skip this one, it's giving mandatory fr fr

  • path β€” use this path for the given alternative πŸ‘‘

πŸ’– BOOLEAN PARAMETERS πŸ’–

these ones are just vibes β€” on or off, yes or no, slay or nay 🌈

  • install β€” adds a missing path to the alternatives by running update-alternatives --install 🫢

πŸ’… EXAMPLES πŸ’…

setting up vim as your default editor, the moment of main character energy:

# Setup vim as the default editor
__update_alternatives editor --path /usr/bin/vim.basic

πŸ‘€ SEE ALSO πŸ‘€

go read these next, they're part of the lore:


πŸ’œ AUTHORS πŸ’œ

shoutout to the devs who built this, absolute legends:

  • Nico Schottelius <nico-cdist--@--schottelius.org>
  • Ander Punnar <ander@kvlt.ee>

πŸ“œ COPYING πŸ“œ

Copyright (C) 2013 Nico Schottelius and 2020 Ander Punnar. 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. so yes bestie, share it, remix it, just keep the license 🫢


ungleich GmbH 2021


and that's the whole page, babe πŸ’– this was 7.0.0, dated Jul 31, 2021, and it came straight from the cdist fam. go forth and configure your alternatives βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from