this post was submitted on 01 Oct 2024
27 points (96.6% liked)

Linux Questions

1156 readers
5 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
 

Good day all!

First I'd like to thank all the people who replied to my first post and provided so much valuable information! Since then I've been trying to force myself to get comfortable with using the terminal! To this end I've been running Sway as my Desktop Environment and printed out a cheat sheet to place next to my screen.

Now, a paragraph deep, for the question(s):

How do y'all customize your terminals? I'm not looking for tutorials, just your preferences. How long did it take for you to settle on your favourite? What did you prioritize when customizing? What customization are you fondest of?

Thanks in advance to any and all replies, hope to hear from you all soon!

top 21 comments
sorted by: hot top controversial new old
[–] clay_pidgin 7 points 2 months ago (1 children)

I put a dozen aliases in bash_aliases and call it a day. If I find myself in the terminal I don't want to be hamstrung with some unique configs that nobody can help me with and I can't remember making.

[–] [email protected] 3 points 2 months ago (1 children)

This feels TOO reasonable, I love it.

What's the most common aliases you use?

[–] clay_pidgin 2 points 2 months ago

Just standard little shortcuts like cd. , cd.. , and ls for ls -lah. Nothing special.

[–] [email protected] 4 points 2 months ago (1 children)

I use Fish as my shell. It's got some really nice convenience features, without needing customization, which I find useful. If I'm working in a VM or some server for a bit longer, I'll often just install the fish package and have my normal level of (good) usability.
Downside is that Fish uses somewhat different syntax than Bash, so I can't just copy-paste more complex commands into there. But yeah, then you'll see me run bash, then the complex command in there, and then I'll exit back out of there.

For the shell prompt, I'm using Starship with a bit of a custom theme, based on their Gruvbox Rainbow preset:

So, what it shows there is:

  • the exit-code, if it's non-zero
  • the duration how the long the command took, if it's longer than a few seconds
  • the timestamp when that command finished
  • the path where I'm in
  • the Git branch and whether I've got changes that are uncommitted, stashed etc., if I'm in a directory with Git repo
  • the toolchain in the repo that I'm in

I also use light theme in the terminal. Sue me. 🙃

[–] [email protected] 1 points 2 months ago

Thanks for the post! Never would've known about Starship. Your setup seems a bit feature-rich for me at the moment but it's nice knowing its an option.

I tried light theme for 0.000000128 seconds, and in that time my eyeballs melted out of my head and onto my keyboard.

[–] [email protected] 4 points 2 months ago (1 children)

I mostly learned from some of the terminal customization which came stock with Manjaro when I was first learning Linux. So when I made the jump to Arch, I customized my terminal with fsh with the powerlevel10k theme and text highlighting. I also modified some of the default text colors to a green color to evoke green phosphor CRT terminals.

[–] [email protected] 2 points 2 months ago

I honestly overlooked that when i was trying out Manjaro.

My grandpa had a green CRT. I'm unsure of the make and model, but it's long since gone.

[–] [email protected] 4 points 2 months ago

I set up a couple profiles with different colored backgrounds so that I can easily visually distinguish terminal windows when I have several open at once. For example, I usually switch the profile to one with a red background when I ssh into a server to help avoid confusion about which system I'm running commands on. I also cranked up the font size a bit in all profiles to make it easier for me to read.

[–] [email protected] 3 points 2 months ago* (last edited 2 months ago) (1 children)

I don’t have a lot of customization, just a few tweaks to make things a little more pleasing to me.

I’m a bash guy, and I like the Dracula theme, I currently use gnome and gnome terminal with Dracula, but soon plan to try out Hyprland and Sway.

My command prompt customization is also minimal,

Outside of those visuals, the biggest customization is that I use zoxide for directory navigation instead of cd (I have the command aliased to zd).

edit: spelling

[–] [email protected] 2 points 2 months ago (1 children)

Thanks for the reply!

Zoxide seems cool, typing long paths has been an annoyance of mine so far but I think I'll keep writing them out for the "experience".

[–] [email protected] 2 points 2 months ago

It’s super nice. I still often type out the full path, but it sure is nice when I’m going levels deep to just type the destination directory and be there.

[–] [email protected] 3 points 2 months ago

How do y’all customize your terminals?

I only use one terminal (Alacritty). I do nothing more than just setting size, font, and colors. I basically took the config with me when I migrated from kittie to Alacritty. My kittie config mainly came from when I initially setting up xterm and later urxvt.

I love consistency and minimalism when it comes to setting up any kind of software. So my terminal configuration is basically the same since ca. 2007.

[window]
dimensions = { columns = 120, lines = 32 }
resize_increments = true # gets ignored, though

[font]
size = 14
normal = { family = 'DejaVu Sans Mono', style = 'Regular' }

[colors.primary]
foreground = '#d3d7cf'
background = '#2e3436'

[colors.normal]
black   = '#2e2e34'
red     = '#cc0000'
green   = '#4e9a06'
yellow  = '#c4a000'
blue    = '#3465a4'
magenta = '#75507b'
cyan    = '#06989a'
white   = '#d3d7cf'

[colors.bright]
black    = '#555753'
red      = '#ef2929'
green    = '#8ae234'
yellow   = '#fce94f'
blue     = '#729fcf'
magenta  = '#ad7fa8'
cyan     = '#34e2e2'
white    = '#eeeeec'

[–] jws_shadotak 2 points 2 months ago (1 children)

Just defaults. Mostly cus I have no idea what I'm doing still

[–] [email protected] 2 points 2 months ago

hey its me ur bruther...

[–] [email protected] 2 points 2 months ago* (last edited 2 months ago) (1 children)

I try to keep everything minimalistic, so I don't have to customize it too much. For example, this is my terminal:

The most important thing for me is the font, since I also use a terminal-based editor for programming. The color palette is also minimal (I made it), I don't like things that are too colorful. I use bash as my shell, and st as my terminal.

[–] [email protected] 1 points 2 months ago (1 children)

I respect the minimalism. I'm more of an accent color guy myself. Which editor do you use if you don't mine me asking?

[–] [email protected] 2 points 2 months ago (1 children)

I use micro. Customizable and lightweight.

[–] [email protected] 1 points 2 months ago (1 children)

Why micro over nano or vim?

[–] [email protected] 3 points 2 months ago

nano is very simple, so it wasn't efficient for projects with lots of files. I used vim for a short time, but then I gave micro a try and I was faster at it, so I stuck with it.

[–] Mandy 2 points 2 months ago

I dont, I keep it in the black void it deserves to be in

I want it gone as fast as I had to open it

[–] lurch 1 points 2 months ago

customizing is a never ending ongoing process for me. next i'm planning to fix shift+insert in cool-retro-term . i have already cloned the source repo and located possible way to fix it, but didn't have time to actually try it yet. if it works, maybe i can submit the patch, but i deleted my github account long ago, so maybe i can't.