60
submitted 1 year ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 11 points 1 year ago

I am using ZSH, that function that allows you to type part of the command and then do UP key to find previous command starts with same prefix is killer function for me.

(I don't know if this function is added by oh-my-zsh or not.)

[-] [email protected] 4 points 1 year ago

Bash has Ctrl+R which is a similar feature.

[-] [email protected] 3 points 1 year ago

zsh has ctrl-r as well; this feature is specifically for beginning-of-match and some find it a bit more ergonomic.

[-] [email protected] 4 points 1 year ago

ZSH is amazing. I'm unfortunately mostly stuck on Windows, and I didn't find any similar alternative for win shell, but ever since I tried the ZSH configuration that's default in Kali Linux, I've been hooked on ZSH.

[-] [email protected] 3 points 1 year ago

TIL. I wish I knew all the features of ZSH. Just the git shortcuts are amazing

[-] [email protected] 3 points 1 year ago

You can do it in Bash as well. Put this in .inputrc:

"\e[A":history-substring-search-backward
"\e[B":history-substring-search-forward

# or, if you want to search only from the start of the command
"\e[A": history-search-backward
"\e[B": history-search-forward
this post was submitted on 09 Aug 2023
60 points (94.1% liked)

Programming

17017 readers
352 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS