E
E
EaS2011-07-07 13:17:25
bash
EaS, 2011-07-07 13:17:25

[Bash] Spell correction after 'a?

How to configure bash to fix typos in paths when pressing the <ab> key? This means the following:
$ cd /Tm<tab> -> cd /tmp/
shopt -s cdspell and
shopt -s dirspell help only after pressing the <Enter> key.
It definitely works at work, but I can’t reproduce it at home.
Just in case:
works on:
Ubuntu
$ bash -version
GNU bash, version 4.1.5(1)-release (i686-pc-linux-gnu)
Copyright © 2009 Free Software Foundation, Inc.
doesn't work (at least I don't know how to make it work)
Kubuntu
$ bash -version
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
Copyright © 2009 Free Software Foundation, Inc.
That is, it's hardly the version, most likely there are some settings somewhere.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
EaS, 2011-07-16
@EaS

Hooray, I found what I needed:
bind 'set completion-ignore-case on'

S
sl_bug, 2011-07-07
@sl_bug

>What does it exactly work at work
There exactly bash? Not zsh?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question