Re:Fish sucks (but your shell sucks more)
by rmc on Wednesday December 22, 2010 @09:48AM
(#2031422)
For the record bash has the smart tab completion turned on by default now. (At least it does in my Ubuntu machine)
[ Parent
| on HN ]
Re:Fish sucks (but your shell sucks more)
by telemachos on Wednesday December 22, 2010 @02:08PM
(#2032117)
That's your distro, however, not Bash itself. On OSX (for example), you must install bash_completion and source it.
I'm not saying that this is a significant amount of work, but the author's complaint that other shells don't do per-app completion out of the box is valid. However, there are good reasons for keeping such completion code separate from the shell itself.
Well it shows that bash has the ability to customise the tab completion. I think this is a new feature of bash. Before that file-completion was hardcoded in.
Re:Fish sucks (but your shell sucks more)
by telemachos on Friday December 24, 2010 @04:44PM
(#2038056)
> Well it shows that bash has the ability to customise the tab completion. I think this is a new feature of bash.
No, I don't think it's new at all. From Ian McDonald's site, Working more productively with bash 2.x/3.x[1]:
> A relatively new feature in bash is programmable completion, which has been available since the beta version of 2.04.
Taking a quick look at Bash's official downloads site[2], Bash 2.04 was released in March of 2000.
Re:Fish sucks (but your shell sucks more)
by yock on Wednesday December 22, 2010 @09:53AM
(#2031437)
Indeed, I was reading through his tab completion examples noting that I can already do much of this in my Ubuntu environment. Now, that doesn't mean it's not a pain to accomplish this in Bash, I just don't know. It's rather transparent to this end-user though.