Up up up up up up up up up oh wait down
you allllways overshoot
Based
$ ls -la
ls -hal
ls -halal
I feel this in my soul. Or when you realize you’re hitting up up up up to find something trivial like
ls
and it would have been more efficient to just typels
. LOL.Bruh. Ctrl-r
you’re amazing, this is going to change how I use fish
Or the history substring search plugin for zsh showing inline history as you type, like fish.
I try to avoid the terminal as much as I humanly can because of ergonomic issues like this.
y… you do realise this is a meme, right? If you want to find a specific command that you ran in the past, you can just hit ctrl-r and search for it? No-one is actually spamming the up key, it’s a joke.
Huh, I never actually knew you could do that. But anyway, I disagree that people aren’t spamming the up key. At least in my experience, basically everyone I’ve ever seen use the terminal has always just spammed the up key to get the command they want. Many people don’t get around to using the shortcuts like the one you mentioned because they’re not really discoverable or obvious, so everything tends to become super painful and slow.
Besides, my overall point was that there are all sorts of annoyances like the one mentioned in the post that keep me away from the terminal. Stuff like not being able to click anywhere within a long command to immediately move your cursor to it (yes I know you can just use Ctrl+Left Arrow to move back really quickly, but it’s just slow) or how Ctrl+C and Ctrl+V don’t actually work the way you expect them to.
I spend every day in a terminal, vim is my go to text editor lol. I can’t even imagine.
Also, I have RSI and I invested in a good keyboard. It literally saved my wrists. Just saying, if you need it to pay the bills, invest in a good keyboard.
What keyboard do u have btw? I recently built myself an ex-dactyl, and I absolutely loved it. The split layout actually lets my wrists be completely straight and relaxed, and the outward angle is preventing the wrist bones from crossing too much. It broke down a while ago tho, and I haven’t had the motivation to fix it tho, so back to bog-standard ANSI layout for now (¬_¬)
I use a https://kinesis-ergo.com/keyboards/advantage2-keyboard/. It took about 2 weeks to get the hang of it, but I’ll never use another one!
Sorry, I just looked at your image again and see it’s the same setup lol. You’ll love this keyboard (no I don’t work for them).
Oh damn u got the kinesis advantage!! I don’t own one personally, but I had a chance to type on one at a keyboard store. Absolutely loved it. It felt pretty much the same as my ex-dactyl, apart from a different layout around the thumb clusters. It also took me a while to get used to the weird layout (especially considering that I never learned to touch type lol. On a standard keyboard, I pretty much just peck-type very fast), but once I got up to speed, it felt wonderful. I think I would prefer my ex-dactyl to the Advantage tho, simply because it is two separate pieces. Not that it offers a huge ergonomic boost or anything, I just like having the extra desk space in the middle to put my coffee on (/¯–‿・)/¯ .
By the way, you can edit comments on lemmy, no need to reply twice. It’s under the meatball menu next to the reply button.
If you like the kinesis, but want separate pieces check out the Ergodox EZ https://ergodox-ez.com/. It’s another ortholinear keyboard, but I couldn’t get used to the tenting.
I’ve just signed up to this site and I’m being personally attacked already. smh
ctrl+p gang RISE UP
Fish finally broke me of this habit, and now it’s one of the first things I install on any system
another happy fish convert here too!
One of the top reasons I use fish is that I never learned how to cycle through the results of ctrl+r in bash
Fish? Please enlighten a casual user
Friendly Interactive SHell. I also use it, and I find some of the extra features delightful. I don’t think it’s POSIX compliant if you’re one of the two dozen people who have to worry about that for your use case.
- vim ~/.inputrc
- Paste the following:
"\e[A": history-search-backward "\e[B": history-search-forward
Thank me later
Man, I’ve been on unix systems since, oh, 1994, but I’ve never messed with my .inputrc … may need to take the dive…
Hey! Sorry just getting into Linux, I love learning about cool ways of doing things more efficiently. What does this do exactly? I’ve noticed others mentioning CTRL+R and I am not sure what that means either. Thank you!
Basically, while ctrl+r is nice, this is how I got used to use my system. What this does is enable search for when you press arrow up. If you type nothing then it’s default behavior but if you type “ssh” and then start pressing arrow up it will bring up the previous command that had the word ssh in. It’s worth it for someone who constantly forgets ctrl+r exists
Ok this is actually great. Is there a way to make it so when you down arrow again it will clear the cmd line (or take it back to the prefix)?
Like “py” -> up -> down -> result is “py”
Currently it would show my last python command (or whatever matches).
Me when configuring a switch.
esc + k
for me! (vi for life)cat .bash_history | grep keyword
But yeah pretty much.
deleted by creator
Yeah, I grep on history and then !<number> to execute the line I want
You know you don’t actually have to do cat 😂. But yeah, I know, I do it as well 🤣.
Bro, do you even
^R
?I usually do ctrl+r but with zsh I can type the beginning of the command and press up and it will search that way too.
fish automatically searches as you type, just start typing and press -> when you find the command you need.
Zsh does the same, though I think you need oh my zsh and a plugin for it.
Finally the
ls
command!