1349
D or d come on (i.imgur.com)
you are viewing a single comment's thread
view the rest of the comments
[-] zlatko@programming.dev 3 points 1 year ago

For bash, this is enough:

# Bash TAB-completition enhancements
# Case-insensitive
bind "set completion-ignore-case on"
# Treat - and _ as equivalent in tab-compl
bind "set completion-map-case on"
# Expand options on the _first_ TAB press.
bind "set show-all-if-ambiguous on"

If you also add e.g.CDPATH=~/Documents, it will also always autocomplete from your Documents no matter which directory you're on.

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

Setting CDPATH=:~/Documents/Dev makes navigating to any of my projects so much easier.

Thanks for bringing it to my attention

[-] csm10495@sh.itjust.works 1 points 1 year ago

Thanks kind stranger. Never knew of this.

this post was submitted on 02 Oct 2023
1349 points (96.6% liked)

Programmer Humor

19310 readers
1472 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