1404
D or d come on (i.imgur.com)
you are viewing a single comment's thread
view the rest of the comments
[-] xnasero@programming.dev 10 points 1 year ago* (last edited 1 year ago)

Op does not know about $CDPATH and tab completion keke

[-] PennyJim@lemmy.world 5 points 1 year ago

I've seen a number of comments imply the possibility of case insensitive tab completion. Is this real and how do I do it?

I have multiple times fumbled with forgetting to capitalize something, only for the terminal to 'dunk' at me

[-] F04118F@feddit.nl 2 points 1 year ago* (last edited 1 year ago)

There's probably some way to add it in bash, but if you install zsh and use the default options for everything, it just works! I especially love zsh for things "just work": not just tab completion for directories but also having completion for tools like git, docker, kubectl, etc is super easy, and you don't need any weird magic like in Bash if you want to use an alias with the same completion

[-] bnjmn@programming.dev 4 points 1 year ago

Hmm, it didn't "just work" for me. I had to set it up recently:

zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'

That line needs to go in .zshrc. Maybe it's enabled by default with oh-my-zsh?

[-] F04118F@feddit.nl 1 points 1 year ago

I'm sorry, that must be it, I immediately installed oh-my-zsh after switching to zsh

[-] bnjmn@programming.dev 2 points 1 year ago

I tend to always install both of them together too! Which makes it a little hard to know where things are coming from. This time I decided to start from scratch, so certain aspects of the config are still salient in my mind

load more comments (1 replies)
load more comments (6 replies)
load more comments (6 replies)
this post was submitted on 02 Oct 2023
1404 points (96.7% liked)

Programmer Humor

19463 readers
18 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS