this post was submitted on 31 Mar 2024
39 points (100.0% liked)

Linux

49476 readers
986 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
39
submitted 10 months ago* (last edited 10 months ago) by christos to c/[email protected]
 

https://gitlab.com/christosangel/mneme

mneme is a version of the classical memory game, that the user can play in a terminal window. It is a script written in Bash.

main menu

The user by editing a configuration file, can select a wide range of character themes and levels of difficulty(matrix size).

main menu

main menu

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 7 points 10 months ago (2 children)

It is a script written in Bash.

Why would you do this to yourself?

Very nice, though.

nitpick: At least on the distros I've tried .local/bin doesn't exist by default, so the install script can't copy it in there. You could mkdir it first. It's also not in the $PATH, so the user won't be able to run it anyway, but I don't know of a simple, clean way to get around that.

[–] christos 5 points 10 months ago

De gustibus et coloribus... I like bash.

It works for me.

About .local/bin/ not existing, or not being in the $PATH, that is why I also propose running the script locally, from the same directory with ./mneme.sh

Thanks, I am glad you like it.

[–] christos 2 points 10 months ago

I went on and added an if statement and a message to install.sh, just for the issue you mentioned...