this post was submitted on 03 Aug 2023
22 points (89.3% liked)

Linux

48008 readers
921 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
22
Naming Bash scripts (lemmy.dbzer0.com)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

I'm crossposting this here

A) So I can see if I know how to cross post lol

B) To bring attention to the [email protected] community here, as it it woefully small and could use some publicity, especially to those who can help more than the noobs seeking it out

C) Hopefully get the answer I seek.

...did the crosspost work? (Ayy alright!)

you are viewing a single comment's thread
view the rest of the comments
[–] eager_eagle 4 points 1 year ago (1 children)

related practice (and maybe less odd) - I prepend some function names to "group" them.

Before using topgrade I wrote some functions to automatically update package managers e.g. apt, cargo, flatpak. so I created uu_apt, uu_cargo, etc. Prepending plays well with the Tab autocomplete in the shell.

[–] [email protected] 1 points 1 year ago

This is basically what I've done so far, actually. I just want to polish it up just a hair enough that I can send it to friends or transfer it between distros, the name is terrible but descriptive (and long, but tab-complete so I said fuck it for the time being). Just need to rename it and change a few lines to "$USER" to make it a bit more polished.

For instance one I really need to rename is just a batch converter using ffmpeg, atm I just called it batchffmpeg but that is too long, might just call it bffmpeg and keep it rolling, short enough and likely not taken. The others I'm more worried about conflicts but I suppose as someone else pointed out the tried and true "band name" method (think of one and just search "google" to see if taken) should handle it. Never thought about that lol, one of those solutions that's just too simple I missed it while looking higher.