Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7757189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:01:14+00:00 2026-06-01T13:01:14+00:00

I was looking for a tweak to the cd command so that it recognizes

  • 0

I was looking for a tweak to the cd command so that it recognizes spelling mistakes of directories and auto complete similar directory names.

Right now, I have settings that recognize the spelling mistakes of directory but does not auto complete them.

For directory spelling mistake correction I have this code in ~/.bashrc:

shopt -s cdspell

Now it works in the following manner, suppose I have a directory called “trash”

vickey@home:~$ cd tras
trash
vickey@home:~/trash$ cd ..
vickey@home:~$ cd trasx
trash
vickey@home:~/trash$ pwd
/home/vickey/trash
vickey@home:~/trash$ 


vickey@home:~$ cd Trash
trash
vickey@home:~/trash$ pwd
/home/vickey/trash

But the problem I have is suppose I make a directory called Temp and do something like

vickey@home:~$ mkdir Temp
vickey@home:~$ cd temp
Temp
vickey@home:~/Temp$ cd ..
vickey@home:~$ cd te #and tab here
test/   textin/ 

it does not show Temp as an option. Is there anyway to make auto completion case insensitive?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:01:16+00:00Added an answer on June 1, 2026 at 1:01 pm

    Completion is a feature of readline.

    You can enable case insensitive completion either by:

    1) Adding to your ~/.bashrc:

    bind 'set completion-ignore-case on'
    

    OR

    2) Adding to your /etc/inputrc:

    set completion-ignore-case on
    

    Notes:

    • /etc/inputrc, as @mak comments, effects all shells that use readline, and not just bash.

    • This will make all completions case insensitive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for a build-time CSS combiner/minifier that respects relative URL references. That is, if
Looking around the web, I've seen this simple pattern that implements a (thread-safe) singleton
Looking for an example that: Launches an EXE Waits for the EXE to finish.
Looking for a Linux application (or Firefox extension) that will allow me to scrape
I've been looking around quite a while now for an answer but since I'm
I'm looking for any advice/intuition/clues/answers on a permission issue that has been plaguing me
I'm looking for a way to programatically tweak the particulars of a file association
I'm looking to write a Python import filter or preprocessor for source files that
How do you tweak the arguments that get passed in rspec's (v 2.6.1) post
I am looking to create an effect like that which is used on The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.