zshはバルカン用です。;-)
真面目な話:bash 4.0には、以前はzshでしか見られなかった、**グロビングのような機能がいくつかあります。
% ls /usr/src/**/Makefile
以下と同等です:
% find /usr/src -name "Makefile"
しかし、明らかにより強力です。
私の経験では、bashのプログラム可能な完了は、少なくともいくつかの場合(たとえば、aptitudeでdebianパッケージを完了する)で、zshの実行よりも少し良くなります。
bashはAlt + .
挿入する必要があります!$
zsh has expansion of all variables, so you can use e.g.
% rm !$<Tab>
for this. zsh can also expand a command in backtics, so
% cat `echo blubb | sed 's/u/a/'`<Tab>
yields
% cat blabb
I find it very useful to expand rm *
, as you can see what would be removed and can maybe remove one or two files from the commmand to prevent them from being deleted.
Also nice: using the output from commands for other commands that do not read from stdin but expect a filename:
% diff <(sort foo) <(sort bar)
From what I read bash-completion also supports completing remote filenames over ssh if you use ssh-agent, which used to be a good reason to switch to zsh.
Aliases in zsh can be defined to work on the whole line instead of just at the beginning:
% alias -g ...="../.."
% cd ...