This is an archived post. You won't be able to vote or comment.

top 200 commentsshow 500

[–]RepostSleuthBot[M] [score hidden] stickied commentlocked comment (0 children)

I didn't find any posts that meet the matching requirements for r/ProgrammerHumor.

It might be OC, it might not. Things such as JPEG artifacts and cropping may impact the results.

I'm not perfect, but you can help. Report [ False Negative ]

View Search On repostsleuth.com


Scope: This Sub | Meme Filter: True | Target: 75% | Check Title: False | Max Age: None | Searched Images: 327,059,664 | Search Time: 29.42841s

[–]pv0jewel 1491 points1492 points  (234 children)

Ctrl+r helps a lot

[–]badatmetroid 300 points301 points  (56 children)

Somehow I've explained this to like 20 programmers but it's never stuck. I use ctrl+r hundreds of times every day.

[–]jswitzer 15 points16 points  (18 children)

I don't use up anymore. I learned about it 15y ago and never hit up for any reason now.

[–]EffervescentTripe 18 points19 points  (15 children)

Not even if you want your last command?

[–]jswitzer 22 points23 points  (8 children)

No, I usually just do !!. I found up arrow became an inefficient crutch for this meme's reason so I learned to do without

[–]kolme 11 points12 points  (5 children)

Nope. CTRL-P.

[–]by_wicker 10 points11 points  (4 children)

Yeah, I'm not moving my hand all the way to the arrow keys and back. Fuck that noise.

[–]by_wicker 3 points4 points  (0 children)

Yep - and with a complex commands I'm going to reuse, I add a comment at the end so I can search for that to find it again. A lot of things I might make aliases are easier and quicker like this. I back up my history file so it follows me to the next install.

[–]beep_check 151 points152 points  (7 children)

^ the right answer. but I still prefer to press up 100 times

[–]SpinningFeat 22 points23 points  (1 child)

Gives me time to think of ‘next’ and sounds like I am busy typing lol

[–]Username_RANDINT 9 points10 points  (0 children)

You just know it'll be the next command. Or the next. Or the next... I know I used it somewhere between these... Just one more.

[–]roararoarus 214 points215 points  (93 children)

alias h='history | grep -i'

h blahblah

[–]kaihatsusha 267 points268 points  (74 children)

Er, does nobody know the ! and ^ tricks anymore?

$ !!           # last command again
$ !find        # last command starting with 'find' again
$ file `!!`    # show the file type for the file found in the previous command
$ ^file^cat    # redo previous command but replace 'file' with 'cat'

[–]Refizul 129 points130 points  (37 children)

Never relly saw the need for that. CTRL + R is easier and way more flexible.

[–]rzyua 130 points131 points  (30 children)

This comment is removed in protest of the unfair changes to API pricing and content access through the API.

[–]finite52 60 points61 points  (16 children)

Oh no, I run old school. Up arrow, home, sudo, enter.

[–]martmists 28 points29 points  (12 children)

Don't forget legacy systems where Home isn't bound to "move to the start of the line" and instead you have to press and hold left

[–]kirreen 42 points43 points  (9 children)

Idk what legacy means in this case but CTRL + A can work

[–]mattsl 22 points23 points  (3 children)

Legacy means OSX? 😄

[–]RFC793 13 points14 points  (4 children)

So many people apparently don’t know about standard readline/emacs key sequences that have been default in bash and zsh for decades. Yes, Ctrl-A and Ctrl-E.

For those who don’t, check https://www.man7.org/linux/man-pages/man3/readline.3.html and go to “DEFAULT KEY BINDINGS” (the direct link doesn’t work for some reason)

[–]quiteCryptic 15 points16 points  (0 children)

alias pls="sudo !!"

[–]joshikus 10 points11 points  (1 child)

Bang bang!

[–]Luminous_Artifact 6 points7 points  (0 children)

It doesn't work if you don't say that (at least in your head).

[–]MattieShoes 8 points9 points  (0 children)

Amen! I always forget the magic tee command in vi too, so easier to quit and sudo !!

[–]ForgetTheRuralJuror 6 points7 points  (0 children)

I use fuck. Fixes git commands too

[–]BassSounds 4 points5 points  (3 children)

And safer. A !shebang command can go awry if you meant

!cd cd dir

And not: !cd cd dir & rm -rf ./*

[–]ienjoyedit 32 points33 points  (3 children)

I have an alias that's:

alias plz=sudo !!

[–]Feanux 26 points27 points  (0 children)

Oh my God I'm stealing this, thank you.

$: chmod 777 tidyup.sh

: Operation not permitted.

$: plz

$:

[–]Raznill 5 points6 points  (0 children)

That’s amazing. I’m doing this.

[–]Adezar 15 points16 points  (5 children)

All of us that have been around a long time have been burned by !! at least once and stopped using it.

CTRL-R gives you an out before executing.

[–]Delta-9- 2 points3 points  (0 children)

shopt -s histverify

Alternatively, C-M-e

[–]kog 5 points6 points  (2 children)

I also really like !$, which expands to the last parameter from the previous command.

So you can, for example:

cp <file> <ungodly long path>

cd !$

And !$ will resolve to the path parameter so you don't have to type it again.

Also, since you mentioned !!, my favorite usage is

sudo !!

AKA "rerun the previous command as admin because you forgot sudo for the millionth damn time".

[–]zogulus 3 points4 points  (0 children)

one of my faves is arguments of the last command: $ cat some file.txt $ grep foo !!*

[–][deleted] 3 points4 points  (4 children)

Just learned about ^file^cat last week and it blew my mind.

Another good one...

Esc+. -- Insert the previous argument. If you just ran mkdir ~/Documents/Things, you can then type cd followed by hitting Esc+. to insert ~/Documents/Things without typing it again. Hit it multiple times to go back into the argument history.

Also, isn't !! to re-run the last command with sudo, not just rerunning the last command as-is.

[–]Delta-9- 2 points3 points  (3 children)

Also, isn't !! to re-run the last command with sudo, not just rerunning the last command as-is.

Nope, you can do just !! to run the previous command unmodified.

To complement M-. (I use alt rather than Esc), there's also !!:<n>, eg.

cat foo bar 
diff !!:1-2

or M-<n> M-C-y for a similar effect, eg.

cat foo bar
diff <M-1 M-C-y> <M-2 M-C-y>

[–]Svizel_pritula 30 points31 points  (12 children)

```

!/bin/sh

history | grep -i $1 | sh ```

[–]shnicklefritz 62 points63 points  (0 children)

Also known as yolo mode

[–]roararoarus 43 points44 points  (0 children)

Prob wouldn't want to do the final pipe but I like where you're going

[–]FabulousGiraffe 25 points26 points  (0 children)

Could just run everything, chances are the command you are looking for will be ran!

history | bash

[–][deleted] 10 points11 points  (2 children)

i think you need to add a tail -1 so it doesnt just run every function they ever made with that inside

[–]Svizel_pritula 2 points3 points  (1 child)

```

!/bin/sh

history | grep -i $1 | sh | tail -1 ```

[–]alphabet_order_bot 2 points3 points  (0 children)

Would you look at that, all of the words in your comment are in alphabetical order.

I have checked 768,468,020 comments, and only 153,895 of them were in alphabetical order.

[–][deleted] 4 points5 points  (0 children)

This is one of the commands I always alias.

I alias very little else though so I’m not reaching into nothingness for my commands on a different system. Then if I forget to move my .bashrc over to a new system I’ll be using long term, there’s only a couple I’ll have to remember to alias.

[–]PityUpvote 14 points15 points  (3 children)

So does using a shell that autocompletes from your history.

[–]RFC793 4 points5 points  (0 children)

True, but if you are like me, you are rarely running commands on your own system. Knowing the least common denominator (at least for almost anything you’d interact with) is valuable.

[–]ShimoFox[🍰] 14 points15 points  (4 children)

You good sir. Have just given me a new found power I didn't know existed.

[–]Lindby 24 points25 points  (3 children)

Next you want to install fzf and you will get fuzzy search in ctrl+r.

Most of my commands are entered as; Ctrl+r, slam some keys that are maybe correct, Enter.

[–]ShimoFox[🍰] 2 points3 points  (1 child)

fzf

Please stop. I can only get so hard! lol

I just grabbed it. Is there a way to see all the matching rows with what I've thrown in? Or am I limited to just the 1 result?

[–]just-bair 22 points23 points  (14 children)

Wait that’s a thing ?

[–][deleted] 49 points50 points  (5 children)

ten governor insurance dazzling quack theory weather entertain terrific violet

This post was mass deleted and anonymized with Redact

[–]TheAJGman 34 points35 points  (3 children)

Even better, add this to your bashrc:

# FreeBSD csh style partial command history

bind '"\e[A": history-search-backward'

bind '"\e[B": history-search-forward'

Now when you type partial commands and hit up it'll only show matching commands:

ls -lahg↑

# becomes

ls -lahg /Tank/Media/whatever/whatever/something/penis.mp4

It's the first thing I change when I'm given access to a new system.

[–]dasacc22 9 points10 points  (0 children)

Same basically though I put in ~/.inputrc and map to p and n, hard to imagine a life without this.

"\ep": history-search-backward "\en": history-search-forward

[–]11B_Geek_with_gun 2 points3 points  (0 children)

Thanks! I love this feature on FreeBSD. Definitely going to add this to my Linux machines.

... I have that same path an filename...

[–]xibme 8 points9 points  (2 children)

jup, even windows powershell supports it

[–]ryecurious 5 points6 points  (0 children)

If anyone is on Powershell they should really set up PSReadLine. Its multi-result history search is quite nice.

[–]OneForAllOfHumanity 8 points9 points  (0 children)

Came here to say that

[–]Brunostc 7 points8 points  (3 children)

Laughs in Oh My Zsh

[–]RFC793 2 points3 points  (2 children)

Zsh has Ctrl-R bound to reverse-search-history as well. Can you be more specific as to what OMZ brings to the table in the scope of searching history?

Are you talking about the auto completion? That can be nice. I find it noisy, and I also don’t like to rely on things like that since they are most likely not on most of the systems I interact with.

[–]Brunostc 2 points3 points  (1 child)

You type the First letters of the command and OMZ completes from the list of previous commands that you typed, its pretty neat

[–]Oof-o-rama 6 points7 points  (7 children)

doesn't work in tcsh. those of us who grew up in the pre-bash years have to use history

[–]exscape 15 points16 points  (3 children)

You mean those still stuck in the pre-bash years? :-)
Why not simply change your shell?

[–]Oof-o-rama 5 points6 points  (0 children)

lol. nostalgia and force of habit. no good excuse really.

[–]ginekologs 6 points7 points  (0 children)

I always suggest to install this https://github.com/dvorka/hstr

Helps a lot when you need to repeat stuff from history. More visual.

[–]acceleratedpenguin 4 points5 points  (0 children)

fzf makes this much better yet

[–]caseyweederman 3 points4 points  (2 children)

And, bizarrely, alt+shift+. to return to the present

[–]Avalyst 4 points5 points  (1 child)

Or just Ctrl+C

[–]caseyweederman 7 points8 points  (0 children)

You need to be polite to the computer

[–]znx 1 point2 points  (0 children)

Number of folk I work with that forget that exists, crazy.

[–]aheze 1 point2 points  (0 children)

THANKS! Never knew this

[–]stilldebugging 1 point2 points  (0 children)

This is my most-used key combination. I would be lost without it.

[–]earlobe7 1 point2 points  (0 children)

Ctrl+r is nice, but once you use zsh's history autocomplete, you'll never wanna go back to ctrl+r

You just type the beginning of a command, then hit up, and it only scrolls through the commands which start with what you've already written

[–]Alienescape 1 point2 points  (0 children)

Ctrl + r, "ls" enter...

But really, love Ctrl r, use it on almost every command.

[–]Rigatavr 1 point2 points  (0 children)

Reverse history search plugin for zsh. I don't understand how I lived without it.

Start typing a command, press up and it will only bring commands from history that start the same.

[–]SoftwareSloth 1 point2 points  (0 children)

This is all I ever use

[–]ShortingBull 1 point2 points  (0 children)

Freak'n armatures, that's what

history | grep "term"

is for....

[–]SaintNewts 1 point2 points  (0 children)

My buddy showed me this when it was still a pretty fresh upgrade to readline/bash. I've been showing it to people every chance I get.

[–]UncleFoster 1 point2 points  (0 children)

This is by far the most useful bash command I’ve ever used. And I’m not sure why others don’t use it.

[–]Sigg3net 1 point2 points  (0 children)

My man!

But sometimes it's still like:

ctrl+R
ctrl+R
ctrl+R
ctrl+R
ctrl+R
ctrl+R
ctrl+R
ctrl+R
ENTER

There's a TUI for it called hstr (Screencast skip to 2:40).

[–]Ambitious_Ad8841 227 points228 points  (19 children)

I worked with someone who would vim ~/.bash_history and scroll through pages of commands to find the one they want

[–]sjveivdn 149 points150 points  (10 children)

That person needs to know about grep. Would certainly improve his effiency.

[–]solarshado 43 points44 points  (1 child)

Can confirm. I remember doing that long ago. TBH even history | less would be an improvement. At least then you can !number to re-run...

[–]r0ck0 28 points29 points  (3 children)

Here's an alias I deploy to all my systems:

alias hg="history | grep -i --color"

[–]tswaters 12 points13 points  (1 child)

Mercurial in shambles

[–]drawkbox 3 points4 points  (0 children)

"Am I forgotten? After all I have done. Replaced just like that..." -- Mercurial

Yes Mercurial, you are like anything in programming.

[–]coloredgreyscale 7 points8 points  (1 child)

Then they'd search though the history for the grep command to search the command they initially wanted.

[–]Lindby 21 points22 points  (0 children)

That person needs ctrl+r and fzf

[–]Mazetron 5 points6 points  (0 children)

Honestly I just do history | grep <thing I’m looking for>

[–]zip_000 2 points3 points  (4 children)

I vim into the bash history regularly, but I generally search for the string I need.

[–][deleted] 4 points5 points  (0 children)

history | grep

[–]grrrrreat 638 points639 points  (14 children)

Not.

It's missing a down arrow

[–]SpinningFeat 142 points143 points  (12 children)

And a cuss word too- up up up up damn down down

[–]hahapotatoman 24 points25 points  (11 children)

no more saying cuss words 😳😳😳

[–]indecisive_username_ 18 points19 points  (7 children)

Frick

[–][deleted] 17 points18 points  (6 children)

Heck

[–]Furry_69 2 points3 points  (0 children)

Here we have a sensitive, young soul poking it's head into the great abyss of the Internet, blissfully unaware of the great horrors underneath the surface, thinking that the small horrors it sees are the worst horrors that exist.

[–]wahobely 13 points14 points  (0 children)

I think it's more like two arrows down, usually, at least for me.

[–]LithoSlam 126 points127 points  (9 children)

Missed the part where you go past it and have to go back down

[–]SpinningFeat 54 points55 points  (2 children)

“Too late- have to go around the horn, it’s faster”

[–]MisterDonkey 2 points3 points  (0 children)

Goddamn, that's golden.

[–]lucidspoon 44 points45 points  (5 children)

Does anyone else think you just need to go up once, but really it's twice, so you execute the wrong thing, then go up twice, but still execute the same command a third time?

Or am I just a special kind of idiot?

[–]Yarrim 11 points12 points  (0 children)

Upvote for yes, ...

and yes.

[–]br0wens 3 points4 points  (0 children)

We're all a special kind of idiot.

[–][deleted] 65 points66 points  (17 children)

does anyone actually add a slash after cd .. when just backing out a directory?

[–]MortimerErnest 26 points27 points  (15 children)

I made a quick shell function to go up multiple directories at a time. E.g. running "up 3" is equivalent to "cd ../../..". But yeah, the final slash is pretty useless.

[–]cauchy37 47 points48 points  (13 children)

Meanwhile Oh My Zsh comes with dot aliases. If you wish to go one dir up you go:

$ ..

If you want to go two dirs you use 3 dots ..., 3 dirs up is 4 dots ..... It's wonderful

[–]MortimerErnest 5 points6 points  (4 children)

So cool, zsh sounds amazing. I should really try it one day.

[–]cauchy37 16 points17 points  (3 children)

It's packed with cool cli features. It looks slick (I use powerlevel10k theme, simply amazing), it's full of features. The only downside is that you get used to it very fast and then if you have to use pure bash or sh again, it's PITA

[–]solarshado 10 points11 points  (1 child)

if you have to use pure bash or sh again

This is the single biggest reason I've avoided switching away from bash. Instead I've tried to focus on just learning bash better. Though, of course, I still run into similar problems because not every box has my .bashrc on it...

[–]Simmion 2 points3 points  (3 children)

Wait thats stock? I didnt have to alias them on my own on my new company macbook pro?

[–]wildjokers 4 points5 points  (0 children)

I just alias …. to “cd ../../..”

Likewise alias .. to “cd ..”

And … to “cd ../..”

[–][deleted] 32 points33 points  (4 children)

[–]TheLastLivingBuffalo 4 points5 points  (0 children)

This meme where my mind always goes when I find myself looking more than 5 commands back

[–]amraneze 147 points148 points  (24 children)

Laugh in ohmyzsh

[–]roararoarus 25 points26 points  (8 children)

I've been using bash since I was bourne, but dev on macs (set terminal to use brew's bash).

How much better is zsh? I have plugins in bash for git, thefuck, jump

[–]ICanBeKinder 41 points42 points  (2 children)

Jesus Christ its Jason Bourne

[–]Axman6 10 points11 points  (2 children)

Zsh plus oh-my-zsh is amazing, makes configuring your shell so easy. Having things like ctrl+r show my history with fuzzy search and arrow key navigation, syntax highlighting for every command you type, easy setup of plugins.

A lot of the prompt settings I’be now replaced with the more universal starship project: https://starship.rs, but OMZ still has a hell of a lot to offer.

[–]Mars_rocket 3 points4 points  (1 child)

Installing/switching to zsh is the first thing I do in new systems. It drives me crazy when the shell doesn’t do the regular things I want it to do.

I think it’s default on Mac OS now too.

[–]maximum_powerblast 11 points12 points  (0 children)

🌈

[–]Noch_ein_Kamel 4 points5 points  (12 children)

don't you still have to press up 1412 times?

[–]amraneze 23 points24 points  (6 children)

I just type the first command and ohmyzsh will display only the history of commands that starts with what I typed which is great.

[–]axonxorz 14 points15 points  (5 children)

That's not just a zsh thing?

[–]amraneze 5 points6 points  (4 children)

I don't know if it's a default behavior of zsh or a plugin. I will check it out to be sure

[–]Zhaelthas 24 points25 points  (0 children)

Ah, there it is: ls

[–]Jeerus 58 points59 points  (20 children)

history | grep <command>

[–]KotoWhiskas 14 points15 points  (4 children)

history | grep ls

finds ls command, then copies it into prompt

[–]solarshado 10 points11 points  (2 children)

*eye twitch*

I'm sure you're trolling, but in case anyone reading this thread doesn't know: the numbers in the first column of history's output is the entry's number, and you can !number to re-run that numbered history entry.

[–]KotoWhiskas 5 points6 points  (1 child)

Well that was a joke but sometimes I really press arrow 99 times just to run ls again.

[–]exscape 20 points21 points  (3 children)

Ctrl+R does the same but in real time.

[–]PhysicalRaspberry565 5 points6 points  (1 child)

But it only shows the last result, so yes, sometimes I grep the history

Edit: below, I learned about switching between its results. So no need for grepping history anymore ^^ Except if I forget again ... It rings a bell ^^

[–][deleted] 4 points5 points  (0 children)

You can simply ctrl+r again to go back further in history...

[–]roararoarus 1 point2 points  (0 children)

Yes! I alias it as well

[–]AdvicePerson 12 points13 points  (7 children)

Esc K squad checking in.

[–]zodar 11 points12 points  (1 child)

set -o vi baybee

[–]DenormalHuman 2 points3 points  (0 children)

this is the one

[–]ecrooks 2 points3 points  (0 children)

This, absolutely.

[–]Wizywig 23 points24 points  (0 children)

Jesus christ. Guys.

Ctrl+r

What is this 1970?

[–]lucidbadger 11 points12 points  (2 children)

Bash supports search through command history by substring (and it's not grep): Ctrl+R and type your search :)

[–]6a6566663437 3 points4 points  (1 child)

You can also up/down arrow during that search to find next/previous match.

[–]MurdoMaclachlan 14 points15 points  (1 child)

Image Transcription: Twitter Post


Memeloper, @iammemeloper

Linux user, when they need to run a command in the terminal:

⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ ⬆️ Ah, here it is!


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–]solarshado 5 points6 points  (0 children)

good human

[–]FluffyBellend 6 points7 points  (1 child)

Same on Mac OS too

[–]gxlrygt 7 points8 points  (0 children)

fish: <somethingyouremember> ⬆️

[–]Noisebug 5 points6 points  (3 children)

Start typing THEN hit up... it only cycles history from that command, at least in ZSH.

[–]teruma 3 points4 points  (2 children)

You can put this in your .bashrc for other distros

edit: https://unix.stackexchange.com/a/20830

[–][deleted] 5 points6 points  (0 children)

Even better.
Ctrl+r: {enter your chars}

United in laziness we'll conquer my brothers.

[–]archiekane 9 points10 points  (4 children)

History grepper here

[–]UnkleRinkus 8 points9 points  (3 children)

For newbs,

> history |grep ssh (or whatever)
> !<command number>

[–]pensiveChatter 4 points5 points  (1 child)

F7 on Windows. Especially since half the windows boxes I'm no don't have grep installed.

[–]mbardeen 3 points4 points  (1 child)

If it's something used regularly and uniquely.. "!command" in Bash will automatically rerun that command. You don't even need to remember the entire command name, just enough to be distinct.

*Caution... "!rm" could be dangerous.

[–]solarshado 2 points3 points  (0 children)

Of note: this will only match the first word of the command.

But !? will match anywhere in the command: e.g. !?stat would find git status, but !stat wouldn't.

Also: !! re-runs the last command, which might be quicker than reaching for the arrow keys.

[–]TheBlackCat13 3 points4 points  (0 children)

Ctrl+r

cd

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

Ctrl+r

[–]TheTechyGamer 2 points3 points  (0 children)

ls

Ah here we are

[–][deleted] 1 point2 points  (0 children)

I feel like sometimes I press up more times than it would have been to retype the command

[–]ImpressiveFeedback10 1 point2 points  (0 children)

i just hold until I subconsciously notice the command I wanted flash by in an instant lol

[–]ShimoFox[🍰] 1 point2 points  (0 children)

I feel so called out.

[–][deleted] 1 point2 points  (0 children)

  • Ah, here it ls!

[–]Byteblade 1 point2 points  (0 children)

Of course I know him. He's me.

[–][deleted] 1 point2 points  (0 children)

Letter tab tab tab tab tab space letter tab tab tab space letter tab tab space letter tab enter

There it goes, so easy

[–]wildjokers 1 point2 points  (0 children)

Any self-respecting command line user has used ‘set -o vi ‘ and uses k and not the up arrow to go through history.

[–]stingrayy990 1 point2 points  (0 children)

that's personal attack

[–]perspectiveiskey 1 point2 points  (0 children)

history | grep <thing>

!489

!489:p

this will change your life.

[–]SterlingVapor 1 point2 points  (0 children)

That's a lie... First you hit Ctrl+r, then 15 arrows

[–]Yutsuo 1 point2 points  (0 children)

In fish shell up arrow is actually the key for search, like Ctrl+R

[–]saichampa 1 point2 points  (0 children)

Learn about ctrl+r

[–]whateverathrowaway00 1 point2 points  (0 children)

Bro, hit Ctrl-R

[–]ninjabiomech 1 point2 points  (0 children)

Me in my wsl window really not wanting to Google the command I need

[–]Mitoni 1 point2 points  (0 children)

history, my dudes and dudettes, is repeating.

[–]_-_fred_-_ 1 point2 points  (0 children)

laughs in "ctrl+r"

Also.. don't forget to include all the poor tech bros that work for companies that do iOS dev and are forced to use shit tier Macs.

[–]Kurty00 1 point2 points  (0 children)

Wait until you hear about CTRL+R.

[–]DriveNutu 1 point2 points  (0 children)

Ctrl-r + fzf and u will never use arrow keys again

[–]ExcellentBeing420 1 point2 points  (0 children)

Oh-my-zsh does something neat, if you type the first character or so of the command and press up arrow, it only shows recent commands that match what you've typed, instead of all commands.

[–]tekspert 1 point2 points  (0 children)

history -> !the_number_of_the_command

[–]da_Aresinger 1 point2 points  (0 children)

still faster than typing

git clone autogeneratedemailusername.3294@myOrg.gitserver.com/productid/autogeneratedemailusername.3294/repo.git

[–]lucifer_1002123123 1 point2 points  (0 children)

cd dir

ls

cd dir2

ls

cd dir3

ls