r/LinuxCirclejerk • rainbow leggings • May 16 '26

Lunx

Post image
4.1k Upvotes

114 comments sorted by

260

u/Paper_OCD Krch ADE May 16 '26

Control + R

119

u/csabinho May 16 '26 • Heartwarming

or/and history | grep "whatever you need"

That's quite great, if you want a list.

39

u/Alpha-Craft May 16 '26 edited May 17 '26 • Heartwarming

You can even fuzzy find!

EDIT: The command would be history | fzf

Make sure to have fzf installed.

EDIT 2: Had to edit fun to fzf because autocorrect sucks

8

u/[deleted] May 17 '26

[removed] — view removed comment

2

u/Alpha-Craft May 17 '26

Oh? Interesting. I need to try that!

1

u/[deleted] May 17 '26

[removed] — view removed comment

1

u/Alpha-Craft May 17 '26

There is a config script?

1

u/AccurateRendering May 18 '26

fzf in combination with zoxide is great also.

15

u/EuphoricCatface0795 May 16 '26 • Heartwarming

history | less

5

u/imgly May 16 '26

Or atuin 👌

11

u/VITAFAUTO May 16 '26 • Heartwarming

I came looking for this comment and I would like to add this, which I use a lot :

history | grep -v history | grep find
  1. grep -v history : removing the lines containing 'history' to prevent the search command itself from being displayed.

  2. grep find : you already know.

13

u/csabinho May 16 '26 • Heartwarming

I exclude "history" from the history via HISTIGNORE in .bash_rc.

1

u/crimsonscarf May 16 '26

I’m gonna go ahead and make this an alias. I’m thinking either fuck or idk

2

u/AngriestCrusader Linux Master Race 😎💪 May 16 '26

New to Linux. Thanks, this'll save a lot of time :P

1

u/daddy69ice May 16 '26

Yeah, sure. I'd type that and search what i need to execute 🤣😭

1

u/csabinho May 16 '26

Usually you've got an idea what you need. If you've got no idea at all, you can still just type history and scroll.

12

u/felinefrenking May 16 '26 • Heartwarming

Oh my god thank you

11

u/JotaRata May 16 '26 • Heartwarming

Control + R + fzf

6

u/v_Karas Linux Master Race 😎💪 May 16 '26 • Heartwarming

thx, never knew of that 2.

14

u/sssaturn14 May 16 '26 • Heartwarming

absolute ball knowledge

9

u/1mmortalNPC arch btw May 16 '26 • Heartwarming

wait what does it do? (im not with my pc)

15

u/mkptheghonsla May 16 '26 • Heartwarming

Fuzzy find your previously run commands

4

u/roverfromxp May 16 '26 • Heartwarming

isnt it isearch?

4

u/sssaturn14 May 16 '26 • Heartwarming

as i tested, it's like a search prompt that searches in previous commands

7

u/Lughano May 16 '26 • Heartwarming

u are the man

2

u/a3d00x May 16 '26 • Heartwarming

I came to see or post this answer, I'm not disappointed, have my upvote mate

2

u/_mulcyber May 21 '26

I use zsh/ohmyzsh and it searches autocomplete in history when using ⬆️

It's the thing I miss the most when I'm on another computer.

1

u/timawesomeness May 16 '26

I do wonderfully efficient things like using ctrl+r, typing ls, and hitting ctrl+r repeatedly to find ls with no arguments

1

u/AliOskiTheHoly May 16 '26 • Heartwarming

Does this only work with bash or also with fish? Is it even necessary for fish? Seems to me that fish does this automatically anyway.

2

u/Mars_Bear2552 May 16 '26 • Heartwarming

autocomplete isn't quite the same.

2

u/Careful_Procedure565 May 16 '26

Fish already handles most of that stuff automatically 😭 so in a lot of cases you don’t need the extra setup unless you’re trying to match bash-specific behavior

1

u/AliOskiTheHoly May 16 '26

God bless the fish, so grateful for that shell, for now at least. Very annoying to script with it though, I do my scripts in bash.

2

u/[deleted] May 16 '26

Dont know why people just dont ctrl+r and start typing LOL

1

u/Dread_Wing_9051404 rainbow leggings May 16 '26

High dedicating username, respect

138

u/Fricki97 Hana Montana OS May 16 '26

I need to edit this one file again...but where was it?

⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️wait⬇️⬇️ there it is

11

u/romhacks May 16 '26

"shit I hit pgUp, gotta start over"

4

u/teflonjon321 May 16 '26

I like when I do this, run the command and get a syntax error. Check my history to see I immediately ran the correct version after the wrong one last time too

1

u/Alex4744818w May 16 '26

I'm relatively new to Linux, and thought one day I'll do it better, but looks like these habits are to stay

40

u/PanAnaTheBanana Arch btw May 16 '26

And then it’s an 'ls -al'

4

u/PranshuKhandal May 16 '26

pressing 4 different keys vs pressing 1 key

1

u/jolharg ❄️ nixos transfem 🏳️‍⚧️ May 17 '26

My default muscle memory is "ls -lah"

16

u/laczek_hubert NixOS BTW May 16 '26

I just use fish auto complete for most stuff ngl

10

u/PredictiveFrame May 16 '26

Fish, my beloved.

I'm going to be weird for a moment.

Kitty + Fish is one of the greatest, and most intuitive terminal experiences you are capable of having. The terminal reads your damn mind, and I have been head over heels for YEARS now, for this combo. Ah, joy. With a TWM (I recommend mango), and Vi keybinds, my computer feels like a natural extension of my body, like when riding a motorcycle, rather than an interface to do what I want, and Kitty having most of T-MUX's functionality built in is chefs kiss. fuuuuuuck I love this combo. 

Does anyone have completely different shell/terminal combos they adore to death? Gimme your impassioned rants, and I'll try them out. 

5

u/mister_drgn May 17 '26

Currently happy with Ghostty + nushell

4

u/PredictiveFrame May 17 '26

C'mon, where the impassioned rant about the specific niche features you adore? 

3

u/mister_drgn May 17 '26

Well, I was pretty happy with kitty + nushell on linux, and then I tried using the setup on macos, and I couldn’t get kitty to remember my working directory when opening new tabs. So I tried ghostty, and it worked, plus ghostty is mac-native, so yay? And it’s written in zig, which is fun if I want to pretend I care about that sort of thing. Not as customizable as Kitty, but still quite feature-rich.

2

u/L30N1337 May 18 '26

Not yay, that's for Arch.

1

u/laczek_hubert NixOS BTW May 16 '26

I have setup hyprland kinda but the default HDR settings are ass. What's interesting about mango?

3

u/Extrallian May 18 '26

zsh with auto complete and syntax highlighting is what I use

1

u/laczek_hubert NixOS BTW May 18 '26

Have you tried fish for comparison?

1

u/Extrallian May 20 '26

i’m just far too used to bash to switch to anything that’s too different

1

u/laczek_hubert NixOS BTW May 20 '26

I just use fish for interactive use as it's great and you can still do bash "bash specific stuff"

2

u/mister_drgn May 17 '26

Same for nushell

20

u/the_icon_of_sin_94 gay furry, maybe trans May 16 '26

We all do this

15

u/mokrates82 banned in r/linuxsucks101 May 16 '26

I don't. I use Ctrl-R.

10

u/Walk-the-layout May 16 '26

Quirky.

steals your shortcut

5

u/mokrates82 banned in r/linuxsucks101 May 16 '26

Quirky.

Not really. I use emacs.

1

u/ralsaiwithagun May 16 '26

Imean this is same in fish, seems to be quite a common shortcut

1

u/mokrates82 banned in r/linuxsucks101 May 16 '26

libreadline, a common library for line/shell/repl input replicates emacs shortcuts by default if you don't set it to vi mode.

9

u/Spicycrat May 16 '26

I see your ⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️ and raise you a “k k k k k k k k”

6

u/Anonymous_Lightbulb Gentoo laptop, Arch tablet May 16 '26

Laughs in fish

5

u/carpsagan May 16 '26

History and grep…

1

u/indiharts May 16 '26

with fish i just start typing and it usually auto completes

2

u/Dread_Wing_9051404 rainbow leggings May 16 '26

I always wondered what it would be like to type with a fish

1

u/indiharts May 16 '26

wet, to say the least

1

u/Money_Entertainer113 May 17 '26

atuin

1

u/Dread_Wing_9051404 rainbow leggings May 17 '26

Wot?

2

u/Money_Entertainer113 May 17 '26

https://github.com/atuinsh/atuin

Handy replacement for shell history. Nothing you can't get using fzf, but it is a very tidy utility for me.

1

u/BrilliantEmotion4461 May 18 '26

What?

I have my most used commands aliased to single words.

For instance sudo pacman -Syu on my system is aliased to "updoot"

1

u/Dread_Wing_9051404 rainbow leggings May 18 '26

Secret nixOS spy

1

u/ptlet24 May 18 '26

I developed a cpp terminal agent, anytime you wanna check some details or run some commands, ask it , it will do it for you or check the prerequisites. saves a lot work

1

u/Dread_Wing_9051404 rainbow leggings May 18 '26

Damn, what the repo?

1

u/QuantumQuantonium May 19 '26

Someone should train a machine learning model to predictively determine which command in your history to give. Full assisted learning, it associates the contents of your history with the number of presses and which one you select. Then if youre flipping through thr history and it sees the command run just before was already run, it should select the next command you ran. I see nothing wrong with this.

1

u/Dread_Wing_9051404 rainbow leggings May 19 '26

Ai slop, win12 "ai driven terminal" ahh

3

u/switch161 May 16 '26

Press up 10 times, can't find it, and as you cancel the command you wanted appears.

5

u/Ol1x282 May 16 '26

That is so accurate 😭

9

u/csabinho May 16 '26

For beginners. And every time this gets posted some beginners learn about Ctrl+ R and history | grep "whatever you need".

2

u/dadnothere Certified Ubuntu Satanic Edition User May 16 '26

OMG

Dude, you should have told me that before switching to zsh. 🤣

2

u/deathishere100 May 16 '26

Lunx lmao I like that

2

u/no-sleep-only-code May 16 '26

This is why we use fish and or fzf

2

u/WriedGuy May 16 '26

History left the chat

1

u/block_01 Linux Master Race 😎💪 May 16 '26

I feel a bit called out here 😅

1

u/S3RUXTR0N May 16 '26

Meanwhile: [[A

1

u/PredictiveFrame May 16 '26

"I'm in this picture, and I don't like it." 

1

u/Cosmonaut_K May 16 '26

The Quick Commands plugin for Konsole lets you save commands and categorize them. Truly useful.

1

u/dig_it_all May 16 '26

FZF + Atuin

On ZSH, no less…

Game Over!

1

u/Negative_Gur9667 May 17 '26

history | grep xyz

1

u/TastyActivity5570 May 17 '26

I use fish shell I can get that command without using arrows

1

u/PrinzJuliano May 17 '26

Fzf for history in zsh

1

u/Mohamed_Farouk_Nail May 17 '26

I simply search the command in internet

1

u/-Feeblington- May 17 '26

bash-autocomplete is your friend 😄

1

u/object322 May 17 '26

fish, zsh auto suggestions...

1

u/JG03s May 17 '26

Or just use ctrl+R or atuin.sh

1

u/realllyrandommann May 17 '26

Average programmer experience.

1

u/Creador270 May 18 '26

*fish terminal

1

u/Negative_Dog_8199 May 18 '26

i do this often

1

u/luisduck May 18 '26

zsh-autocomplete

1

u/Mental_Contract1104 May 21 '26

yeah.... or just search it online every time

1

u/daybreaker2044 Jun 11 '26

Me 100% of the time

1

u/[deleted] May 16 '26

[removed] — view removed comment

1

u/Dread_Wing_9051404 rainbow leggings May 16 '26

Lunx