Make cd command Arguments Case Insensitive
by Ramesh
As you already know, the following cd command example will display all the available directories that begin with lower-case m.
- # cd m
- may myticket
Note: You have to press tab key twice after ‘m’
In the same way, the following cd command example will display all the available directories that begin with upper-case M.
- # cd M
- March Music
Display both upper-case and lower-case
If you like to display both lower-case and upper-case directory names (Even when you give only lower-case), execute the following bind command.
- # bind "set completion-ignore-case on"
Now, if you press two tabs after the lower-case alphabets in the cd-command argument, it will automatically display both lower-case and upper-case directories as shown below.
- # cd m
- March may Music myticket
当前内容版权归 Ramesh Natarajan 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Ramesh Natarajan .