Yet Another Terminal Emulator thread

zsh-syntax-highlighting says otherwise. :grin:

image

3 Likes

That makes me 2 for 2 in the red faced posting category.

I never knew that package existed for zsh. As the saying goes, you learn something new every day.

I will have to give that a try. I can see where that would be very useful for trouble shooting shell scripts.

Pudge

3 Likes

ST from suckless. Add a couple of patches and its very good.

4 Likes

:confused:

I’ve got alacritty set up the way I like it now. I’ll stick with it for a few weeks at least.
Btw I can really recommend a new (for me) font I found: Jetbrains mono.

2 Likes

yea zsh makes every terminal your home :houses:

5 Likes

Funny way of spelling Fish.

:stuck_out_tongue:

2 Likes

:fishing_pole_and_fish: --> Fish-like

community/zsh-autosuggestions 0.6.4-1
    Fish-like autosuggestions for zsh
community/zsh-completions 0.32.0-1
    Additional completion definitions for Zsh

two helpfull additions for zsh

3 Likes

I have the other half I guess - trying to use zsh in Garuda I though I saw aspects of syntax-highlighting… :grin: Not sure what use it is most of time - I suspect someone will enlighten us :slightly_smiling_face:

2 Likes

Probably of minor benefit generally, but it can help spot issues before you hit ENTER:

image

2 Likes

At my age I’m no longer fast at most anything I do. But I’m not exactly slow either.
I guess I am half fast.

Pudge

5 Likes

OK :rofl: (you win)

4 Likes

This is almost enough to get me to try zsh after all these years… :thinking:

1 Like

Hmmm… Maybe its time i try a WM like openbox or i3 lol. :grinning:

1 Like

If that is not enough to make you switch here’s a few more tricks:

  1. You know how you can press :arrow_up: to view last entered commands in your terminal?

Zsh lets you type in the first letters and only cycles through the entries matching those first letters.

  1. Zsh offers suggestions based on your latest commands (they appear as grayed text, and is not really typed into the terminal until you press :arrow_right:). Really useful when you want to remember how you last used that command you are just trying to use

  2. You can repeatedly press tab to cycle through the list of matches when using autocomplete, instead of having a list presented to you (as it happens in bash).

Here is all this in action

zsh

4 Likes

zsh is awesome, it is the best shell ever. You can’t learn in a single lifetime everything you can do with it and to what extreme you can customise it. A small example:

1 Like

Don’t bother with i3. If you want a real man’s WM, use DWM, Dmenu and ST!!!

1 Like

And don’t forget alacritty + tmux is unbeatable:

Just compiled alacritty with ligatures support.

Also I have two scripts to control the opacity on demand:

#!/bin/bash
Str=`grep -i background_opacity ~/.config/alacritty/alacritty.yml`
Str=${Str:20:5}

num=$(awk "BEGIN {print $Str+0.05; exit}")

echo $num #debug

if (( $(echo "$num > 1" |bc -l) )); then
        num=1.0
fi

sed -i "/background_opacity:.*/c\background_opacity: $num" ~/.config/alacritty/alacritty.yml
touch ~/.config/alacritty/alacritty.yml
#!/bin/bash
Str=`grep -i background_opacity ~/.config/alacritty/alacritty.yml`
Str=${Str:20:5}

num=$(awk "BEGIN {print $Str-0.1; exit}")

echo $num #debug

if (( $(echo "$num < 0" |bc -l) )); then
        num=0.0
fi

sed -i "/background_opacity:.*/c\background_opacity: $num" ~/.config/alacritty/alacritty.yml
touch ~/.config/alacritty/alacritty.yml

Assign as shortcuts in your DE, in plasma I use super+KP_ADD/MINUS.

If I am gonna be in terminal with pretty colors for a while, I pull out Terminology. Is it heavy? Well I booted into Enlightenment a few times (because compared XFCE, it was like the shrooms kicking in) and it shocked the hell outta me that it was running at 300 mbs of RAM at boot, with full compositing, and I guess their terminal would eat all the rest. Compiling on Terminology, well those can go on for a while, so I use something lighter, but Terminology goes a long way towards my eyesight. But it’s XFCE or Termite mostly.

Right now I am on Gnome Terminal, since I well… did a thing. I do really like alacritty tho and have saved my dotfile for later.