this post was submitted on 03 Jan 2024
34 points (97.2% liked)

Linux

48310 readers
645 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
 

So, I just found out about a programme called SynthShell which kind of does the work for you and gives you a nice looking shell, the thing is that this also creates some config files and other stuff in my system, instead of just one .bashrc file to edit. What would be the best way to learn to have a nice looking bash where I can just have a backup of it that I can use throughout systems?

you are viewing a single comment's thread
view the rest of the comments
[–] gary_host_laptop@lemmy.ml 2 points 10 months ago (2 children)

I think I maybe phrased it horribly, my question was more like, what do I need to learn in order to modify myself the .bashrc by myself instead of using a programme. Does it make sense?

[–] OpenStars@discuss.online 9 points 10 months ago

Bash syntax - I recommend Unix Power Tools by O'Reilly, but it is more advanced so maybe start with a basic version. People look at me funny whenever I say this, but I started myself with something like Unix for Dummies. Why not!?

Keep in mind that this is no trivial task: bash is basically a programming language unto itself - it even has conditionals, loops, variables, etc. Yet SO worth it if you use Unix and want to know more what it is doing.

You also should have a basic familiarity with Unix foundationals as well, to know why something such as this is very dangerous:

export PATH="~/bin/:$PATH"

So, the easy way would be to just take the nice file, copy it wherever you want, and leave it at that. The hard way of actually understanding it may require a deeper dive into Unix. Unix Power Tools, with the picture of a drill on the cover, or maybe someone will recommend a better option but that's what comes to my mind.

Have fun!:-)

[–] dream_weasel@sh.itjust.works 3 points 10 months ago (1 children)

So you can do what you like, but if you are going down the road of shell customization, I recommend you first consider if bash is the shell you want to keep by googling around and reading some articles.

I personally use ZSH (and I cannibalized ohmyzsh for the few configs I wanted instead of taking the whole giant bastard of a thing) but fsh is a fine choice if you don't care about posix (a different discussion). There are some other options to consider as well, but if you're gonna configure, don't do it then do it again in a month with different syntax lol.

[–] gary_host_laptop@lemmy.ml 1 points 10 months ago (1 children)

Yeah, recently after posting this I went down a rabbit hole and found out about zsh and fish and I kind of like fish so I'm thinking about going straight to that, what a hard choice.

[–] dream_weasel@sh.itjust.works 2 points 10 months ago

It's a deep rabbit hole lol.