I’m wondering if anyone can do this. Say I have this folder structure:
Folder A
Folder Apple
Folder Orange
If I am currently in Folder A, I’d like it so that if I type “cd Ap” and hit enter, it’ll automatically put me in the “Apple” subfolder. Essentially, it would attempt to autocomplete and open the folder based off the partial input.
If I am currently in Folder A, and I type “cd ap” and hit enter (lowercase “a”), I would get an error because it couldn’t autocomplete to an actual subfolder name. Is this possible? I’m working in Korn.
I’m not quite going to answer your question, but I’ll get close. It seems to me like hitting the tab key isn’t the hurdle for you, it’s the capitalization. I know the feeling, it’s like choosing between camelCase and inconvenient typing.
I’ve only done this in bash, my apoligies. If I recall, bash and ksh are rather close, so I’m hoping it will work for you.
set completion-ignore-case onturns on case-insensitive completion in bash. Naturally this goes into any startup scripts you may want it in.Good luck, tell us if it works in ksh !