Re:Fish: Finally, a command line shell for the 90s
by adimitrov on Wednesday June 06, 2012 @09:39AM
(#4073733)
Yes. zsh can also auto-complete command line arguments for a lot of commonly used commands (including the GNU utilities, git, mutt, mplayer, imagemagick's convert and others.)
[ Parent
| on HN ]
Re:Fish: Finally, a command line shell for the 90s
by p4bl0 on Wednesday June 06, 2012 @09:48AM
(#4073779)
Bash too can do that. It does by default in Debian for instance, it also does cool things like autocompleting filenames based on which command is already typed (so it won't autocomplete to some pdf filename if the command is mplayer), autocompletion depending on config files (alias from ~/.ssh/config and /etc/hosts, remotes from the git config, package names when the command is apt-*…).
About fish, for the history based autocompletion of commands, how is that different from Bash's C-r?
Re:Fish: Finally, a command line shell for the 90s
by lobster_johnson on Wednesday June 06, 2012 @11:19AM
(#4074313)
Bash has completion, of course, but does it have autocompletion? Big difference as getting completions without hitting the tab key changes how you interact with the line editor.
Re:Fish: Finally, a command line shell for the 90s
by alextingle on Wednesday June 06, 2012 @04:43PM
(#4076124)
Bash's auto completion is a child's toy compared to Zsh's.
Re:Fish: Finally, a command line shell for the 90s
by jonshea on Wednesday June 06, 2012 @07:13PM
(#4076693)
People say this kind of thing a lot, but I’m pretty sure it’s simply not true. bash-completion handles pretty much everything I can imagine already, and can be extended to handle anything you can express programmatically.